/* =====================================================================
   GEARCHOICE — MODERN MOBILE-FIRST PUBLISHING DESIGN SYSTEM
   Ultra-fast first paint, dark-accented modern typography, zero bloat
   ===================================================================== */

:root {
    --bg-page: #0a0f1d;
    --bg-surface: #111827;
    --bg-surface-elevated: #1f2937;
    --border-color: #1f293d;
    --border-subtle: #2d3748;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.25);
    --accent-hover: #2563eb;
    
    --tag-bg: rgba(59, 130, 246, 0.12);
    --tag-color: #60a5fa;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Charter", "Bitstream Charter", "Sitka Text", Cambria, serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    --max-w-content: 720px;
    --max-w-page: 1140px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navigation */
.site-header {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0.75rem 1rem;
}

.header-container {
    max-width: var(--max-w-page);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.brand-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0.2rem 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

/* Main Container */
.main-wrapper {
    flex: 1;
    max-width: var(--max-w-page);
    width: 100%;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
}

/* Hero & Featured Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--border-subtle);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.card-img-wrapper {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #1e293b;
    position: relative;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img {
    transform: scale(1.03);
}

.card-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-tag {
    align-self: flex-start;
    background: var(--tag-bg);
    color: var(--tag-color);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.6rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin-bottom: 0.5rem;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
    display: flex;
    gap: 0.8rem;
}

/* Article Reading View (Mobile First) */
.article-container {
    max-width: var(--max-w-content);
    margin: 0 auto;
}

.article-header {
    margin-bottom: 1.5rem;
}

.article-category {
    display: inline-block;
    background: var(--tag-bg);
    color: var(--tag-color);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.article-headline {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 0.85rem;
}

@media (min-width: 640px) {
    .article-headline {
        font-size: 2.25rem;
    }
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.article-featured-media {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #1e293b;
}

.article-featured-media img {
    width: 100%;
    height: auto;
    display: block;
}

/* Body typography */
.article-content {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.75;
    color: #e2e8f0;
}

.article-content p {
    margin-bottom: 1.4rem;
}

.article-content h2 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 2rem 0 0.85rem;
    line-height: 1.3;
}

.article-content h3 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 1.6rem 0 0.65rem;
}

.article-content ul, .article-content ol {
    margin: 0 0 1.4rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.2rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Ad Placement Containers with CLS Protection */
.ad-slot {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1.8rem auto;
    max-width: 100%;
    position: relative;
    clear: both;
}

.ad-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    user-select: none;
}

/* Social Share Block (Plain links, zero tracking scripts) */
.share-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1.5rem 0;
    padding: 0.85rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.share-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 0.3rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.15s ease;
}

.share-btn:hover {
    opacity: 0.85;
}

.share-fb { background: #1877f2; }
.share-wa { background: #25d366; }
.share-tg { background: #0088cc; }
.share-x  { background: #0f1419; border: 1px solid var(--border-subtle); }

/* Read Next & Trending */
.read-next-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Footer */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 1rem;
    margin-top: auto;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-container {
    max-width: var(--max-w-page);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

/* Consent Gate Banner */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-subtle);
    padding: 1rem 1.25rem;
    z-index: 9999;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.consent-inner {
    max-width: var(--max-w-page);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
}

@media (min-width: 640px) {
    .consent-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.consent-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.consent-actions {
    display: flex;
    gap: 0.6rem;
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--bg-surface-elevated); color: var(--text-primary); border: 1px solid var(--border-subtle); }
