/* =====================================================
   Tebry Interactive — Clean Corporate Theme
   Main Stylesheet
   ===================================================== */

:root {
    --bg: #0a0a0f;
    --bg-elevated: #12121a;
    --bg-card: #1a1a24;
    --bg-input: #22222e;
    --text: #f2f2f5;
    --text-secondary: #c4c4d0;
    --text-muted: #9a9aac;
    --accent: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-hover: #818cf8;
    --border: #2a2a35;
    --border-light: #3a3a4a;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
    --shadow-glow: 0 8px 32px rgba(99,102,241,0.2);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 60px; height: 80px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-sm);
}
.nav-logo {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700;
    letter-spacing: -0.5px; color: var(--text);
    display: flex; align-items: center; gap: 10px;
}
.nav-logo-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700; color: #fff;
}
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; font-size: 0.88rem;
    font-weight: 500; padding: 8px 16px; border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--bg-elevated); }
.nav-links a.active { color: var(--text); background: var(--bg-card); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-lang {
    background: var(--bg-elevated); color: var(--text-muted);
    border: 1px solid var(--border); padding: 8px 14px;
    border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 500;
    cursor: pointer; font-family: inherit;
}
.nav-cta {
    background: var(--accent); color: #fff; border: none;
    padding: 10px 24px; border-radius: var(--radius-md);
    font-family: 'Space Grotesk', sans-serif; font-weight: 600;
    font-size: 0.85rem; cursor: pointer; transition: var(--transition);
}
.nav-cta:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}
.nav-mobile-btn { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
    min-height: 100vh; position: relative;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden; padding-top: 80px;
    background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(139,92,246,0.06) 0%, transparent 40%);
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: brightness(0.2) saturate(0.5);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 80%);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 8px 18px; border-radius: 100px; margin-bottom: 32px;
}
.hero-badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--success); animation: blink 2s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-badge-text { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.hero-title {
    font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700; line-height: 1.1; letter-spacing: -2px;
    margin-bottom: 24px;
}
.hero-title span {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 1.15rem; color: var(--text-muted); line-height: 1.7;
    max-width: 560px; margin: 0 auto 40px;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 14px 32px; border-radius: var(--radius-md);
    font-family: 'Space Grotesk', sans-serif; font-weight: 600;
    font-size: 0.95rem; cursor: pointer; border: none;
    transition: var(--transition);
}
.btn-primary {
    background: var(--accent); color: #fff;
}
.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 18px 40px; font-size: 1rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }

.hero-stats {
    position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 60px; z-index: 2;
}
.stat { text-align: center; }
.stat-value {
    font-family: 'Space Grotesk', sans-serif; font-size: 2rem;
    font-weight: 700; color: var(--text);
}
.stat-label {
    font-size: 0.8rem; color: var(--text-muted); margin-top: 4px;
    text-transform: uppercase; letter-spacing: 1px;
}

/* =====================================================
   PAGE HEADER
   ===================================================== */
.page-header {
    padding: 160px 60px 80px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.08) 0%, transparent 50%);
}
.page-header-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 12px;
}
.page-header-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section { padding: 100px 60px; }
.section-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 48px; flex-wrap: wrap; gap: 16px;
}
.section-label {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--accent); font-weight: 600; margin-bottom: 8px;
}
.section-title {
    font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700; letter-spacing: -1px;
}
.section-link {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.9rem; font-weight: 500;
    display: flex; align-items: center; gap: 6px;
    transition: var(--transition);
}
.section-link:hover { color: var(--accent); }

/* =====================================================
   GAME CARDS
   ===================================================== */
