/* ==========================================
   GAMES PAGE STYLES
   ========================================== */

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Games Hero Section */
.games-hero {
    padding: 140px 20px 80px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.games-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.games-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.games-hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.games-hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.launched {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.status-dot.beta {
    background: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.5);
}

.status-dot.coming-soon {
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

/* Search Bar */
.search-bar {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    stroke: var(--text-light);
    pointer-events: none;
}

.search-bar input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 16px;
    font-family: var(--font-primary);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-bar input::placeholder {
    color: var(--text-light);
}

/* Games Section */
.games-section {
    padding: 80px 20px;
    background: var(--bg-primary);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Game Card */
.game-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.game-card:hover::before {
    transform: scaleX(1);
}

/* Game Icon */
.game-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.game-icon img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
}

.game-icon.placeholder {
    font-size: 36px;
}

/* Game Status Badge */
.game-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    width: fit-content;
}

.game-status.launched {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.game-status.beta {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.game-status.coming-soon {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.game-status-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.game-status.launched .game-status-icon {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.game-status.beta .game-status-icon {
    background: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
}

.game-status.coming-soon .game-status-icon {
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

/* Game Name */
.game-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Game Description */
.game-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Game Link Button */
.game-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.game-link:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.game-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
}

.game-link.disabled {
    background: var(--bg-secondary);
    color: var(--text-light);
    cursor: not-allowed;
    box-shadow: none;
}

.game-link.disabled:hover {
    transform: none;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results svg {
    width: 80px;
    height: 80px;
    stroke: var(--text-light);
    margin-bottom: 20px;
}

.no-results h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.no-results p {
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 968px) {
    .games-hero {
        padding: 120px 20px 60px;
    }

    .games-hero-title {
        font-size: 40px;
    }

    .games-hero-subtitle {
        font-size: 18px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .games-hero {
        padding: 100px 16px 50px;
    }

    .games-hero-title {
        font-size: 32px;
    }

    .games-hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        font-size: 13px;
        padding: 8px 16px;
    }

    .games-section {
        padding: 60px 16px;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .games-hero-title {
        font-size: 28px;
    }

    .games-hero-subtitle {
        font-size: 15px;
    }

    .filter-buttons {
        gap: 6px;
    }

    .filter-btn {
        font-size: 12px;
        padding: 7px 14px;
    }

    .game-card {
        padding: 24px;
    }

    .game-name {
        font-size: 20px;
    }

    .game-description {
        font-size: 14px;
    }

    .search-bar input {
        padding: 14px 16px 14px 48px;
        font-size: 15px;
    }
}

/* Dark Theme Specific Adjustments */
[data-theme="dark"] .games-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
}

[data-theme="dark"] .filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .filter-btn:hover {
    border-color: var(--primary-color);
}

[data-theme="dark"] .game-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .game-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .search-bar input {
    background: rgba(255, 255, 255, 0.05);
}
