/* ==========================================================================
   MINECRAFT SERVER CLOSURE - MODERN DESIGN SYSTEM
   ========================================================================== */

:root {
    --bg-base: #030705;
    --card-bg: rgba(6, 17, 12, 0.78);
    --card-border: rgba(16, 185, 129, 0.26);
    --card-border-glow: rgba(52, 211, 153, 0.35);
    
    --text-primary: #f0fdf4;
    --text-secondary: #94a89d;
    --text-muted: #53695d;

    --emerald-primary: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.35);
    --mint-primary: #34d399;
    --mint-glow: rgba(52, 211, 153, 0.35);
    --forest-dark: #064e3b;
    --forest-glow: rgba(6, 78, 59, 0.5);

    --discord-color: #5865F2;
    --discord-glow: rgba(88, 101, 242, 0.4);

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   AMBIENT EMERALD BACKGROUND & HIDDEN AUDIO SOURCE
   ========================================================================== */

/* Video sadece ses kaynağı olarak arka planda çalışır, görseli gizlidir */
.hidden-audio-source {
    position: fixed;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.ambient-background {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 15%, #051a10 0%, #020704 100%);
}

.aura-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

.aura-emerald-1 {
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.42) 0%, rgba(5, 150, 105, 0.1) 60%, transparent 80%);
    top: -140px;
    left: -120px;
    filter: blur(90px);
    animation: floatOrb1 20s infinite alternate ease-in-out;
}

.aura-emerald-2 {
    width: 580px;
    height: 580px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.38) 0%, rgba(4, 120, 87, 0.08) 60%, transparent 80%);
    bottom: -120px;
    right: -100px;
    filter: blur(95px);
    animation: floatOrb2 22s infinite alternate ease-in-out;
}

.aura-mint {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.32) 0%, rgba(16, 185, 129, 0.06) 60%, transparent 80%);
    bottom: 12%;
    left: 18%;
    filter: blur(80px);
    animation: floatOrb3 18s infinite alternate ease-in-out;
}

.aura-forest {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(6, 78, 59, 0.48) 0%, rgba(2, 44, 34, 0.08) 60%, transparent 80%);
    top: 15%;
    right: 12%;
    filter: blur(90px);
    animation: floatOrb4 24s infinite alternate ease-in-out;
}

@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(110px, 80px) scale(1.18); }
}

@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, -70px) scale(1.15); }
}

@keyframes floatOrb3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, -60px) scale(0.92); }
}

@keyframes floatOrb4 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-70px, 90px) scale(1.12); }
}

.ambient-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.2px, transparent 1.2px);
    background-size: 32px 32px;
    opacity: 0.45;
    mask-image: radial-gradient(circle at 50% 50%, black 45%, transparent 95%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 45%, transparent 95%);
}

.vignette {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 160px rgba(4, 5, 8, 0.85);
}

/* Parçacık (Embers / Dust Canvas) */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   TOP BAR & QUICK AUDIO CONTROL
   ========================================================================== */

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    z-index: 20;
    pointer-events: none;
}

.top-bar > * {
    pointer-events: auto;
}