.games-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px;
}
.game-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
    transition: var(--transition);
}
.game-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}
.game-image { aspect-ratio: 16/10; overflow: hidden; }
.game-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}
.game-card:hover .game-image img { transform: scale(1.05); }
.game-body { padding: 24px; }
.game-meta {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
    flex-wrap: wrap;
}
.game-status {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px;
    font-weight: 600; padding: 4px 10px; border-radius: var(--radius-sm);
}
.game-status.coming { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.game-status.released { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.game-status.beta { background: rgba(99, 102, 241, 0.15); color: var(--accent); }
.game-genre { font-size: 0.8rem; color: var(--text-muted); }
.game-title {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem;
    font-weight: 600; margin-bottom: 8px; letter-spacing: -0.3px;
    color: var(--text);
}
.game-desc {
    font-size: 0.9rem; color: var(--text-muted); line-height: 1.5;
    margin-bottom: 16px;
}
.game-platforms { display: flex; gap: 8px; flex-wrap: wrap; }
.platform-tag {
    background: var(--bg-elevated); border: 1px solid var(--border);
    padding: 4px 10px; border-radius: var(--radius-sm);
    font-size: 0.75rem; color: var(--text-muted); font-weight: 500;
}

/* =====================================================
   GAME DETAIL
   ===================================================== */
.game-detail { padding: 100px 60px 60px; }
.game-detail-cover {
    width: 100%; max-height: 500px; object-fit: cover;
    border-radius: var(--radius-lg); margin-bottom: 40px;
    border: 1px solid var(--border);
}
.game-detail-grid {
    display: grid; grid-template-columns: 2fr 1fr; gap: 40px;
}
.game-detail-title {
    font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 700; margin-bottom: 16px;
}
.game-detail-desc {
    color: var(--text-secondary); line-height: 1.8; font-size: 1rem; margin-bottom: 24px;
}
.game-detail-meta {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
}
.game-detail-meta-row {
    display: flex; justify-content: space-between; padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.game-detail-meta-row:last-child { border-bottom: none; }
.game-detail-meta-label { color: var(--text-muted); }
.game-detail-meta-value { color: var(--text); font-weight: 500; }
.game-trailer {
    margin-top: 40px;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
.game-trailer iframe { width: 100%; height: 100%; border: 0; }

/* =====================================================
   NEWS CARDS
   ===================================================== */
.news-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.news-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
    transition: var(--transition);
}
.news-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.news-image { aspect-ratio: 16/9; overflow: hidden; }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .news-image img { transform: scale(1.05); }
.news-body { padding: 20px; }
.news-date { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.news-title {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem;
    font-weight: 600; margin-bottom: 8px; color: var(--text);
}
.news-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* =====================================================
   NEWS DETAIL
   ===================================================== */
.news-detail { padding: 100px 60px 60px; }
.news-detail-cover {
    width: 100%; max-height: 450px; object-fit: cover;
    border-radius: var(--radius-lg); margin-bottom: 40px;
    border: 1px solid var(--border);
}
.news-detail-header { margin-bottom: 32px; }
.news-detail-title {
    font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; margin-bottom: 12px;
}
.news-detail-date { color: var(--text-muted); font-size: 0.9rem; }
.news-detail-body {
    color: var(--text-secondary); line-height: 1.8; font-size: 1rem;
}
.news-detail-body p { margin-bottom: 16px; }
.news-detail-body img { border-radius: var(--radius-md); margin: 16px 0; }

/* =====================================================
   ABOUT / COMMUNITY
   ===================================================== */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-image { border-radius: var(--radius-lg); overflow: hidden; }
.about-image img { width: 100%; height: auto; }
.about-title { font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 700; margin-bottom: 20px; }
.about-text { color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.about-stats { display: flex; gap: 40px; }
.about-stat-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.about-stat-label { font-size: 0.8rem; color: var(--text-muted); }

.team-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; margin-top: 32px;
}
.team-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px; text-align: center;
    transition: var(--transition);
}
.team-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.team-avatar {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 16px; border: 2px solid var(--border);
}
.team-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; margin-bottom: 4px; }
.team-role { font-size: 0.85rem; color: var(--text-muted); }

/* =====================================================
   NEWSLETTER
   ===================================================== */
.newsletter {
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.05));
    border: 1px solid var(--border); border-radius: var(--radius-xl);
    padding: 60px; text-align: center;
}
.newsletter-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.newsletter-desc { color: var(--text-muted); margin-bottom: 32px; }
.newsletter-form {
    display: flex; gap: 12px; justify-content: center; max-width: 500px; margin: 0 auto;
}
.input {
    background: var(--bg-input); color: var(--text);
    border: 1px solid var(--border); padding: 14px 18px;
    border-radius: var(--radius-md); font-size: 0.95rem; font-family: inherit;
    outline: none; transition: var(--transition); flex: 1;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.input::placeholder { color: var(--text-muted); }
.select {
    background: var(--bg-input); color: var(--text);
    border: 1px solid var(--border); padding: 12px 16px;
    border-radius: var(--radius-md); font-size: 0.95rem; font-family: inherit;
    outline: none; transition: var(--transition); cursor: pointer;
}
.select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.textarea {
    width: 100%; background: var(--bg-input); color: var(--text);
    border: 1px solid var(--border); padding: 12px 16px;
    border-radius: var(--radius-md); font-size: 0.95rem; font-family: inherit;
    outline: none; transition: var(--transition); resize: vertical; min-height: 120px;
}
.textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    border-top: 1px solid var(--border); padding: 60px;
    background: var(--bg-elevated);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.footer-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 12px; }
.footer-social {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 1rem; transition: var(--transition);
}
.footer-social:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.footer-title {
    font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border); margin-top: 40px; padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: var(--text-muted);
}

/* =====================================================
   FORMS / AUTH
   ===================================================== */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 100px 20px;
    background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.08) 0%, transparent 50%);
}
.auth-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 48px; width: 100%; max-width: 440px;
}
.auth-title {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700;
    margin-bottom: 8px; text-align: center;
}
.auth-subtitle { color: var(--text-muted); text-align: center; margin-bottom: 32px; font-size: 0.9rem; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; color: var(--text-secondary); }
.form-input {
    width: 100%; background: var(--bg-input); color: var(--text);
    border: 1px solid var(--border); padding: 12px 16px;
    border-radius: var(--radius-md); font-size: 0.95rem; font-family: inherit;
    outline: none; transition: var(--transition);
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.form-input::placeholder { color: var(--text-muted); }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 4px; }
.form-hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--text-muted); }

