/**
 * AINNA AI News — Hybrid Futuristic Lofi
 * Dark editorial hero + white lofi body
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --ai-bg-root: #FAFAF8;
    --ai-bg-surface: #FFFFFF;
    --ai-bg-glass: rgba(255, 255, 255, 0.78);
    --ai-bg-glass-strong: rgba(255, 255, 255, 0.9);
    --ai-bg-muted: #F4F3F0;
    --ai-lofi-lavender: #C4B5E8;
    --ai-lofi-sage: #A8C5B5;
    --ai-lofi-dusty-blue: #9BB5CE;
    --ai-accent: #7B9FD4;
    --ai-accent-deep: #5A7FAD;
    --ai-text-primary: #1A1A1E;
    --ai-text-secondary: #5C5C66;
    --ai-text-muted: #8E8E93;
    --ai-border: rgba(0, 0, 0, 0.06);
    --ai-border-medium: rgba(0, 0, 0, 0.1);
    --ai-shadow-glass: 0 8px 32px rgba(155, 181, 206, 0.14);
    --ai-shadow-glow: 0 0 36px rgba(196, 181, 232, 0.35);
    --ai-radius-sm: 10px;
    --ai-radius-md: 16px;
    --ai-radius-lg: 22px;
    --ai-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ai-font-mono: 'JetBrains Mono', monospace;
    --ai-gradient-progress: linear-gradient(90deg, var(--ai-lofi-lavender), var(--ai-lofi-dusty-blue));
    --ai-hero-dark: #141820;
    --ai-hero-dark-mid: #1A2030;
}

body.ai-lofi-night {
    --ai-bg-root: #12141A;
    --ai-bg-surface: #1A1D26;
    --ai-bg-glass: rgba(26, 28, 36, 0.82);
    --ai-bg-glass-strong: rgba(30, 33, 44, 0.92);
    --ai-bg-muted: #1E2128;
    --ai-lofi-lavender: #9B8EC4;
    --ai-lofi-sage: #7A9E8E;
    --ai-text-primary: #E8E8ED;
    --ai-text-secondary: #A8A8B3;
    --ai-text-muted: #6E6E7A;
    --ai-border: rgba(255, 255, 255, 0.08);
    --ai-border-medium: rgba(255, 255, 255, 0.12);
    --ai-hero-dark: #0C0E14;
}

body.ai-theme {
    font-family: var(--ai-font-sans);
    background: var(--ai-bg-root);
    color: var(--ai-text-primary);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.ai-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ai-border);
    transition: background 0.35s, box-shadow 0.3s;
}

.ai-nav.on-hero {
    background: rgba(20, 24, 32, 0.75);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.ai-nav.on-body {
    background: var(--ai-bg-glass-strong);
    box-shadow: var(--ai-shadow-glass);
}

.ai-nav .brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-nav.on-hero .brand { color: #F0F0F5; }

.ai-nav .brand-badge {
    font-family: var(--ai-font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(196, 181, 232, 0.25);
    color: var(--ai-lofi-lavender);
}

.ai-nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.ai-nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.ai-nav.on-hero .ai-nav-links a { color: rgba(240, 240, 245, 0.75); }
.ai-nav.on-hero .ai-nav-links a:hover,
.ai-nav.on-hero .ai-nav-links a.active { color: #fff; }

.ai-nav.on-body .ai-nav-links a { color: var(--ai-text-secondary); }
.ai-nav.on-body .ai-nav-links a:hover,
.ai-nav.on-body .ai-nav-links a.active { color: var(--ai-accent-deep); }

.ai-theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--ai-radius-sm);
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    color: inherit;
    transition: all 0.25s;
}

.ai-nav.on-body .ai-theme-toggle {
    background: var(--ai-bg-glass-strong);
    border-color: var(--ai-border-medium);
    color: var(--ai-text-primary);
}

.ai-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: inherit;
}

/* ===== DARK HERO (Hybrid) ===== */
.ai-hero-dark {
    position: relative;
    padding: 3.5rem 1.5rem 4.5rem;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(165deg, var(--ai-hero-dark) 0%, var(--ai-hero-dark-mid) 55%, #1E2438 100%);
    color: #F0F0F5;
}

.ai-hero-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(155, 142, 196, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 50% 45% at 80% 70%, rgba(122, 155, 184, 0.14) 0%, transparent 55%);
}

