/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.3) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% { transform: translateX(-10px) translateY(-10px); }
    100% { transform: translateX(10px) translateY(10px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Star ratings */
.stars {
    color: #ff6b35;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(255, 107, 53, 0.3));
}

/* Markdown links */
.markdown-link {
    color: #ff6b35 !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: rgba(255, 107, 53, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.markdown-link:hover {
    color: #ff8c42 !important;
    text-decoration: underline;
    background-color: rgba(255, 140, 66, 0.15);
    border-color: rgba(255, 140, 66, 0.3);
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: headerShimmer 3s linear infinite;
}

@keyframes headerShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: logoGradient 3s ease-in-out infinite;
    letter-spacing: 2px;
}

.logo span {
    color: #ff6b6b;
}

@keyframes logoGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    max-width: 100%;
}

nav ul li {
    /* margin-left removed, using gap on parent */
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

nav ul li a:hover {
    background: rgba(255,255,255,0.1);
}

nav ul li a.active {
    background: rgba(255,255,255,0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 0 80px;
    background: 
        linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="heroGradient" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,107,107,0.1);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(78, 205, 196,0.1);stop-opacity:1" /></radialGradient></defs><circle cx="500" cy="500" r="500" fill="url(%23heroGradient)"/></svg>');
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255,107,107,0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(78,205,196,0.1) 0%, transparent 50%);
    animation: heroPulse 4s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 5px 15px rgba(0,0,0,0.5); }
    100% { text-shadow: 0 5px 15px rgba(255,107,107,0.5); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: #4ecdc4;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 1rem;
    color: #e0e0e0;
    font-weight: 600;
}

/* Main content */
main {
    padding: 4rem 0;
}

.search-section {
    text-align: center;
    margin-bottom: 4rem;
}

.search-section h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Category Filter Styles */
.filter-section {
    margin-top: 2rem;
}

.category-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-filter label {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Category Filter Styles */
.category-filter {
    margin-bottom: 2rem;
}

.category-filter label {
    display: block;
    color: #4ecdc4;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: center;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.category-btn {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.category-btn:hover {
    background: rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.4);
    color: #4ecdc4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.2);
}

.category-btn.active {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    border-color: #4ecdc4;
    color: #1a1a2e;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.4);
    transform: translateY(-1px);
}

.category-btn.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.5);
}

.clear-filter {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.clear-filter:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: scale(1.05);
}

/* Multiplayer Filter Styles */
.multiplayer-filter {
    margin-top: 1rem;
}

.multiplayer-filter label {
    display: block;
    color: #4ecdc4;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.multiplayer-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.multiplayer-btn {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.9rem;
}

.multiplayer-btn:hover {
    background: rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.4);
    color: #4ecdc4;
    transform: translateY(-2px);
}

.multiplayer-btn.active {
    background: rgba(78, 205, 196, 0.3);
    border-color: #4ecdc4;
    color: #4ecdc4;
    font-weight: 600;
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 5px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}

#search {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
}

#search::placeholder {
    color: #ccc;
}

.search-btn {
    padding: 15px 25px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255,107,107,0.4);
}

/* Games grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.game-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: all 0.5s ease;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    animation: cardFadeIn 0.8s ease-out;
    z-index: 1;
}

@keyframes cardFadeIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.game-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.game-image {
    position: relative;
    overflow: hidden;
}

.game-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover img {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,107,107,0.8) 0%, rgba(78,205,196,0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.download-btn {
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.download-btn:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.game-info {
    padding: 25px;
}

.game-card h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rating {
    color: #ffd700;
    font-size: 1.2rem;
}

.size {
    color: #4ecdc4;
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(78,205,196,0.2);
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid rgba(78,205,196,0.3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.size:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78,205,196,0.3);
}

.size::before {
    content: "💾";
    font-size: 0.8rem;
}

.no-games {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.no-games h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.no-games p {
    font-size: 1.2rem;
    color: #e0e0e0;
}

.multiplayer-badge {
    color: #6c5ce7;
    font-weight: 700;
    font-size: 0.75rem;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), rgba(142, 68, 173, 0.3));
    padding: 6px 10px;
    border-radius: 15px;
    border: 1px solid rgba(108, 92, 231, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.2);
    transition: all 0.3s ease;
}

.multiplayer-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.4);
}

.multiplayer-badge::before {
    content: "🎮";
    font-size: 0.9rem;
}

.category-badge {
    color: #4ecdc4;
    font-weight: 700;
    font-size: 0.75rem;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.3), rgba(68, 160, 141, 0.3));
    padding: 6px 10px;
    border-radius: 15px;
    border: 1px solid rgba(78, 205, 196, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.2);
    transition: all 0.3s ease;
}

.category-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(78, 205, 196, 0.4);
}

.category-badge::before {
    content: "🏷️";
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.page-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    color: #fff;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.page-btn:hover {
    background: linear-gradient(135deg, rgba(78,205,196,0.3) 0%, rgba(255,107,107,0.3) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: rgba(78,205,196,0.5);
}

.page-btn.active {
    background: linear-gradient(135deg, #4ecdc4 0%, #ff6b6b 100%);
    color: #fff;
    border-color: #4ecdc4;
    box-shadow: 0 6px 20px rgba(78,205,196,0.4);
}

.page-dots {
    color: #888;
    padding: 0 10px;
    font-size: 1.2rem;
}

.prev-btn, .next-btn {
    font-weight: 700;
    padding: 12px 20px;
}

.prev-btn:hover {
    background: linear-gradient(135deg, rgba(255,107,107,0.3) 0%, rgba(78,205,196,0.3) 100%);
}

.next-btn:hover {
    background: linear-gradient(135deg, rgba(78,205,196,0.3) 0%, rgba(255,107,107,0.3) 100%);
}

.view-all-section {
    text-align: center;
    margin: 3rem 0;
}

.view-all-btn {
    display: inline-block;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(78, 205, 196, 0.5);
}

/* All Games Page Styles */
.search-section {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.search-section h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.search-bar input::placeholder {
    color: #ccc;
}

.search-bar input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78,205,196,0.3);
}

