/* ==========================================================================
   VFireWoW - Molten Fire & Dragonflame High-Fantasy Design System
   ========================================================================== */

:root {
    /* VFire Theme Colors */
    --fire-primary: #ff6a00;
    --fire-bright: #ffb830;
    --fire-yellow: #fff066;
    --fire-red: #e62e00;
    --fire-crimson: #9e1a00;
    --fire-glow: rgba(255, 106, 0, 0.5);

    --gold-trim: #e5a93b;
    --gold-bright: #ffe394;
    --gold-dark: #7a5012;

    --discord-blurple: #5865f2;
    --discord-hover: #4752c4;
    --discord-glow: rgba(88, 101, 242, 0.6);

    --slate-deepest: #0a0604;
    --slate-dark: #140d0a;
    --slate-panel: rgba(18, 12, 10, 0.88);
    --slate-border: rgba(255, 120, 30, 0.38);

    --text-parchment: #fbeed9;
    --text-muted: #b89d8b;
    --text-glow: #ffc97a;

    --status-amber: #ff9800;
    --status-glow: rgba(255, 152, 0, 0.5);

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-decorative: 'Cinzel Decorative', serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadows & Radiance */
    --shadow-molten: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 50px rgba(255, 106, 0, 0.2);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--slate-deepest);
    color: var(--text-parchment);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Background Layers */
.bg-media {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/vfire_bg.jpg') no-repeat center center / cover;
    z-index: -4;
    filter: brightness(0.85) saturate(1.25) contrast(1.1);
    transform: scale(1.02);
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
}

.fog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 25%, rgba(255, 106, 0, 0.18) 0%, transparent 65%),
                linear-gradient(to bottom, rgba(10, 6, 4, 0.2) 0%, rgba(10, 6, 4, 0.8) 100%);
    z-index: -2;
    pointer-events: none;
}

.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.75), inset 0 0 220px rgba(0, 0, 0, 0.9);
    z-index: -1;
    pointer-events: none;
}

/* App Wrapper */
.app-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 1.5rem 1.5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    z-index: 1;
}

/* Site Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: rgba(22, 14, 10, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 140, 40, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 106, 0, 0.15);
    margin-bottom: 2.5rem;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-crest {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--fire-bright);
    box-shadow: 0 0 14px var(--fire-glow);
    object-fit: cover;
}

.brand-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: 2.5px;
    background: linear-gradient(180deg, #ffffff 0%, var(--fire-yellow) 40%, var(--fire-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1rem;
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid rgba(255, 152, 0, 0.55);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffb74d;
    box-shadow: 0 0 12px rgba(255, 152, 0, 0.25);
}

.pulse-indicator {
    width: 9px;
    height: 9px;
    background-color: var(--status-amber);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--status-amber);
    animation: flamePulse 1.6s infinite ease-in-out;
}

@keyframes flamePulse {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px var(--status-amber); }
    50% { transform: scale(1.4); opacity: 0.7; box-shadow: 0 0 18px #ff6a00; }
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 140, 40, 0.4);
    border-radius: 10px;
    color: var(--fire-bright);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.icon-btn:hover {
    background: rgba(255, 106, 0, 0.25);
    border-color: var(--fire-yellow);
    box-shadow: 0 0 16px var(--fire-glow);
    transform: scale(1.05);
}

.icon-btn .icon {
    width: 20px;
    height: 20px;
    transition: opacity 0.25s ease;
}

.music-btn.playing {
    border-color: var(--fire-yellow);
    background: rgba(255, 106, 0, 0.3);
    box-shadow: 0 0 20px var(--fire-glow);
}

.music-btn .equalizer-bars {
    display: none;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
}

.music-btn.playing .equalizer-bars {
    display: flex;
}

.music-btn.playing .music-icon {
    display: none;
}

.eq-bar {
    width: 3px;
    background: linear-gradient(to top, var(--fire-red), var(--fire-yellow));
    border-radius: 2px;
    animation: eqBounce 1s infinite ease-in-out alternate;
}

.eq-bar:nth-child(1) { height: 60%; animation-duration: 0.8s; }
.eq-bar:nth-child(2) { height: 100%; animation-duration: 1.1s; animation-delay: 0.2s; }
.eq-bar:nth-child(3) { height: 40%; animation-duration: 0.7s; animation-delay: 0.4s; }
.eq-bar:nth-child(4) { height: 80%; animation-duration: 0.9s; animation-delay: 0.1s; }

@keyframes eqBounce {
    0% { height: 20%; opacity: 0.6; }
    100% { height: 100%; opacity: 1; filter: drop-shadow(0 0 4px var(--fire-yellow)); }
}

/* Main Container & Hero Card */
.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.wow-card {
    position: relative;
    width: 100%;
    max-width: 820px;
    background: var(--slate-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 120, 30, 0.45);
    border-radius: 20px;
    padding: 4.25rem 2.75rem 2.75rem;
    box-shadow: var(--shadow-molten), inset 0 0 40px rgba(0, 0, 0, 0.7);
    text-align: center;
    overflow: visible;
}

