/* ================================================
   WotLK Theme - Wrath of the Lich King Atmosphere
   ================================================ */

/* Hero Section - Icecrown Citadel Theme */
.wotlk-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #0a0a12;
    margin-bottom: 5rem;
}

/* Background image layer - properly sized without stretching */
.wotlk-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/background.jpg') center top no-repeat;
    background-size: cover;
    z-index: 0;
}

/* Dark gradient overlay for text readability */
.wotlk-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg,
            rgba(10, 10, 18, 0.2) 0%,
            rgba(10, 10, 18, 0.5) 50%,
            rgba(10, 10, 18, 0.95) 100%),
        radial-gradient(ellipse at 50% 0%, rgba(79, 195, 220, 0.1) 0%, transparent 50%);
    z-index: 1;
}

/* Dark overlay for better text readability */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Animated frost particles */
.hero-frost-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(200, 220, 255, 0.3) 50%, transparent 50%),
        radial-gradient(2px 2px at 40% 70%, rgba(180, 200, 255, 0.2) 50%, transparent 50%),
        radial-gradient(1px 1px at 60% 20%, rgba(220, 240, 255, 0.4) 50%, transparent 50%),
        radial-gradient(2px 2px at 80% 50%, rgba(200, 220, 255, 0.25) 50%, transparent 50%),
        radial-gradient(1px 1px at 10% 60%, rgba(180, 200, 255, 0.35) 50%, transparent 50%),
        radial-gradient(2px 2px at 90% 80%, rgba(200, 220, 255, 0.2) 50%, transparent 50%);
    animation: frostFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

/* Hero content - above all overlays */
.hero-content {
    position: relative;
    z-index: 10;
}

@keyframes frostFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) translateX(-5px);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-30px) translateX(15px);
        opacity: 0.7;
    }
}

/* Lich King Emblem/Logo */
.lich-king-emblem {
    margin-bottom: 1.5rem;
    animation: emblempulse 4s ease-in-out infinite;
}

.lich-king-emblem img {
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(79, 195, 220, 0.5));
}

@keyframes emblempulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(79, 195, 220, 0.5));
    }
    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 0 50px rgba(79, 195, 220, 0.7));
    }
}

/* Glowing Text Effect */
.text-glow {
    color: var(--accent-ice);
    text-shadow:
        0 0 10px rgba(79, 195, 220, 0.8),
        0 0 20px rgba(79, 195, 220, 0.6),
        0 0 30px rgba(79, 195, 220, 0.4),
        0 0 40px rgba(79, 195, 220, 0.2);
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(79, 195, 220, 0.8),
            0 0 20px rgba(79, 195, 220, 0.6),
            0 0 30px rgba(79, 195, 220, 0.4),
            0 0 40px rgba(79, 195, 220, 0.2);
    }
    50% {
        text-shadow:
            0 0 15px rgba(79, 195, 220, 1),
            0 0 30px rgba(79, 195, 220, 0.8),
            0 0 45px rgba(79, 195, 220, 0.6),
            0 0 60px rgba(79, 195, 220, 0.4);
    }
}

/* Hero Title Wrapper */
.hero-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Hero Logo - on separate line below "Welcome to" */
.hero-logo {
    max-width: 200px;
    width: 90%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(79, 195, 220, 0.7));
    animation: heroLogoGlow 3s ease-in-out infinite;
}

@keyframes heroLogoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(79, 195, 220, 0.7));
    }
    50% {
        filter: drop-shadow(0 0 50px rgba(79, 195, 220, 1));
    }
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 300px;
    }
}

/* Frost Button Effect */
.btn-frost {
    position: relative;
    background: linear-gradient(135deg, #1e5b8a 0%, #0d3a5c 100%);
    border: 2px solid rgba(79, 195, 220, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-frost::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 195, 220, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-frost:hover {
    border-color: var(--accent-ice);
    box-shadow:
        0 0 20px rgba(79, 195, 220, 0.5),
        inset 0 0 20px rgba(79, 195, 220, 0.1);
    transform: translateY(-2px);
}

.btn-frost:hover::before {
    left: 100%;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s ease-in-out infinite;
    opacity: 0.7;
    z-index: 10;
}

.hero-scroll-indicator svg {
    width: 20px;
    height: 20px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Ice Border Effect for Cards */
.ice-border {
    position: relative;
    border: 1px solid rgba(79, 195, 220, 0.3);
}

.ice-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        transparent 40%,
        rgba(79, 195, 220, 0.3) 50%,
        transparent 60%);
    border-radius: inherit;
    animation: iceBorderShine 3s linear infinite;
    pointer-events: none;
}

@keyframes iceBorderShine {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Frozen Frame Effect */
.frozen-frame {
    position: relative;
    background: linear-gradient(135deg,
        rgba(79, 195, 220, 0.1) 0%,
        rgba(16, 22, 42, 0.95) 50%,
        rgba(79, 195, 220, 0.05) 100%);
    border: 1px solid rgba(79, 195, 220, 0.2);
    box-shadow:
        0 0 30px rgba(79, 195, 220, 0.1),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
}

/* Rune Glow Effect */
.rune-glow {
    position: relative;
}

.rune-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(79, 195, 220, 0.2) 0%,
        transparent 70%);
    animation: runeGlow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes runeGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Death Knight Blue Accent */
.dk-accent {
    color: #C41F3B;
    text-shadow: 0 0 10px rgba(196, 31, 59, 0.5);
}

/* Frost Mist Effect (for backgrounds) */
.frost-mist {
    position: relative;
}

.frost-mist::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top,
        rgba(79, 195, 220, 0.05) 0%,
        transparent 100%);
    pointer-events: none;
}

/* Icy Divider */
.ice-divider {
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(79, 195, 220, 0.5) 50%,
        transparent 100%);
    margin: 2rem 0;
    position: relative;
}

.ice-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--accent-ice);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-ice);
}

/* Northrend Stats Card Enhancement */
.stats-grid .stat-card {
    position: relative;
    overflow: hidden;
}

.stats-grid .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent-ice) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-grid .stat-card:hover::before {
    opacity: 1;
}

/* Feature Icons with Frost Effect */
.card .card-body > div[style*="font-size: 3rem"] {
    filter: drop-shadow(0 0 15px rgba(79, 195, 220, 0.3));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.card:hover .card-body > div[style*="font-size: 3rem"] {
    filter: drop-shadow(0 0 25px rgba(79, 195, 220, 0.6));
    transform: scale(1.1);
}

/* Snow Toggle Button */
.snow-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.snow-toggle:hover {
    border-color: var(--accent-ice);
    color: var(--accent-ice);
    box-shadow: 0 0 15px rgba(79, 195, 220, 0.3);
}

.snow-toggle.active {
    background: rgba(79, 195, 220, 0.1);
    border-color: var(--accent-ice);
    color: var(--accent-ice);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .lich-king-emblem img {
        max-width: 250px;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .text-glow {
        text-shadow:
            0 0 5px rgba(79, 195, 220, 0.8),
            0 0 10px rgba(79, 195, 220, 0.5);
    }
}

/* Frostmourne Cursor (optional - for special elements) */
.frost-cursor {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%234fc3dc'%3E%3Cpath d='M12 2L9 7H6L12 22L18 7H15L12 2Z'/%3E%3C/svg%3E"), auto;
}
