/* Global Styles and Animations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Page Load Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    animation: fadeInUp 0.6s ease-out;
}

.page-header {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.controls-section {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .main-content,
    .page-header,
    .controls-section {
        animation: none;
    }
}

:root {
    /* PRIMARY BRAND COLORS */
    --primary-color: #1a73e8;        /* Primary Blue (Google Blue) */
    --secondary-color: #333;         /* Charcoal Gray */
    --accent-color: #3498db;         /* Medium Blue */
    --highlight-color: #2980b9;      /* Dark Blue */
    
    /* TEXT COLORS */
    --text-light: #ffffff;           /* Pure White */
    --text-primary: #333;            /* Primary Text */
    --text-secondary: #555;          /* Secondary Text */
    --text-muted: #777;              /* Light Text */
    
    /* BACKGROUNDS */
    --background-light: #f4f4f4;     /* Light Gray */
    --background-secondary: #f8f9fa; /* Very Light Gray */
    --background-auth: #f5f5f5;      /* Off-White Gray */
    --card-background: #ffffff;      /* Pure White */
    
    /* ADMIN PANEL COLORS */
    --admin-primary: #2c3e50;        /* Dark Blue-Gray */
    --admin-secondary: #34495e;      /* Medium Blue-Gray */
    
    /* BORDERS */
    --border-color: #ddd;            /* Light Gray Border */
    --border-secondary: #ccc;        /* Medium Gray Border */
    
    /* INTERACTIVE STATES */
    --hover-light: #e9e9e9;          /* Light Gray Hover */
    --hover-medium: #ddd;            /* Medium Hover */
    --disabled-color: #f0f0f0;       /* Interactive disabled */
    
    /* SUCCESS & POSITIVE */
    --success-color: #4CAF50;        /* Success Green */
    --success-hover: #45a049;       /* Dark Success Green */
    
    /* ADMIN BUTTONS */
    --admin-btn-primary: #007bff;    /* Bootstrap Blue */
    --admin-btn-hover: #0056b3;     /* Deep Blue */
    
    /* SHADOWS */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    
    /* GRADIENTS */
    --gradient-main: linear-gradient(to right, #2c3e50, #bdc3c7);
    
    /* LEGACY SUPPORT */
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --live-indicator: #ff4757;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--admin-primary) 100%);
    box-shadow: 0 4px 20px var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    padding: 0 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo h1 {
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-light);
    background: linear-gradient(45deg, #ffffff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.nav-logo h1::before {
    content: "🏆";
    position: absolute;
    left: -2.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.3);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.4);
    transform: translateY(-1px);
}

.admin-link {
    background: linear-gradient(45deg, var(--success-color), #66bb6a) !important;
    color: white !important;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.admin-link::before {
    background: linear-gradient(45deg, var(--success-hover), #4caf50) !important;
}

.admin-link:hover {
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: linear-gradient(45deg, var(--text-light), #e3f2fd);
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 0.25rem;
        padding: 0.25rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }
    
    .nav-container {
        height: 70px;
    }
    
    .nav-logo h1 {
        font-size: 1.6rem;
    }
    
    .nav-logo h1::before {
        left: -2rem;
        font-size: 1.2rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, var(--secondary-color), var(--admin-primary));
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 1rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 12px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 480px) {
    .nav-logo h1 {
        font-size: 1.4rem;
    }
    
    .nav-logo h1::before {
        display: none;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--highlight-color) 50%, var(--primary-color) 100%);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0 3rem 0;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(26, 115, 232, 0.2);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.welcome-ad {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 3rem 2rem;
    min-height: calc(100vh - 140px);
}

/* Page Header */
.page-header {
    text-align: center;
    margin: 3rem 0 4rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--card-background) 0%, var(--background-secondary) 100%);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--highlight-color));
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Controls Section */
.controls-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--card-background) 0%, var(--background-secondary) 100%);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.controls-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--highlight-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientMove 3s ease-in-out infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.date-tabs {
    display: flex;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(26, 115, 232, 0.1);
}

.date-tab {
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--admin-secondary));
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.date-tab::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.date-tab:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3);
}

.date-tab:hover::before {
    left: 100%;
}