/* Molten Corner Brackets */
.corner {
    position: absolute;
    width: 34px;
    height: 34px;
    border-color: var(--fire-bright);
    border-style: solid;
    pointer-events: none;
    filter: drop-shadow(0 0 8px var(--fire-glow));
}

.corner-tl { top: -2px; left: -2px; border-width: 3px 0 0 3px; border-top-left-radius: 20px; }
.corner-tr { top: -2px; right: -2px; border-width: 3px 3px 0 0; border-top-right-radius: 20px; }
.corner-bl { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; border-bottom-left-radius: 20px; }
.corner-br { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; border-bottom-right-radius: 20px; }

/* Center Crest */
.crest-container {
    position: absolute;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 130px;
}

.hero-crest {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--fire-yellow);
    box-shadow: 0 0 30px var(--fire-glow), 0 0 60px rgba(255, 56, 0, 0.5);
    object-fit: cover;
    background-color: var(--slate-deepest);
    animation: dragonFloat 4s ease-in-out infinite;
}

@keyframes dragonFloat {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 15px rgba(255, 106, 0, 0.6)); }
    50% { transform: translateY(-8px); filter: drop-shadow(0 0 30px rgba(255, 184, 48, 0.9)); }
}

/* Runic Bar */
.runic-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--fire-bright);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.runic-char {
    font-size: 1.2rem;
    color: var(--fire-yellow);
    text-shadow: 0 0 10px var(--fire-primary);
    animation: runePulse 2.5s infinite alternate;
}

.runic-char:nth-child(even) {
    animation-delay: 1.2s;
    color: var(--fire-primary);
    text-shadow: 0 0 12px var(--fire-red);
}

@keyframes runePulse {
    0% { opacity: 0.6; filter: blur(0.5px); }
    100% { opacity: 1; filter: blur(0); }
}

.runic-divider {
    flex: 1;
    max-width: 90px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fire-primary), transparent);
}

.runic-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--fire-bright);
}

/* Headlines */
.main-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1.1;
    margin-bottom: 0.35rem;
    background: linear-gradient(180deg, #ffffff 0%, var(--fire-yellow) 35%, var(--fire-bright) 65%, var(--fire-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.status-headline {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ff9800;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(255, 152, 0, 0.4);
}

.minimal-notice {
    font-size: 1.05rem;
    color: var(--text-parchment);
    max-width: 650px;
    margin: 0 auto 2.25rem;
    line-height: 1.65;
}

.minimal-notice strong {
    color: var(--fire-yellow);
    text-shadow: 0 0 8px rgba(255, 184, 48, 0.35);
}

/* Discord Hero Action Section */
.discord-hero-section {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.22) 0%, rgba(28, 16, 12, 0.95) 100%);
    border: 2px solid rgba(88, 101, 242, 0.65);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(88, 101, 242, 0.2);
    position: relative;
    overflow: hidden;
}