.search-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78,205,196,0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78,205,196,0.5);
}

.all-games-grid {
    margin: 3rem 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #4ecdc4;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #e0e0e0;
    font-weight: 600;
}

.back-to-home {
    text-align: center;
    margin: 4rem 0 2rem 0;
}

.back-btn {
    display: inline-block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5);
}

/* Game Rating Section */
.game-rating-section {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.game-rating-section h2 {
    color: #4ecdc4;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.rating-display {
    text-align: center;
    margin-bottom: 2rem;
}

.rating-stars-large {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rating-number {
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 600;
}

.rating-count {
    color: #4ecdc4;
    font-size: 1rem;
    font-weight: 500;
}

.rating-form {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.rating-form h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
}

.star-rating input[type="radio"]:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffd700;
}

.star-rating input[type="radio"]:checked ~ label {
    color: #ffd700;
}

/* Admin form */
.admin-form {
    max-width: 550px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

.form-group input {
    width: 100%;
    padding: 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: #ccc;
}

.form-group input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 25px rgba(78, 205, 196, 0.4);
    background: rgba(255,255,255,0.2);
}

.btn {
    display: block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.message {
    padding: 20px;
    margin-bottom: 2rem;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 2px solid #4caf50;
}

.message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #ef5350;
    border: 2px solid #f44336;
}

/* Auth Pages Styles */
.demo-account-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.demo-account {
    padding: 12px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.demo-account:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.demo-account strong {
    color: #00ffff;
}

/* Dashboard Styles */
.dashboard-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
}

.dashboard-header h2 {
    margin: 0;
    color: #00ffff;
    font-size: 2.5rem;
}

.user-info {
    text-align: right;
}

#user-greeting {
    display: block;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.user-role {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.user-role.admin {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.user-role.moderator {
    background: linear-gradient(45deg, #ffd93d, #ff8c42);
    color: white;
}

.user-role.user {
    background: linear-gradient(45deg, #6bcf7f, #4ecdc4);
    color: white;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.stat-card h3 {
    margin: 0 0 1rem 0;
    color: #00ffff;
    font-size: 1.1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.dashboard-content {
    display: grid;
    gap: 3rem;
}

.dashboard-section {
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
}

.dashboard-section h3 {
    margin: 0 0 2rem 0;
    color: #00ffff;
    font-size: 1.8rem;
    border-bottom: 2px solid rgba(0,255,255,0.3);
    padding-bottom: 10px;
}

.favorites-list, .activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.favorite-item, .activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.activity-item {
    justify-content: flex-start;
    gap: 1rem;
}

.activity-icon {
    font-size: 1.5rem;
}

.activity-text {
    flex: 1;
    color: #fff;
}

.activity-time {
    color: #ccc;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    color: #ccc;
    font-style: italic;
    padding: 2rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
}

.settings-form .form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-form label {
    color: #fff;
    font-weight: 500;
}

.settings-form select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.save-btn {
    padding: 12px 24px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,255,255,0.3);
}

.remove-favorite {
    padding: 6px 12px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.remove-favorite:hover {
    background: #ff3742;
    transform: scale(1.05);
}

/* FAQ Styles */
.faq {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2.5rem;
    padding: 3rem;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s ease;
}

.faq-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.faq-item h3 {
    margin-bottom: 1.5rem;
    color: #4ecdc4;
    font-size: 1.5rem;
    font-weight: 700;
}

.faq-item p {
    margin: 0;
    line-height: 1.8;
    color: #e0e0e0;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #4ecdc4;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #4ecdc4;
}

/* FAQ Styles */
.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section {
    margin-bottom: 3rem;
}

.faq-section h3 {
    color: #4ecdc4;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-item {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.faq-item h4 {
    background: rgba(255,255,255,0.1);
    padding: 1.2rem 1.5rem;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.faq-item h4:hover {
    background: rgba(255,255,255,0.15);
}

.faq-item h4.active {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: none;
    line-height: 1.7;
    color: #e0e0e0;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer ol, .faq-answer ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: #4ecdc4;
    font-weight: 600;
}

/* No games message */
.no-games {
    text-align: center;
    padding: 3rem;
    color: #ccc;
}

.no-games p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Optimisations d'images */
.game-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0); /* Force hardware acceleration */
    backface-visibility: hidden;
}

.game-card {
    contain: layout style paint;
    will-change: transform;
    transition: transform 0.2s ease;
}

.game-card:hover {
    transform: translateY(-5px);
}

/* Optimiser les animations */
.background-animation {
    will-change: transform;
}

/* Précharger les polices importantes */
@font-face {
    font-family: 'Orbitron';
    font-display: swap;
}

@font-face {
    font-family: 'Rajdhani';
    font-display: swap;
}

/* Responsive */
@media (max-width: 1024px) {
    nav ul {
        gap: 8px;
    }
    
    nav ul li a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        position: relative;
    }
    
    .hamburger {
        display: flex;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        z-index: 10;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        margin-top: 0;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        border-radius: 0 0 15px 15px;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 10;
    }
    
    nav ul.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    
    nav ul li {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 20px;
        border-radius: 10px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .search-bar {
        flex-direction: column;
        max-width: 300px;
    }
    
    #search {
        margin-bottom: 10px;
    }
    
    .search-btn {
        margin-left: 0;
    }
    
    .admin-form {
        padding: 3rem 2rem;
        margin: 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Login Container */
.login-container {
    max-width: 500px;
    margin: 100px auto 0;
    text-align: center;
}

.login-container h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.login-info {
    margin-top: 2rem;
    color: #ccc;
    font-size: 0.9rem;
}

/* Dashboard Styles */
.dashboard-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-section h3 {
    color: #4ecdc4;
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', monospace;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 1rem;
}

.rating-form {
    max-width: 500px;
    margin: 0 auto;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 1rem 0;
}

.rating-stars input[type="radio"] {
    display: none;
}

.rating-stars label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
}

.rating-stars input[type="radio"]:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #ffd700;
}

.btn-favorite {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-favorite:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-favorite.remove {
    background: linear-gradient(45deg, #ff4757, #ff3838);
}

.user-info {
    text-align: center;
    margin-bottom: 2rem;
}

.user-info h2 {
    color: #4ecdc4;
    font-family: 'Orbitron', monospace;
}

/* Button styles */
.btn-primary {
    display: block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.btn-secondary {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #ee5a52, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.btn-danger {
    display: block;
    width: 100%;
    padding: 8px 16px;
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-danger:hover {
    background: linear-gradient(45deg, #c82333, #dc3545);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.4);
}

/* Game image styles */
.game-image-large {
    max-width: 616px;
    height: 353px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: 0 auto;
    display: block;
}

.game-image-large img {
    max-width: 100%;
    max-height: 353px;
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 15px;
}

/* Report form styles */
.report-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.report-textarea {
    width: 100%;
    min-height: 80px;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    line-height: 1.5;
}

.report-textarea::placeholder {
    color: #ccc;
    opacity: 0.8;
}

.report-textarea:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.report-textarea:hover {
    border-color: rgba(78, 205, 196, 0.5);
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: #ccc;
    margin-top: 5px;
    font-weight: 500;
}

.char-counter.warning {
    color: #ff6b6b;
}

.report-button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-button:hover {
    background: linear-gradient(45deg, #ee5a52, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.report-button:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .report-form {
        padding: 1rem;
        margin: 0.5rem 0;
    }

    .report-textarea {
        min-height: 70px;
        padding: 12px;
        font-size: 0.95rem;
    }

    .report-button {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
}

/* User management forms */
.user-action-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.ban-duration-select {
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.ban-duration-select:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.4);
    background: rgba(255, 107, 107, 0.15);
}

.ban-duration-select:hover {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
}

.ban-button {
    padding: 8px 16px;
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ban-button:hover {
    background: linear-gradient(45deg, #c82333, #dc3545);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.4);
}

.unban-button {
    padding: 8px 16px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.unban-button:hover {
    background: linear-gradient(45deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
}

/* Responsive adjustments for user management */
@media (max-width: 768px) {
    .user-action-form {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .ban-duration-select {
        min-width: auto;
        width: 100%;
    }

    .ban-button,
    .unban-button {
        width: 100%;
        text-align: center;
    }
}

/* Statistics styles */
.stat-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-box h3 {
    color: #4ecdc4;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.stat-box .number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    font-family: 'Orbitron', monospace;
    margin-bottom: 0.5rem;
}

.stat-description {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

/* Real-time indicator */
.stat-box .real-time-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ecdc4;
    border-radius: 50%;
    margin-left: 0.5rem;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.stat-box .real-time-indicator.active {
    opacity: 1;
    animation: pulse 1s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Statistics update animation */
@keyframes statUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); color: #4ecdc4; }
    100% { transform: scale(1); }
}