/* === FOXNOVAPLAY — DESKTOP === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #050510;
    --bg-card: #0a0a1a;
    --text: #e8e8f0;
    --text-secondary: #8888a8;
    --accent: #ff3333;
    --accent-glow: rgba(255, 51, 51, 0.5);
    --radius: 4px;
    --transition: 0.2s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    background-image: radial-gradient(ellipse at 50% 0%, rgba(255, 51, 51, 0.06) 0%, transparent 60%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* === HEADER === */
.header {
    background: rgba(5, 5, 16, 0.95); backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 51, 51, 0.3);
    position: sticky; top: 0; z-index: 100;
}
.nav { display: flex; justify-content: space-between; align-items: center; height: 64px; padding: 0 24px 0 20px; }
.nav__logo {
    display: flex; align-items: center; gap: 8px; padding: 5px 20px;
    background: rgba(255, 255, 255, 0.25); border-radius: 50px;
    border: 1px solid rgba(255, 51, 51, 0.15);
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.5), inset 0 -1px 2px rgba(255,255,255,0.05), 0 0 10px rgba(255, 51, 51, 0.05);
    text-decoration: none; transition: all 0.3s ease;
}
.nav__logo:hover { border-color: rgba(255, 51, 51, 0.4); box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.6), inset 0 -1px 3px rgba(255,255,255,0.08), 0 0 20px rgba(255, 51, 51, 0.15); }
.nav__logo-img { height: 34px; width: auto; }
.nav__logo-text { font-size: 1.2rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; background: linear-gradient(135deg, var(--accent), #ff8888, var(--accent), #ff5555); background-size: 300% 300%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: logo-shift 3s ease infinite; }
@keyframes logo-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
    font-size: 1.4rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px;
    background: linear-gradient(135deg, var(--accent), #ff8888, var(--accent), #ff5555);
    background-size: 300% 300%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: logo-shift 3s ease infinite;
}
@keyframes logo-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.nav__list { display: flex; list-style: none; gap: 24px; }
.nav__link {
    color: var(--text-secondary); font-weight: 600; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px; transition: all var(--transition);
    padding: 8px 16px; border-radius: 6px;
    position: relative;
}
.nav__link::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
.nav__link:hover { color: #fff; background: rgba(255, 51, 51, 0.1); }
.nav__link:hover::after { width: 70%; }
.nav__link--login { background: var(--accent); color: #fff !important; border-radius: 6px; box-shadow: 0 0 15px var(--accent-glow); }
.nav__link--login:hover { background: #ff5555; box-shadow: 0 0 25px var(--accent-glow); transform: translateY(-1px); }
.nav__link--user { color: var(--accent) !important; font-weight: 700; }

/* === HERO === */
.hero { position: relative; height: 680px; overflow: hidden; }
.hero__bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url("/static/img/FoxNovaPlay.webp") center/cover no-repeat; z-index: 0; }
.hero__bg::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(5,5,16,0.4) 0%, transparent 50%, rgba(5,5,16,0.6) 100%); }
.hero__content { position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%); text-align: center; z-index: 2; }
.hero__tagline { font-size: 1.6rem; color: #fff; font-weight: 700; margin-bottom: 24px; text-shadow: 0 0 20px rgba(255,255,255,0.6), 0 0 40px rgba(255,255,255,0.4), 0 0 80px rgba(255,255,255,0.2); letter-spacing: 1px; }
.hero__actions { display: flex; gap: 16px; justify-content: center; }

/* === BUTTONS === */
.btn { display: inline-block; padding: 18px 40px; border-radius: var(--radius); font-weight: 700; font-size: 1.1rem; border: none; cursor: pointer; transition: all var(--transition); text-transform: uppercase; letter-spacing: 1px; position: relative; overflow: hidden; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 0 20px var(--accent-glow), 0 4px 0 #cc0000; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px var(--accent-glow), 0 6px 0 #cc0000; }
.btn--secondary { background: transparent; color: #fff; border: 2px solid rgba(255, 51, 51, 0.5); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.btn--secondary:hover { background: rgba(255, 51, 51, 0.1); border-color: var(--accent); }

/* === SECTIONS === */
.section { padding: 80px 0; }
.section__title { font-size: 2rem; font-weight: 900; text-align: center; margin-bottom: 40px; text-transform: uppercase; letter-spacing: 2px; color: #fff; text-shadow: 0 0 20px var(--accent-glow); }
.section__title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--accent); margin: 12px auto 0; }

/* === NEWS === */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.news-card { background: var(--bg-card); border-radius: var(--radius); padding: 20px; border: 1px solid rgba(255, 51, 51, 0.1); clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); transition: all var(--transition); }
.news-card:hover { border-color: rgba(255, 51, 51, 0.4); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(255, 51, 51, 0.15); }
.news-card h3 { font-size: 1rem; margin-bottom: 8px; }
.news-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; }

/* === FOOTER === */
.footer { border-top: 2px solid rgba(255, 51, 51, 0.15); padding: 20px 0; text-align: center; color: var(--text-secondary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

/* === PAGE HERO === */
.page-hero { padding: 60px 0 20px; text-align: center; }
.page-hero__title { font-size: 2.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; color: #fff; text-shadow: 0 0 20px var(--accent-glow); }
.page-hero__sub { color: var(--text-secondary); margin-top: 8px; }

/* === GAMES GRID === */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.game-card { background: var(--bg-card); border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 51, 51, 0.1); transition: all var(--transition); text-decoration: none; color: inherit; display: block; }
.game-card:hover { border-color: rgba(255, 51, 51, 0.4); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(255, 51, 51, 0.15); }
.game-card__cover { width: 100%; height: 180px; object-fit: cover; }
.game-card__body { padding: 18px; }
.game-card__body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.game-card__body p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; }
.game-card__price { color: var(--accent); font-weight: 700; font-size: 0.9rem; margin-top: 8px; display: block; }

/* === GAME DETAIL === */
.game-detail { max-width: 800px; }
.game-detail__cover { width: 100%; border-radius: 8px; margin-bottom: 24px; }
.game-detail__title { font-size: 2rem; font-weight: 900; margin-bottom: 12px; }
.game-detail__info { display: flex; gap: 20px; margin-bottom: 20px; }
.game-detail__price { color: var(--accent); font-weight: 700; font-size: 1.2rem; }
.game-detail__dev { color: var(--text-secondary); }
.game-detail__text { color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; }
.btn--play { padding: 16px 48px; font-size: 1.2rem; }

/* === AUTH === */
.auth-box { max-width: 400px; margin: 60px auto; background: var(--bg-card); padding: 40px; border-radius: 8px; border: 1px solid rgba(255, 51, 51, 0.15); text-align: center; }
.auth-box__title { font-size: 1.8rem; font-weight: 900; margin-bottom: 24px; text-transform: uppercase; }
.auth-form input { width: 100%; padding: 12px; margin-bottom: 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; color: #fff; font-size: 0.95rem; }
.auth-form input:focus { outline: none; border-color: var(--accent); }
.auth-form .btn { width: 100%; margin-top: 8px; }
.auth-box__link { margin-top: 16px; color: var(--text-secondary); font-size: 0.9rem; }
.auth-box__link a { color: var(--accent); }

/* === BACK LINK === */
.back-link { color: var(--text-secondary); text-decoration: none; display: inline-block; margin-bottom: 16px; }
.back-link:hover { color: var(--accent); }

/* === EMPTY STATE === */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
