/* ========================================
   WAVE - MODERN GAMING STYLE
   ======================================== */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* Variables */
:root {
    --bg-dark: #0a1929;
    --bg-darker: #050d14;
    --card-bg: rgba(15, 35, 55, 0.8);
    --card-hover: rgba(25, 50, 75, 0.9);
    --primary: #7dd3e0;
    --primary-dark: #4a9eb0;
    --primary-light: #a8e0e8;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #8b99ab;
    --border: rgba(255, 255, 255, 0.1);
    --success: #00ff9f;
    --warning: #ffa500;
    --danger: #ff6b6b;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background */
.void-atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(125, 211, 224, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #0a1929 0%, #050d14 100%);
    z-index: -2;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* Server Info Bar */
.server-info {
    background: rgba(15, 35, 55, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.server-info-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0 2rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.server-info span {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Header */
.main-header {
    background: rgba(15, 35, 55, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 42px;
    z-index: 100;
}

.header-ornament {
    display: none;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

/* Guild Emblem */
.guild-emblem {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.emblem-frame {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(125, 211, 224, 0.3);
}

.emblem-frame::before {
    display: none;
}

.emblem-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.guild-name-block {
    text-align: left;
}

.guild-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.guild-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 4px;
    justify-self: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 7px;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link::before {
    display: none;
}

.nav-link::after {
    display: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(125, 211, 224, 0.1);
}

/* Dropdown trigger - never show bg rectangle */
.nav-dropdown-trigger.nav-link,
.nav-dropdown-trigger.nav-link:hover,
.nav-dropdown-trigger.nav-link.active {
    background: none !important;
}

.btn-apply {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--bg-dark);
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border: none;
    box-shadow: 0 4px 15px rgba(125, 211, 224, 0.3);
}

.btn-apply:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(125, 211, 224, 0.4);
    color: var(--bg-dark);
}

/* Header Info */
.header-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-raids, .info-schedule {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.info-item {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.4rem 0.75rem;
    background: rgba(125, 211, 224, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(125, 211, 224, 0.15);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.info-item:hover {
    background: rgba(125, 211, 224, 0.15);
    border-color: rgba(125, 211, 224, 0.3);
}

.schedule-label {
    font-size: 1rem;
    margin-right: 0.25rem;
}

.days-grid {
    display: flex;
    gap: 0.25rem;
}

.day-box {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: help;
    transition: all 0.2s ease;
}

.day-box.active {
    background: rgba(125, 211, 224, 0.15);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(125, 211, 224, 0.2);
}

.day-box.special {
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
    border-color: #ffa500;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.2);
    position: relative;
}

.day-box.special::after {
    content: '★';
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.6rem;
}

.day-box:hover {
    transform: translateY(-2px);
}

.btn-member {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--bg-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(125, 211, 224, 0.3);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-member:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(125, 211, 224, 0.4);
}

/* Member Dropdown */
.member-dropdown {
    position: relative;
}

.member-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(25, 50, 75, 0.6);
    border: 1px solid var(--border);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.member-trigger:hover {
    background: rgba(125, 211, 224, 0.1);
    border-color: var(--primary);
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(125, 211, 224, 0.5);
}

.member-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.dropdown-arrow {
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.member-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.member-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 220px;
    background: rgba(15, 35, 55, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.member-dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.member-dropdown:hover .member-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: rgba(125, 211, 224, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.dropdown-item.logout {
    color: #ff6b6b;
}

.dropdown-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff5757;
    border-left-color: #ff5757;
}

.item-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.5), rgba(10, 14, 19, 0.8));
    border-bottom: 1px solid var(--border);
}

.hero-overlay {
    display: none;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(125, 211, 224, 0.3);
}

.btn-primary::before {
    display: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(125, 211, 224, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 2px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
}

/* ---- Midnight Countdown ---- */
.countdown-container {
    width: 100%;
    background: rgba(15, 35, 55, 0.7);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 0 60px rgba(106, 51, 201, 0.05);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countdown-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(106, 51, 201, 0.08) 0%, transparent 60%);
    animation: countdownPulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes countdownPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.countdown-header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Official Midnight logo from Blizzard press kit */
.countdown-midnight-logo {
    max-width: 360px;
    width: 100%;
    height: auto;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 30px rgba(106, 51, 201, 0.4));
    transition: filter 0.3s ease;
}

.countdown-midnight-logo:hover {
    filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.6));
}

/* SVG Sunwell fallback */
.countdown-sunwell {
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 20px rgba(106, 51, 201, 0.5));
}

.countdown-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    text-shadow: 0 0 20px rgba(106, 51, 201, 0.3);
    transition: transform 0.3s ease;
}

.countdown-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.4rem;
    font-weight: 600;
}

.countdown-separator {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(106, 51, 201, 0.5);
    padding-bottom: 1.2rem;
    animation: separatorBlink 1s steps(2) infinite;
}

@keyframes separatorBlink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
}

.countdown-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

/* Launched state */
.countdown-live {
    border-color: rgba(125, 211, 224, 0.5);
    box-shadow: 0 0 40px rgba(125, 211, 224, 0.2), inset 0 0 60px rgba(125, 211, 224, 0.05);
}

.countdown-live::before {
    background: radial-gradient(ellipse at center, rgba(125, 211, 224, 0.1) 0%, transparent 60%);
}

.countdown-launched {
    position: relative;
    z-index: 1;
    padding: 1rem 0;
}

.launched-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    animation: launchedBounce 1s ease infinite alternate;
}

@keyframes launchedBounce {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.launched-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), #7bf5e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.launched-sub {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Stats Section */
.stats {
    padding: 4rem 2rem;
    background: rgba(15, 35, 55, 0.3);
}

.stats-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(125, 211, 224, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about {
    padding: 6rem 2rem;
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.value-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    transition: all 0.2s ease;
}

.value-item:hover {
    background: var(--card-hover);
    transform: translateX(5px);
    border-left-color: var(--accent);
}

.value-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* Footer */
.main-footer {
    background: rgba(10, 14, 19, 0.95);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 1.5rem;
}

.recruitment-section {
    padding: 6rem 2rem;
    background: rgba(15, 35, 55, 0.3);
}

.recruitment-section .about-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 1024px) {
    .recruitment-section .about-content {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.main-footer {
    background: rgba(10, 14, 19, 0.95);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 1.5rem;
}

.footer-ornament {
    display: none;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-guild h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-guild p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-text h2 {
        font-size: 3rem;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .countdown-unit {
        min-width: 60px;
    }
    
    .countdown-separator {
        font-size: 1.8rem;
    }
    
    .countdown-midnight-logo {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: .75rem 1rem;
    }

    .header-content {
        grid-template-columns: auto 1fr auto;
        gap: .75rem;
        align-items: center;
    }

    .main-nav {
        display: none !important;
    }

    .header-info {
        flex-direction: row;
        align-items: center;
        gap: .5rem;
        width: auto;
        justify-content: flex-end;
    }

    .member-name {
        display: none;
    }

    .member-avatar {
        width: 30px !important;
        height: 30px !important;
    }

    .member-trigger {
        padding: .3rem .5rem !important;
        gap: .3rem !important;
    }

    .info-raids, .info-schedule, .member-nav {
        display: none !important;
    }

    .guild-name {
        font-size: 1rem;
    }

    .guild-subtitle, .guild-tagline {
        display: none;
    }

    .emblem-frame {
        width: 36px !important;
        height: 36px !important;
    }

    .guild-emblem {
        gap: .5rem;
    }

    .btn-member {
        width: auto;
        text-align: center;
        padding: .5rem .75rem;
        font-size: .8rem;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .countdown-container {
        padding: 2rem 1rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-unit {
        min-width: 50px;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
        padding-bottom: 0.8rem;
    }
    
    .countdown-midnight-logo {
        max-width: 220px;
    }
    
    .countdown-sunwell svg {
        width: 80px;
        height: 80px;
    }
    
    .launched-text {
        font-size: 1.5rem;
    }

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

    .values-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .main-nav {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

