/* ═══════════════════════════════════════════════════════
   AI Consolidated News — Jarvis Playground
   v1.0.0 (2026-09-04)
   Cyan-forward editorial theme in the JP dark aesthetic.
   ═══════════════════════════════════════════════════════ */

:root {
    --bg-color: #050507;
    --bg-secondary: #0a0b10;
    --bg-card: #0e1016;
    --bg-card-hover: #141824;
    --primary-color: #00f2ff;
    --primary-dim: rgba(0, 242, 255, 0.12);
    --secondary-color: #7000ff;
    --accent-magenta: #ff006e;
    --text-color: #f4f7fb;
    --text-muted: rgba(244, 247, 251, 0.62);
    --text-dim: rgba(244, 247, 251, 0.42);
    --border-color: rgba(0, 242, 255, 0.16);
    --border-subtle: rgba(255, 255, 255, 0.07);
    --card-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    --card-hover-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 242, 255, 0.14);
    --nav-height: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg-color); scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.has-nav { padding-top: var(--nav-height); }

a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Hero (site landing) ── */
.hero {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #05060a 0%, #0a0d16 45%, var(--bg-color) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 28% 45%, rgba(0, 242, 255, 0.10) 0%, transparent 58%),
        radial-gradient(ellipse at 72% 28%, rgba(112, 0, 255, 0.10) 0%, transparent 52%),
        radial-gradient(ellipse at 50% 90%, rgba(255, 0, 110, 0.06) 0%, transparent 45%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('../assets/hero-banner.png') center/cover no-repeat;
    opacity: 0.22;
    transition: opacity 0.5s ease;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 64px 20px;
    max-width: 900px;
}

.hero-icon {
    font-size: 3.6rem;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 22px rgba(0, 242, 255, 0.5));
    animation: pulse 3.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(0, 242, 255, 0.45)); }
    50% { transform: scale(1.06); filter: drop-shadow(0 0 32px rgba(0, 242, 255, 0.65)); }
}

.hero h1 {
    font-size: clamp(2.2rem, 6.5vw, 4.2rem);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-weight: 800;
    background: linear-gradient(120deg, var(--primary-color) 0%, #a78bfa 55%, var(--primary-color) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine { to { background-position: 200% center; } }

.hero-subtitle {
    font-size: clamp(0.95rem, 2.4vw, 1.35rem);
    color: var(--text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 14px;
    font-weight: 400;
}

.hero-tagline {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-top: 20px;
    font-style: italic;
    letter-spacing: 0.5px;
}

/* ── Container ── */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 20px 72px;
    position: relative;
}

/* ── Feed header ── */
.feed-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.feed-header h2 {
    margin: 0;
    font-size: 1.7rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.feed-header h2::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 12px var(--primary-color);
    margin-right: 12px;
    vertical-align: middle;
}

.feed-meta { display: flex; align-items: center; gap: 10px; }
.article-count {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    background: rgba(255,255,255,0.02);
}

/* ── Articles grid ── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 26px;
}

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--border-color);
    text-decoration: none;
}

.article-card.featured { grid-column: 1 / -1; }
@media (min-width: 860px) {
    .article-card.featured { flex-direction: row; }
    .article-card.featured .article-image { width: 46%; flex: 0 0 46%; }
    .article-card.featured .article-body { width: 54%; }
    .article-card.featured .article-title { font-size: 1.9rem; }
}

.article-image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #0b0e16, #101420);
    overflow: hidden;
}
.article-card.featured .article-image { aspect-ratio: auto; min-height: 320px; }

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.article-card:hover .article-image img { transform: scale(1.05); }

.article-image.fallback::after {
    content: '📰';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.25;
}

.article-category {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(5, 5, 7, 0.72);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
}
.article-category.breaking { color: var(--accent-magenta); border-color: rgba(255, 0, 110, 0.4); }

.article-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.article-meta .read-time { color: var(--text-muted); }
.article-meta time { color: var(--text-muted); }

.article-title {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.article-excerpt {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card.featured .article-excerpt { -webkit-line-clamp: 4; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag {
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-subtle);
}

.article-link {
    margin-top: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    letter-spacing: 0.3px;
}
.article-link:hover { text-decoration: none; opacity: 0.85; }

/* ── About / mission strip ── */
.mission {
    margin-top: 40px;
    padding: 30px 32px;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.05), rgba(112, 0, 255, 0.05));
    display: flex;
    gap: 22px;
    align-items: flex-start;
}
.mission-icon { font-size: 2.2rem; line-height: 1; filter: drop-shadow(0 0 14px rgba(0,242,255,0.4)); }
.mission h3 { margin: 0 0 8px; font-size: 1.1rem; letter-spacing: 0.5px; }
.mission p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ── Coming soon ── */
.coming-soon {
    margin-top: 44px;
    text-align: center;
    padding: 40px 24px;
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    background: rgba(255,255,255,0.015);
}
.coming-soon-icon { font-size: 2.4rem; margin-bottom: 12px; }
.coming-soon h3 { margin: 0 0 10px; font-size: 1.3rem; letter-spacing: 1px; }
.coming-soon p { margin: 0 auto 20px; color: var(--text-muted); max-width: 620px; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.topic-tag {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
}

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 34px 20px;
    text-align: center;
    background: var(--bg-secondary);
}
.footer-content p { margin: 6px 0; color: var(--text-dim); font-size: 0.88rem; }
.footer-disclaimer { font-size: 0.8rem !important; max-width: 640px; margin: 10px auto 0 !important; }