.ai-hero-mesh::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(155, 181, 206, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 181, 206, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 10%, transparent 75%);
    animation: aiGridDrift 22s linear infinite;
}

@keyframes aiGridDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, 6px); }
}

.ai-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}

.ai-live-strip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ai-font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240, 240, 245, 0.65);
    margin-bottom: 1.25rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    backdrop-filter: blur(8px);
}

.ai-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ai-lofi-sage);
    box-shadow: 0 0 10px var(--ai-lofi-sage);
    animation: aiLivePulse 2s ease infinite;
}

@keyframes aiLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

.ai-hero-dark h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 0.85rem;
}

.ai-hero-dark h1 .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: aiWordIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ai-hero-dark h1 .word:nth-child(1) { animation-delay: 0.08s; }
.ai-hero-dark h1 .word:nth-child(2) { animation-delay: 0.22s; color: var(--ai-lofi-lavender); }

@keyframes aiWordIn {
    to { opacity: 1; transform: translateY(0); }
}

.ai-hero-sub {
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    color: rgba(240, 240, 245, 0.72);
    max-width: 520px;
    margin: 0 auto 1.75rem;
    opacity: 0;
    animation: aiFadeUp 0.7s 0.35s ease forwards;
}

@keyframes aiFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* topic chips */
.ai-topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    opacity: 0;
    animation: aiFadeUp 0.7s 0.5s ease forwards;
}

.ai-topic-chip {
    font-family: var(--ai-font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(240, 240, 245, 0.8);
    cursor: pointer;
    transition: all 0.25s;
}

.ai-topic-chip:hover,
.ai-topic-chip.active {
    background: rgba(196, 181, 232, 0.25);
    border-color: var(--ai-lofi-lavender);
    color: #fff;
    box-shadow: 0 0 20px rgba(196, 181, 232, 0.3);
    transform: translateY(-2px);
}

/* ===== LOFI BODY ===== */
.ai-lofi-body {
    position: relative;
    z-index: 1;
}

.ai-grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 50% at 15% 20%, rgba(196, 181, 232, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 60% 45% at 85% 75%, rgba(155, 181, 206, 0.1) 0%, transparent 55%);
}

.ai-grid-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(155, 181, 206, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 181, 206, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 12%, transparent 78%);
}

.ai-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(55px);
    opacity: 0.45;
    animation: aiOrbFloat 20s ease-in-out infinite;
}

.ai-orb-1 { width: 280px; height: 280px; background: rgba(196, 181, 232, 0.3); top: 30%; left: -6%; }
.ai-orb-2 { width: 240px; height: 240px; background: rgba(168, 197, 181, 0.25); bottom: 15%; right: -5%; animation-delay: -8s; }

@keyframes aiOrbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(24px, -16px); }
}

.ai-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--ai-gradient-progress);
    z-index: 10001;
    box-shadow: 0 0 10px rgba(196, 181, 232, 0.5);
}

.ai-shell {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.ai-section-eyebrow {
    display: block;
    font-family: var(--ai-font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ai-accent-deep);
    margin-bottom: 0.4rem;
}

.ai-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-reveal.ai-visible {
    opacity: 1;
    transform: translateY(0);
}

/* stats */
.ai-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 2.5rem 0 1.5rem;
}

.ai-stat-card {
    background: var(--ai-bg-glass-strong);
    border: 1px solid var(--ai-border);
    border-radius: var(--ai-radius-md);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: block;
}

.ai-stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--ai-lofi-lavender);
    box-shadow: var(--ai-shadow-glass);
}

.ai-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ai-accent-deep);
    font-variant-numeric: tabular-nums;
}

.ai-stat-label {
    font-family: var(--ai-font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ai-text-muted);
    margin-top: 4px;
}

/* featured */
.ai-featured-section { margin: 2rem 0 3rem; }

.ai-section-title {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ai-text-primary);
    margin-bottom: 1.25rem;
}