.server-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(4, 20, 14, 0.75);
    border: 1px solid rgba(52, 211, 153, 0.2);
    backdrop-filter: blur(12px);
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    color: var(--text-secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.server-tag strong {
    color: #34d399;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite ease-in-out;
}

.pulse-dot.emerald {
    background-color: #10b981;
    box-shadow: 0 0 10px #10b981;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* Ses Hap Butonu (Sound Pill) */
.sound-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(20, 24, 38, 0.75);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.sound-pill:hover {
    background: rgba(30, 36, 56, 0.9);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.sound-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

.icon-playing {
    display: none;
    color: #4ade80;
}

.icon-muted {
    display: block;
    color: var(--text-secondary);
}

/* Ses Dalgaları Animasyonu */
.sound-waves {
    display: flex;
    align-items: center;
    gap: 2.5px;
    height: 14px;
}

.sound-waves span {
    width: 2.5px;
    height: 4px;
    background-color: var(--text-secondary);
    border-radius: 2px;
    transition: height 0.2s ease, background-color 0.3s ease;
}

.sound-pill.is-active .sound-waves span {
    background-color: #4ade80;
    animation: waveBar 1.2s infinite ease-in-out alternate;
}

.sound-pill.is-active .sound-waves span:nth-child(1) { animation-delay: 0.1s; }
.sound-pill.is-active .sound-waves span:nth-child(2) { animation-delay: 0.3s; }
.sound-pill.is-active .sound-waves span:nth-child(3) { animation-delay: 0.2s; }
.sound-pill.is-active .sound-waves span:nth-child(4) { animation-delay: 0.4s; }

.sound-pill.is-active .icon-playing {
    display: block;
}

.sound-pill.is-active .icon-muted {
    display: none;
}

@keyframes waveBar {
    0% { height: 4px; }
    100% { height: 14px; }
}

/* ==========================================================================
   CENTER STAGE & ANNOUNCEMENT CARD
   ========================================================================== */

.center-stage {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5.5rem 1.5rem 3rem 1.5rem;
}

.announcement-card {
    position: relative;
    width: 100%;
    max-width: 680px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-radius: var(--radius-xl);
    padding: 2.75rem 2.5rem;
    box-shadow: 
        0 30px 85px -10px rgba(0, 0, 0, 0.92),
        0 0 55px rgba(16, 185, 129, 0.16),
        0 0 0 1px rgba(52, 211, 153, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    animation: cardEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6ee7b7, #10b981, #059669, transparent);
    filter: drop-shadow(0 0 10px #10b981);
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(32px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header & Emblem */
.card-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.emblem-wrapper {
    position: relative;
    width: 84px;
    height: 84px;
    margin-bottom: 1.35rem;
}

.emblem-glow {
    position: absolute;
    inset: -8px;
    border-radius: 26px;
    background: linear-gradient(135deg, #34d399, #059669);
    opacity: 0.65;
    filter: blur(16px);
    animation: glowPulse 4s infinite alternate ease-in-out;
}

@keyframes glowPulse {
    0% { opacity: 0.35; transform: scale(0.95); }
    100% { opacity: 0.75; transform: scale(1.08); }
}

.emblem-cube {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #072618, #03140c);
    border: 2px solid rgba(52, 211, 153, 0.35);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(16, 185, 129, 0.25);
    overflow: hidden;
}

.server-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.emblem-wrapper:hover .server-icon-img {
    transform: scale(1.08);
}

.mini-server-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-row {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    box-shadow: 0 0 12px var(--danger-glow);
}

.badge-emerald {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(52, 211, 153, 0.5);
    color: #6ee7b7;
    box-shadow: 0 0 14px var(--emerald-glow);
}

.badge-mint {
    background: rgba(52, 211, 153, 0.15);
    border-color: rgba(52, 211, 153, 0.45);
    color: #a7f3d0;
    box-shadow: 0 0 14px var(--mint-glow);
}

.main-title {
    font-family: var(--font-heading);
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 25%, #6ee7b7 65%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 14px rgba(16, 185, 129, 0.35));
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

/* Duygusal Alıntı Kutusu */
.quote-box {
    position: relative;
    border-left: 3px solid var(--emerald-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.2rem 1.5rem 1.2rem 1.7rem;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.05) 60%, transparent 100%);
    box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.05);
}

.quote-icon {
    position: absolute;
    top: -8px;
    left: 8px;
    font-family: Georgia, serif;
    font-size: 2.5rem;
    color: rgba(16, 185, 129, 0.4);
    line-height: 1;
    pointer-events: none;
}

.quote-text {
    font-size: 0.95rem;
    color: #e2e8f0;
    font-style: italic;
    line-height: 1.65;
}

.quote-text strong {
    color: #6ee7b7;
    font-style: normal;
}

/* Detaylı Açıklama Metni */
.announcement-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.announcement-body strong {
    color: #ffffff;
    font-weight: 600;
}

/* İstatistik & Hatıra Izgarası */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-md);
    padding: 0.95rem 0.75rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.16);
    transform: translateY(-3px);
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.2rem;
}

.stat-label {
    display: block;
    font-size: 0.725rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Aksiyon Butonları */
.action-footer {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.btn {
    flex: 1 1 240px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.925rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Discord Butonu */
.btn-discord {
    background: linear-gradient(135deg, #5865F2, #4752c4);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--discord-glow);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-discord:hover {
    background: linear-gradient(135deg, #6774f7, #4e5ad4);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(88, 101, 242, 0.6);
}

/* Belirgin Ses / Müzik Butonu */
.btn-audio-prominent {
    position: relative;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.9), rgba(4, 44, 34, 0.95));
    border: 1px solid rgba(52, 211, 153, 0.55);
    color: #6ee7b7;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.22);
    overflow: hidden;
}

.btn-audio-prominent:hover {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.95), rgba(6, 78, 59, 0.95));
    border-color: #34d399;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.45);
    color: #ffffff;
}

.btn-pulse {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
    animation: btnPulsate 2.5s infinite cubic-bezier(0.24, 0, 0.38, 1);
    pointer-events: none;
}

@keyframes btnPulsate {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.btn-audio-prominent.is-playing {
    border-color: rgba(52, 211, 153, 0.7);
    color: #34d399;
    box-shadow: 0 4px 18px rgba(52, 211, 153, 0.3);
}

.btn-audio-prominent.is-playing .btn-pulse {
    animation: none;
}

/* Kart Alt Bilgisi */
.card-footer {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 1.25rem;
    font-size: 0.825rem;
    color: var(--text-muted);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */

@media (max-width: 640px) {
    .top-bar {
        padding: 1rem;
    }

    .server-tag span:last-child {
        display: none;
    }

    .center-stage {
        padding: 5rem 1rem 2rem 1rem;
    }

    .announcement-card {
        padding: 1.75rem 1.25rem;
        gap: 1.35rem;
        border-radius: var(--radius-lg);
    }

    .main-title {
        font-size: 1.55rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .stat-card {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.7rem 1rem;
    }

    .stat-value {
        margin-bottom: 0;
        font-size: 1.1rem;
    }

    .action-footer {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