.date-tab.active {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.4);
}

.search-container {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--card-background);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1), 0 4px 12px var(--shadow-light);
    transform: translateY(-1px);
}

.search-container::before {
    content: "🔍";
    position: absolute;
    left: 1.125rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

/* Sport Filter Buttons */
.sport-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(26, 115, 232, 0.1);
}

.sport-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--background-secondary), var(--card-background));
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sport-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.sport-btn:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3);
}

.sport-btn:hover::before {
    opacity: 1;
}

.sport-btn.active {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.4);
}

/* Responsive Controls */
@media (max-width: 768px) {
    .controls-section {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.25rem;
    }
    
    .date-tabs {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .date-tab {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        color: #ffffff;
    }
    
    .sport-filters {
        justify-content: center;
    }
    
    .sport-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .controls-section {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .date-tab {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
        color: #ffffff;
    }
    
    .sport-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .search-input {
        padding: 0.875rem 1rem 0.875rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .search-container::before {
        left: 0.75rem;
        font-size: 1rem;
    }
}

.search-container {
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

/* Sport Filter */
.sport-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sport-btn {
    padding: 0.5rem 1rem;
    background-color: var(--background-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sport-btn:hover,
.sport-btn.active {
    background-color: var(--highlight-color);
    color: white;
    border-color: var(--highlight-color);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-light);
    border-color: var(--highlight-color);
}

.game-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-not-started {
    background-color: var(--text-secondary);
    color: var(--text-light);
}

.status-live {
    background-color: var(--live-indicator);
    color: white;
    animation: pulse 2s infinite;
}

.status-finished {
    background-color: var(--text-secondary);
    color: var(--text-light);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.game-league {
    color: var(--highlight-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.game-teams {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.game-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.game-date {
    font-weight: 500;
}

.game-duration {
    color: var(--text-secondary);
}

/* Advertisement Spaces */
.ad-space {
    background-color: var(--card-background);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* Game Page Styles */
.game-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stream-section {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.game-info {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-light);
}

.game-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.game-details {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.game-details div {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.game-details strong {
    color: var(--text-light);
    font-weight: 600;
}

.stream-servers {
    margin-bottom: 1.5rem;
}

.servers-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.server-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.server-btn {
    padding: 0.5rem 1rem;
    background-color: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.server-btn:hover,
.server-btn.active {
    background-color: var(--highlight-color);
    border-color: var(--highlight-color);
    color: white;
}

.stream-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.stream-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Advertisement Section (Replaces Chat) */
.ad-section {
    background-color: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.ad-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--secondary-color);
    border-radius: 12px 12px 0 0;
    color: var(--text-light);
}

.ad-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-light);
}

.ad-content-area {
    flex: 1;
    padding: 1.5rem;
    background-color: var(--background-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.ad-content-area.secondary-ad {
    min-height: 180px;
    border-top: 1px solid var(--border-color);
    background-color: var(--card-background);
}

.ad-placeholder {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--background-light), var(--background-secondary));
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    width: 100%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.ad-placeholder:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    transform: translateY(-2px);
}

.ad-placeholder.small {
    padding: 1.5rem;
}

.ad-placeholder-content {
    max-width: 300px;
    margin: 0 auto;
}

.ad-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.ad-placeholder h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: inherit;
}

.ad-placeholder h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: inherit;
}

.ad-placeholder p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: inherit;
    opacity: 0.8;
}

.contact-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--highlight-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.contact-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
}

.modal-content {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal-input {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.modal-btn {
    padding: 0.75rem 2rem;
    background-color: var(--highlight-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background-color: #d63851;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    color: var(--text-light);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 1rem;
        padding: 2rem 0;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        width: 80%;
        text-align: center;
        padding: 1rem;
        border-radius: 8px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .controls-section {
        flex-direction: column;
    }
    
    .date-tabs {
        justify-content: center;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ad-section {
        height: 400px;
        order: 2;
    }
    
    .stream-section {
        order: 1;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem 0.5rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .game-card {
        padding: 1rem;
    }
    
    .ad-section {
        height: 300px;
    }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--highlight-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No games message */
.no-games {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.no-games-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