.featured-article,
.ai-featured-article {
    background: var(--ai-bg-glass-strong) !important;
    border: 1px solid var(--ai-border) !important;
    border-radius: var(--ai-radius-lg) !important;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    backdrop-filter: blur(12px);
    box-shadow: var(--ai-shadow-glass);
    transition: border-color 0.35s, box-shadow 0.35s;
}

.featured-article:hover,
.ai-featured-article:hover {
    border-color: var(--ai-lofi-lavender) !important;
    box-shadow: var(--ai-shadow-glass), var(--ai-shadow-glow);
}

.featured-image-container {
    position: relative;
    overflow: hidden;
    background: var(--ai-bg-muted);
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
    transition: transform 0.5s ease;
}

.featured-article:hover .featured-image {
    transform: scale(1.05);
}

.featured-content { padding: 2rem !important; }

.featured-category,
.ai-cat-pill {
    display: inline-block;
    font-family: var(--ai-font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(196, 181, 232, 0.25) !important;
    color: var(--ai-accent-deep) !important;
    padding: 5px 12px;
    border-radius: 99px;
    margin-bottom: 0.75rem;
}

.featured-title {
    font-size: clamp(1.25rem, 2.5vw, 1.65rem) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.featured-title a:hover { color: var(--ai-accent-deep) !important; }

.featured-excerpt { color: var(--ai-text-secondary) !important; }

.featured-meta {
    font-family: var(--ai-font-mono);
    font-size: 0.72rem !important;
    color: var(--ai-text-muted) !important;
    gap: 1rem !important;
}

/* grid */
.ai-grid-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 1.15rem;
    background: var(--ai-bg-glass-strong);
    border: 1px solid var(--ai-border);
    border-radius: var(--ai-radius-md);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.ai-grid-controls label {
    font-family: var(--ai-font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ai-text-muted);
}

.ai-grid-controls select,
.ai-grid-controls input {
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--ai-border-medium);
    border-radius: var(--ai-radius-sm);
    background: var(--ai-bg-surface);
    color: var(--ai-text-primary);
    font-size: 0.9rem;
}

.ai-grid-controls select:focus,
.ai-grid-controls input:focus {
    outline: none;
    border-color: var(--ai-lofi-lavender);
    box-shadow: 0 0 0 3px rgba(196, 181, 232, 0.2);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 0 !important;
}

.article-card {
    background: var(--ai-bg-glass-strong) !important;
    border: 1px solid var(--ai-border) !important;
    border-radius: var(--ai-radius-md) !important;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(26, 26, 30, 0.03);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s !important;
    opacity: 0;
    transform: translateY(16px);
    animation: aiCardIn 0.45s ease forwards;
}

.article-card:nth-child(1) { animation-delay: 0.04s; }
.article-card:nth-child(2) { animation-delay: 0.08s; }
.article-card:nth-child(3) { animation-delay: 0.12s; }
.article-card:nth-child(4) { animation-delay: 0.16s; }
.article-card:nth-child(5) { animation-delay: 0.2s; }
.article-card:nth-child(6) { animation-delay: 0.24s; }

@keyframes aiCardIn {
    to { opacity: 1; transform: translateY(0); }
}

.article-card:hover {
    transform: translateY(-5px) !important;
    border-color: var(--ai-lofi-lavender) !important;
    box-shadow: var(--ai-shadow-glass) !important;
}

.article-category {
    font-family: var(--ai-font-mono) !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.08em;
    color: var(--ai-accent-deep) !important;
}

.article-title { color: var(--ai-text-primary) !important; }

.article-excerpt { color: var(--ai-text-secondary) !important; }

.article-meta {
    font-family: var(--ai-font-mono);
    font-size: 0.72rem !important;
    color: var(--ai-text-muted) !important;
}

.article-meta span:last-child {
    color: var(--ai-accent-deep);
    transition: transform 0.2s;
}

.article-card:hover .article-meta span:last-child {
    transform: translateX(4px);
}

/* skeleton */
.ai-skeleton-card {
    background: var(--ai-bg-muted);
    border-radius: var(--ai-radius-md);
    height: 320px;
    animation: aiShimmer 1.4s ease infinite;
    background: linear-gradient(90deg, var(--ai-bg-muted) 25%, rgba(196,181,232,0.12) 50%, var(--ai-bg-muted) 75%);
    background-size: 200% 100%;
}

@keyframes aiShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* pagination */
.grid-pagination button,
.table-pagination button {
    background: var(--ai-bg-glass-strong) !important;
    border: 1px solid var(--ai-border) !important;
    border-radius: var(--ai-radius-sm) !important;
    color: var(--ai-text-primary) !important;
    padding: 0.5rem 1rem !important;
    cursor: pointer;
    transition: all 0.2s;
}

.grid-pagination button:hover:not(:disabled) {
    background: var(--ai-accent-deep) !important;
    color: #fff !important;
    border-color: var(--ai-accent-deep) !important;
}

/* library CTA */
.ai-library-cta {
    margin: 3rem 0 1rem;
    padding: 2rem;
    text-align: center;
    background: var(--ai-bg-glass-strong);
    border: 1px solid var(--ai-border);
    border-radius: var(--ai-radius-lg);
    backdrop-filter: blur(10px);
}

.ai-library-cta p {
    color: var(--ai-text-secondary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.ai-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--ai-accent-deep);
    color: #fff;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 18px rgba(90, 127, 173, 0.35);
}

.ai-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(90, 127, 173, 0.45);
}