/* ═══════════════════════════════════════════════════════
   ARTICLE PAGE
   ═══════════════════════════════════════════════════════ */
.article-hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: linear-gradient(180deg, #05060a 0%, #0a0d16 45%, var(--bg-color) 100%);
}
.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(0, 242, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(112, 0, 255, 0.08) 0%, transparent 52%);
    pointer-events: none;
}
.article-hero-bg {
    position: absolute;
    inset: 0;
    background: url('../assets/clancy-featured.png') center/cover no-repeat;
    opacity: 0.28;
}
.article-hero-gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 65%;
    background: linear-gradient(transparent, var(--bg-color));
}
.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    padding: 64px 24px 52px;
    width: 100%;
}
.article-hero-content .article-category { position: static; display: inline-block; margin-bottom: 16px; }
.article-hero-content h1 {
    font-size: clamp(1.9rem, 5vw, 3.1rem);
    line-height: 1.18;
    margin: 0 0 18px;
    font-weight: 800;
    letter-spacing: 0.3px;
}
.article-hero-content .article-meta { font-size: 0.82rem; }
.article-standfirst {
    font-size: 1.12rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 22px 0 0;
    font-weight: 300;
}

/* ── Prose ── */
.prose {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 24px 72px;
    font-size: 1.06rem;
    line-height: 1.8;
    color: #d7dce6;
}
.prose > p { margin: 0 0 1.25em; }
.prose h2 {
    font-size: 1.7rem;
    margin: 2.2em 0 0.7em;
    letter-spacing: 0.3px;
    color: var(--text-color);
    padding-top: 0.4em;
    border-top: 1px solid var(--border-subtle);
}
.prose h2:first-child { border-top: none; margin-top: 1em; }
.prose h3 {
    font-size: 1.25rem;
    margin: 1.8em 0 0.6em;
    color: var(--text-color);
}
.prose strong { color: var(--text-color); font-weight: 700; }
.prose em { color: #cdd4e0; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.prose li { margin: 0.45em 0; }
.prose li::marker { color: var(--primary-color); }
.prose a { color: var(--primary-color); }

.prose blockquote {
    margin: 1.8em 0;
    padding: 18px 24px;
    border-left: 3px solid var(--primary-color);
    background: linear-gradient(90deg, rgba(0, 242, 255, 0.06), transparent);
    border-radius: 0 12px 12px 0;
    font-size: 1.12rem;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
}
.prose blockquote p { margin: 0; }

.prose hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 2.4em 0;
}

.prose .note {
    margin: 1.8em 0;
    padding: 18px 22px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(0, 242, 255, 0.05);
    font-size: 0.95rem;
    color: var(--text-muted);
}
.prose .note strong { color: var(--primary-color); }

.prose .pullquote {
    margin: 2.2em 0;
    padding: 0 8px;
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    position: relative;
}
.prose .pullquote::before { content: '“'; color: var(--primary-color); font-size: 2.4rem; line-height: 0; vertical-align: -0.3em; margin-right: 4px; }

/* ── Article footer: back link + tags + related ── */
.article-footer {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 60px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 26px;
}
.article-footer .article-tags { margin-bottom: 30px; }
.sources {
    font-size: 0.85rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
    line-height: 1.6;
}
.sources strong { color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 640px) {
    .container { padding: 40px 16px 56px; }
    .prose { padding: 12px 18px 56px; font-size: 1.02rem; }
    .article-body { padding: 18px 18px 22px; }
    .mission { flex-direction: column; padding: 24px; }
}
