/* ============================================
   Blacktop Police Chase - Shared Stylesheet
   Used by all subpages (legal, blog, games, etc)
   index.html keeps its own inline styles
   ============================================ */

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

:root {
    --bg: #0a0a0d;
    --bg-2: #13131a;
    --bg-3: #1c1c26;
    --accent: #ff6b1a;
    --accent-2: #ff8c42;
    --danger: #e63946;
    --text: #f2f2f5;
    --text-dim: #b8b8c2;
    --border: #25252f;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); }
a:hover { color: var(--accent-2); }

/* ===== HEADER ===== */
.site-header {
    background: rgba(10,10,13,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Russo One', sans-serif;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--danger));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(255,107,26,0.4);
}

.logo span.accent { color: var(--accent); }

.nav {
    display: flex;
    gap: 26px;
    align-items: center;
}

.nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--text); }

.header-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 9px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.header-cta:hover { background: var(--accent-2); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, rgba(255,107,26,0.08) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.page-header h1 {
    font-family: 'Russo One', sans-serif;
    font-size: 2.4rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.page-header h1 .accent { color: var(--accent); }

.page-header p {
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.breadcrumbs a {
    color: var(--text-dim);
    text-decoration: none;
}

.breadcrumbs a:hover { color: var(--accent); }

.breadcrumbs .sep { margin: 0 6px; opacity: 0.5; }

/* ===== CONTENT BODY ===== */
.content {
    padding: 50px 0 70px;
}

.content-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.content h2 {
    font-family: 'Russo One', sans-serif;
    font-size: 1.6rem;
    margin: 36px 0 14px;
    color: var(--text);
    letter-spacing: 0.3px;
}

.content h2:first-child { margin-top: 0; }

.content h3 {
    font-family: 'Russo One', sans-serif;
    font-size: 1.15rem;
    margin: 26px 0 10px;
    color: var(--text);
}

.content p {
    color: #d8d8e0;
    margin-bottom: 14px;
    font-size: 0.97rem;
}

.content ul, .content ol {
    color: #d8d8e0;
    margin: 0 0 16px 22px;
}

.content li {
    margin-bottom: 6px;
    font-size: 0.96rem;
}

.content strong { color: var(--text); }

.content .notice {
    background: var(--bg-2);
    border-left: 3px solid var(--accent);
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 6px;
    font-size: 0.93rem;
    color: var(--text-dim);
}

.content .updated {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

/* ===== FORM ===== */
.form-grid {
    display: grid;
    gap: 16px;
    max-width: 640px;
    margin: 20px auto;
}

.form-row label {
    display: block;
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-row textarea {
    min-height: 140px;
    resize: vertical;
}

.btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, transform 0.2s;
    font-family: inherit;
}

.btn:hover {
    background: var(--accent-2);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: var(--bg-3);
    color: var(--text);
}

/* ===== INFO GRID (contact/about) ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin: 30px 0;
}

.info-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
}

.info-card .ico {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.info-card h3 {
    font-family: 'Russo One', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text);
}

.info-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin: 0;
}

.info-card a {
    color: var(--accent);
    text-decoration: none;
}

/* ===== GAME GRID (for /games/ pages) ===== */
.game-wrapper-outer {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.game-frame {
    position: relative;
    width: 100%;
    height: min(78vh, 760px);
    min-height: 500px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #000;
}

@media (max-width: 640px) {
    .game-frame {
        height: 70vh;
        min-height: 420px;
    }
}

.game-meta {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    gap: 16px;
    flex-wrap: wrap;
}

.game-title-group h1 {
    font-family: 'Russo One', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 2px;
    color: var(--text);
}

.game-stats {
    display: flex;
    gap: 14px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.game-stats .star { color: #ffb400; }

.fullscreen-btn {
    background: var(--bg-3);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.fullscreen-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.game-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: all 0.25s;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(255,107,26,0.15);
    color: var(--text);
}

.game-card-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    background: var(--bg-3);
}

.game-card-body { padding: 10px 12px; }

.game-card-body h4 {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-body .tag {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 2px;
}

/* ===== BLOG ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
    margin: 20px 0;
}

.blog-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    color: var(--text);
}

.blog-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-body .blog-date {
    font-size: 0.78rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.blog-card-body h3 {
    font-family: 'Russo One', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.blog-card-body p {
    color: var(--text-dim);
    font-size: 0.9rem;
    flex: 1;
}

.blog-article .article-meta {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.blog-article img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* ===== 404 ===== */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.error-content .big {
    font-family: 'Russo One', sans-serif;
    font-size: 7rem;
    background: linear-gradient(135deg, var(--accent), var(--danger));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 10px;
}

.error-content h2 {
    font-family: 'Russo One', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.error-content p {
    color: var(--text-dim);
    margin-bottom: 24px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--accent) 0%, var(--danger) 100%);
    padding: 40px 30px;
    border-radius: 14px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 10px 40px rgba(255,107,26,0.25);
}

.cta-banner h2 {
    font-family: 'Russo One', sans-serif;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 8px;
}

.cta-banner p {
    color: rgba(255,255,255,0.92);
    margin-bottom: 18px;
}

.cta-banner .btn {
    background: #fff;
    color: var(--accent);
}

.cta-banner .btn:hover {
    background: #fff;
    color: var(--accent);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 50px 0 24px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand .logo { margin-bottom: 12px; }

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-col h4 {
    font-family: 'Russo One', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 14px;
    color: var(--text);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li { margin-bottom: 8px; }

.footer-col a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nav { display: none; }
    .menu-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .page-header h1 { font-size: 1.9rem; }
    .content h2 { font-size: 1.35rem; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .page-header { padding: 40px 0 30px; }
    .page-header h1 { font-size: 1.6rem; }
    .content { padding: 30px 0 50px; }
    .error-content .big { font-size: 5rem; }
    .game-meta { flex-direction: column; align-items: flex-start; }
}