/* =====================================================
   CONTACT
   ===================================================== */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.contact-info {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px;
}
.contact-info-item { margin-bottom: 24px; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.contact-info-value { font-size: 1rem; color: var(--text); }

/* =====================================================
   SUPPORT / FAQ
   ===================================================== */
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden;
}
.faq-question {
    width: 100%; background: none; border: none; color: var(--text);
    padding: 18px 24px; font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem; font-weight: 600; text-align: left; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-question::after { content: '+'; font-size: 1.2rem; color: var(--accent); }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
    padding: 0 24px 18px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6;
    display: none;
}
.faq-item.open .faq-answer { display: block; }

/* =====================================================
   SUPPORT / TICKETS
   ===================================================== */
.ticket-list { display: flex; flex-direction: column; gap: 16px; }
.ticket-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 20px;
    display: flex; justify-content: space-between; align-items: center;
    transition: var(--transition);
}
.ticket-card:hover { border-color: var(--border-light); }
.ticket-status {
    padding: 4px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 600;
}
.ticket-status.open { background: rgba(99,102,241,0.15); color: var(--accent); }
.ticket-status.closed { background: rgba(16,185,129,0.15); color: var(--success); }

/* =====================================================
   LEGAL PAGES
   ===================================================== */
.legal-page { padding: 100px 60px 60px; }
.legal-content {
    max-width: 800px; margin: 0 auto;
    color: var(--text-secondary); line-height: 1.8;
}
.legal-content h2 {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700;
    color: var(--text); margin: 32px 0 12px;
}
.legal-content p { margin-bottom: 16px; }
.legal-content ul { margin-left: 20px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 8px; }

/* =====================================================
   ADMIN PANEL
   ===================================================== */
.admin-body { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px; background: var(--bg-elevated); border-right: 1px solid var(--border);
    display: flex; flex-direction: column; position: fixed; height: 100vh; overflow-y: auto;
}
.admin-sidebar-header {
    padding: 24px; border-bottom: 1px solid var(--border);
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem;
    display: flex; align-items: center; gap: 10px;
}
.admin-sidebar-nav { list-style: none; padding: 16px 0; flex: 1; }
.admin-sidebar-nav li { padding: 10px 24px; cursor: pointer; font-size: 0.9rem; color: var(--text-muted); transition: var(--transition); display: flex; align-items: center; gap: 10px; }
.admin-sidebar-nav li:hover { color: var(--text); background: var(--bg-card); }
.admin-sidebar-nav li.active { color: var(--text); background: var(--bg-card); border-right: 3px solid var(--accent); }
.admin-main { flex: 1; margin-left: 260px; padding: 32px; }
.admin-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 32px;
}
.admin-header h1 { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; }
.admin-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px;
}
.admin-card-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--text-muted); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table tr:hover td { background: var(--bg-elevated); }
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.admin-stat {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 20px;
}
.admin-stat-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.admin-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-actions { display: flex; gap: 8px; margin-bottom: 16px; }
.admin-badge {
    display: inline-block; padding: 2px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 600;
}
.admin-badge.admin { background: rgba(239,68,68,0.15); color: var(--danger); }
.admin-badge.user { background: rgba(99,102,241,0.15); color: var(--accent); }
.admin-badge.published { background: rgba(16,185,129,0.15); color: var(--success); }
.admin-badge.draft { background: rgba(245,158,11,0.15); color: var(--warning); }
.admin-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.admin-modal {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto;
    padding: 32px;
}
.admin-modal-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }

/* =====================================================
   UTILITIES
   ===================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%; animation: skeleton 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
    .nav { padding: 0 20px; }
    .nav-links, .nav-actions .nav-cta { display: none; }
    .nav-mobile-btn { display: block; }
    .section { padding: 60px 20px; }
    .page-header { padding: 120px 20px 60px; }
    .hero-stats { gap: 30px; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .newsletter { padding: 40px 20px; }
    .newsletter-form { flex-direction: column; }
    .footer { padding: 40px 20px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .game-detail { padding: 100px 20px 40px; }
    .game-detail-grid { grid-template-columns: 1fr; }
    .news-detail { padding: 100px 20px 40px; }
    .contact-grid { grid-template-columns: 1fr; }
    .legal-page { padding: 100px 20px 40px; }
    .admin-sidebar { width: 100%; position: relative; height: auto; }
    .admin-main { margin-left: 0; }
    .admin-body { flex-direction: column; }
    .admin-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-stats { display: none; }
    .hero-btns { flex-direction: column; }
    .btn { width: 100%; }
    .admin-sidebar { display: none; }
    .admin-main { padding: 20px; }
}

/* Mobile menu functional fix */
.nav-mobile-menu:not(.hidden){display:block !important;}

/* Reduced motion (accessibility) */
@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important;}}