.discord-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.18) 0%, transparent 60%);
    pointer-events: none;
    animation: rotateAura 12s linear infinite;
}

@keyframes rotateAura {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.discord-card-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.discord-branding {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
}

.discord-icon-badge {
    width: 58px;
    height: 58px;
    background: var(--discord-blurple);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 0 25px var(--discord-glow);
    flex-shrink: 0;
}

.discord-svg {
    width: 36px;
    height: 36px;
}

.discord-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.discord-subtitle {
    font-size: 0.92rem;
    color: #c9d2e7;
}

.discord-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.btn-discord-primary {
    flex: 1;
    min-width: 260px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--discord-blurple) 0%, var(--discord-hover) 100%);
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 1.1rem 1.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 25px var(--discord-glow), 0 0 15px rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-discord-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(88, 101, 242, 0.8), 0 0 25px rgba(255, 184, 48, 0.5);
    background: linear-gradient(135deg, #6c79ff 0%, var(--discord-blurple) 100%);
}

.btn-discord-primary .btn-icon {
    width: 24px;
    height: 24px;
}

.btn-discord-primary .btn-arrow {
    transition: transform 0.25s ease;
}

.btn-discord-primary:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-discord-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(18, 12, 10, 0.9);
    border: 1px solid rgba(255, 140, 40, 0.45);
    color: var(--fire-bright);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 1.05rem 1.35rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-discord-copy:hover {
    background: rgba(255, 106, 0, 0.2);
    border-color: var(--fire-yellow);
    color: #ffffff;
    box-shadow: 0 0 15px var(--fire-glow);
}

.btn-copy-icon {
    width: 18px;
    height: 18px;
}

/* Minimal Visual Badges */
.visual-badge-row {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(26, 16, 12, 0.65);
    border: 1px solid rgba(255, 140, 40, 0.25);
    border-radius: 25px;
    padding: 0.55rem 1.2rem;
    font-size: 0.88rem;
    color: var(--text-parchment);
    transition: all 0.25s ease;
}

.visual-badge:hover {
    background: rgba(36, 20, 14, 0.85);
    border-color: var(--fire-bright);
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.25);
}

.v-icon {
    font-size: 1.1rem;
}

.v-label {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Toast Feedback */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(22, 14, 10, 0.96);
    border: 1px solid var(--fire-yellow);
    color: var(--fire-yellow);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 25px var(--fire-glow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
}

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

/* Sound Prompt Floating Pill */
.sound-prompt {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(22, 14, 10, 0.85);
    border: 1px dashed var(--fire-bright);
    border-radius: 25px;
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    color: var(--fire-bright);
    margin: 1.25rem auto 0;
    width: fit-content;
    max-width: 90%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.25);
    animation: promptGlow 2s infinite ease-in-out;
}

.sound-prompt.visible {
    display: flex;
}

.prompt-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--fire-yellow);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--fire-yellow);
}

@keyframes promptGlow {
    0%, 100% { transform: scale(1); border-color: rgba(255, 184, 48, 0.4); }
    50% { transform: scale(1.02); border-color: var(--fire-yellow); box-shadow: 0 0 20px var(--fire-glow); }
}

/* Footer */
.site-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 120, 30, 0.35), transparent);
    margin-bottom: 1.25rem;
}

.copyright {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.copyright strong {
    color: var(--fire-bright);
}

.footer-link {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-link a {
    color: var(--fire-yellow);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-shadow: 0 0 10px var(--fire-glow);
}

/* Responsive */
@media (max-width: 860px) {
    .wow-card {
        padding: 4rem 1.75rem 2rem;
    }

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

    .discord-actions {
        flex-direction: column;
    }

    .btn-discord-primary, .btn-discord-copy {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .app-wrapper {
        padding: 1rem 0.75rem;
    }

    .site-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .brand-group {
        flex-direction: column;
    }

    .main-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .crest-container {
        width: 100px;
        height: 100px;
        top: -50px;
    }

    .status-headline {
        font-size: 1rem;
    }
}