/* ===== ARTICLE READING PAGE ===== */
.ai-read-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--ai-gradient-progress);
    z-index: 10002;
}

.ai-article-hero {
    padding: 6rem 1.5rem 2.5rem;
    text-align: center;
    background: linear-gradient(165deg, var(--ai-hero-dark) 0%, var(--ai-hero-dark-mid) 100%);
    color: #F0F0F5;
    position: relative;
    overflow: hidden;
}

.ai-article-hero .ai-hero-mesh { position: absolute; inset: 0; }

.ai-article-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
}

.ai-article-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0.75rem 0 1rem;
}

.ai-article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    font-family: var(--ai-font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: rgba(240, 240, 245, 0.65);
    text-transform: uppercase;
}

.ai-article-image-wrap {
    max-width: 900px;
    margin: -1.5rem auto 2rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.ai-article-image-wrap img {
    width: 100%;
    border-radius: var(--ai-radius-lg);
    border: 1px solid var(--ai-border);
    box-shadow: var(--ai-shadow-glass);
    aspect-ratio: 16/9;
    object-fit: cover;
}

.ai-article-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ai-text-primary);
}

.ai-article-body p,
.ai-article-body .ai-para {
    margin-bottom: 1.25rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ai-article-body .ai-para.ai-visible {
    opacity: 1;
    transform: translateY(0);
}

.ai-article-body h2, .ai-article-body h3 {
    color: var(--ai-accent-deep);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.ai-back-bar {
    text-align: center;
    padding: 2rem 1.5rem 4rem;
}

/* library page list */
.ai-library-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-library-item {
    display: flex;
    gap: 1rem;
    padding: 1.15rem;
    background: var(--ai-bg-glass-strong);
    border: 1px solid var(--ai-border);
    border-radius: var(--ai-radius-md);
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(8px);
    transition: border-color 0.25s, transform 0.25s;
    animation: aiCardIn 0.4s ease forwards;
}

.ai-library-item:hover {
    border-color: var(--ai-lofi-lavender);
    transform: translateX(4px);
}

.ai-library-thumb {
    width: 88px;
    height: 66px;
    border-radius: var(--ai-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--ai-bg-muted);
}

.ai-library-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--ai-text-primary);
}

.ai-library-item:hover h3 { color: var(--ai-accent-deep); }

@media (max-width: 768px) {
    .ai-nav { padding: 0.75rem 1.15rem; }
    .ai-nav-links { display: none; }
    .ai-nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ai-bg-glass-strong);
        padding: 1rem;
        border-bottom: 1px solid var(--ai-border);
    }
    .ai-burger { display: block; }
    .featured-article, .ai-featured-article { grid-template-columns: 1fr !important; }
    .articles-grid { grid-template-columns: 1fr; }
    .ai-library-item { flex-direction: column; }
    .ai-library-thumb { width: 100%; height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .ai-reveal, .ai-article-body .ai-para { opacity: 1; transform: none; }
}