/* ===== AI Game Hub - Main Stylesheet ===== */

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --secondary: #00a8a8;
    --accent: #e84393;
    --bg-dark: #f5f6fa;
    --bg-card: #ffffff;
    --bg-input: #f0f0f5;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --border: #dfe6e9;
    --success: #27ae60;
    --error: #e74c3c;
    --warning: #f39c12;
    --star: #fdcb6e;
    --gradient-1: linear-gradient(135deg, #6c5ce7, #a855f7);
    --gradient-2: linear-gradient(135deg, #00a8a8, #6c5ce7);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 12px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary);
}

/* === Navbar === */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo i {
    -webkit-text-fill-color: var(--secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover {
    background: rgba(108, 92, 231, 0.1);
    color: var(--text-primary);
}

.btn-register {
    background: var(--gradient-1) !important;
    color: white !important;
    font-weight: 600;
}

.btn-register:hover {
    opacity: 0.9;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-btn:hover {
    background: rgba(108, 92, 231, 0.1);
    color: var(--text-primary);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 200px;
    box-shadow: var(--shadow);
    padding: 8px 0;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background: rgba(108, 92, 231, 0.1);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 10px;
    color: var(--text-secondary);
    border-radius: 8px;
}

.mobile-menu a:hover {
    background: rgba(108, 92, 231, 0.1);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* === Alerts === */
.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.3s ease;
    transition: opacity 0.5s;
}

.alert-success {
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert-close {
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 16px;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* === Hero Section === */
.hero {
    background: linear-gradient(135deg, #f5f6fa 0%, #e8eaf6 50%, #f3e5f5 100%);
    border-radius: var(--radius);
    padding: 80px 40px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(108, 92, 231, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(0, 168, 168, 0.08) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5%, -5%) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Stats Bar === */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px;
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 40px;
    border: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* === Section === */
.section {
    margin-bottom: 40px;
}

.bg-dark {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px 30px;
    border: 1px solid var(--border);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-all {
    color: var(--primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-all:hover {
    color: var(--secondary);
}

/* === Game Grid === */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.2);
    border-color: var(--primary);
}

.game-thumbnail {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.05);
}

.game-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8eaf6, #f3e5f5);
    font-size: 3rem;
    color: var(--primary);
}

.top-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gradient-1);
    color: #ffd700;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.game-info {
    padding: 16px;
}

.game-category {
    font-size: 0.75rem;
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 8px;
}

.game-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.game-title a {
    color: var(--text-primary);
}

.game-title a:hover {
    color: var(--primary);
}

.game-author {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-rating i {
    color: var(--star);
}

.game-plays {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* === Empty State === */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty-state h3 {
    margin: 16px 0 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* === CTA Section === */
.cta-section {
    background: var(--gradient-1);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.cta-content .btn {
    background: white;
    color: var(--primary);
}

.cta-content .btn:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* === Auth Pages === */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.auth-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* === Form Elements === */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group label i {
    width: 16px;
    margin-right: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.file-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* === File Upload Area === */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
}

.file-upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-info {
    padding: 10px 16px;
    background: var(--bg-input);
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* === Game Detail Page === */
.game-detail-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin-bottom: 40px;
}

.game-player-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.game-player-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.game-player-header h1 {
    font-size: 1.3rem;
}

.game-category-badge {
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.game-player {
    width: 100%;
    background: #000;
    position: relative;
}

.game-iframe {
    width: 100%;
    height: 500px;
    border: none;
}

.game-player-actions {
    padding: 12px 20px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--border);
}

/* Game Info Section */
.game-info-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    margin-top: 24px;
}

.game-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.game-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-author-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.game-stats {
    display: flex;
    gap: 16px;
}

.stat-badge {
    background: var(--bg-input);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.game-description {
    margin-bottom: 24px;
}

.game-description h3 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-description p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Rating Section */
.rating-section {
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.rating-section h3 {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.star-rating p {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.star {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ccc;
    transition: all 0.2s;
}

.star:hover,
.star.active {
    color: var(--star);
    transform: scale(1.1);
}

.rating-message {
    font-size: 0.9rem;
}

.login-to-rate {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-to-rate a {
    font-weight: 600;
}

/* Comments Section */
.comments-section {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.comments-section h3 {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form {
    margin-bottom: 24px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    margin-bottom: 10px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: 8px;
}

.comment-avatar {
    font-size: 2rem;
    color: var(--primary);
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.comment-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.no-comments {
    color: var(--text-secondary);
    text-align: center;
    padding: 20px;
}

/* Sidebar */
.game-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-thumbnail {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.sidebar-thumbnail img {
    width: 100%;
    display: block;
}

.related-games {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px;
}

.related-games h3 {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-game-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.related-game-item:hover {
    background: var(--bg-input);
}

.related-game-item img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.related-thumb-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.related-game-info h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.related-game-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* === Browse Page === */
.browse-container {
    margin-bottom: 40px;
}

.browse-header {
    margin-bottom: 30px;
}

.browse-header h1 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.browse-filters {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-box {
    display: flex;
    max-width: 500px;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box button {
    padding: 12px 20px;
    background: var(--gradient-1);
    border: none;
    border-radius: 0 8px 8px 0;
    color: white;
    cursor: pointer;
    font-size: 1rem;
}

.filter-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group select {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-group select option {
    background: var(--bg-card);
}

/* === Profile Page === */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-header-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 40px;
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.profile-email, .profile-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-bio {
    margin-top: 12px;
    color: var(--text-secondary);
}

.profile-stats {
    display: flex;
    gap: 30px;
}

.profile-stat {
    text-align: center;
}

.profile-stat .stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.profile-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.profile-games-section .section-header {
    margin-bottom: 24px;
}

/* === My Games Page === */
.my-games-container {
    max-width: 1000px;
    margin: 0 auto;
}

.my-games-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.my-game-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all 0.3s;
}

.my-game-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.15);
}

.my-game-thumb {
    width: 100px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.my-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-game-details {
    flex: 1;
}

.my-game-details h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.my-game-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 6px 0;
}

.my-game-stats {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.my-game-actions {
    flex-shrink: 0;
}

/* === Upload Page === */
.upload-container {
    max-width: 700px;
    margin: 0 auto;
}

.upload-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 40px;
}

.upload-header {
    text-align: center;
    margin-bottom: 30px;
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.upload-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.upload-header p {
    color: var(--text-secondary);
}

/* === Footer === */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 20px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    padding: 4px 0;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .game-detail-container {
        grid-template-columns: 1fr;
    }
    
    .game-detail-sidebar {
        order: -1;
    }
    
    .related-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 50px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .stats-bar {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .auth-card {
        padding: 24px;
    }
    
    .profile-header-card {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .game-info-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .my-game-item {
        flex-direction: column;
        text-align: center;
    }
    
    .my-game-thumb {
        width: 100%;
        height: 150px;
    }
    
    .my-game-stats {
        justify-content: center;
    }
    
    .upload-card {
        padding: 24px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .game-player-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .game-iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    .related-list {
        grid-template-columns: 1fr;
    }
    
    .game-iframe {
        height: 250px;
    }
}