/* Custom CSS Variables */
:root {
    --primary-gold: #e5cd88;
    --dark-gold: #d4af37;
    --bronze: #cd7f32;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: rgba(20, 20, 20, 0.9);
    --text-light: #f5f5f5;
    --text-gold: #e5cd88;
    --text-muted: #9CA3AF;
    --border-color: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(30, 30, 30, 0.8);
    --header-bg: rgba(15, 15, 15, 0.9);
    --accent-red: #ff6b35;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Snow Effect */
.snow {
    position: fixed;
    top: -10px;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
}

.snowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
    pointer-events: none;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Header Styles */
.main-header {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 2px solid var(--primary-gold);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.server-status {
    background: linear-gradient(90deg, var(--dark-gold), var(--primary-gold));
    color: var(--dark-bg);
    font-weight: 600;
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
}

.navbar-brand {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 10px 15px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-gold) !important;
    background: rgba(229, 205, 136, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-gold) !important;
    background: rgba(229, 205, 136, 0.2);
}

/* Dropdown Styles */
.dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--primary-gold);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.dropdown-item {
    color: var(--text-light);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(229, 205, 136, 0.1);
    color: var(--primary-gold);
}

/* Button Styles */
.btn-gold {
    background: linear-gradient(45deg, var(--dark-gold), var(--primary-gold));
    border: none;
    color: var(--dark-bg);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 205, 136, 0.4);
    color: var(--dark-bg);
}

.btn-outline-gold {
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    background: transparent;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline-gold:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 205, 136, 0.4);
}

/* Card Styles */
.game-card {
    background: var(--card-bg);
    border: 1px solid rgba(229, 205, 136, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 40px rgba(229, 205, 136, 0.2);
}

.game-card h3 {
    color: var(--primary-gold);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Footer Styles */
.main-footer {
    background: var(--darker-bg);
    border-top: 2px solid var(--primary-gold);
    margin-top: 50px;
    padding: 40px 0 20px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('/images/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature Cards */
.features-section {
    padding: 80px 0;
    background: rgba(10,10,10,0.8);
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(229, 205, 136, 0.3);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 50px rgba(229, 205, 136, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

/* Section Titles */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.8);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background: rgba(5,5,5,0.9);
}

.news-card {
    background: var(--card-bg);
    border: 1px solid rgba(229, 205, 136, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 40px rgba(229, 205, 136, 0.2);
}

.news-date {
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-title {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* News Slider */
.news-slider {
    background: rgba(5,5,5,0.9);
    padding: 60px 0;
    overflow: hidden;
}

.news-slide {
    background: var(--card-bg);
    border: 1px solid rgba(229, 205, 136, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin: 0 15px;
    transition: all 0.3s ease;
    min-height: 200px;
}

.news-slide:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 40px rgba(229, 205, 136, 0.2);
}

/* Videos Section */
.videos-section {
    background: rgba(10,10,10,0.8);
    padding: 80px 0;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid rgba(229, 205, 136, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 40px rgba(229, 205, 136, 0.2);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(229, 205, 136, 0.9);
    color: var(--dark-bg);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-play-btn:hover {
    background: var(--primary-gold);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-title {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.video-date {
    color: var(--primary-gold);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Social Links */
.social-section {
    background: linear-gradient(45deg, rgba(229, 205, 136, 0.1), rgba(229, 205, 136, 0.05));
    padding: 60px 0;
}

.social-card {
    background: var(--card-bg);
    border: 1px solid rgba(229, 205, 136, 0.3);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.social-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 50px rgba(229, 205, 136, 0.2);
}

.social-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.social-icon.facebook {
    color: #1877f2;
}

.social-icon.discord {
    color: #5865f2;
}

.social-icon.youtube {
    color: #ff0000;
}

.social-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(45deg, var(--dark-gold), var(--primary-gold));
    color: var(--dark-bg);
    padding: 60px 0;
    margin: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    background: var(--card-bg);
    padding: 60px 0;
    text-align: center;
    border-top: 2px solid var(--primary-gold);
    border-bottom: 2px solid var(--primary-gold);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(229, 205, 136, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .game-card {
        padding: 20px;
        margin: 10px 0;
    }

    .feature-card {
        margin-bottom: 30px;
    }
}
