/* 
   Locus.IA - Modern Blog Design System 
   Focus: Premium Aesthetics, AI Showcase, and Scalability
*/

:root {
    --bg-body: #faf9f6;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --accent: #2563eb;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --card-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #0a0c10;
        --text-primary: #f8fafc;
        --text-secondary: #94a3b8;
        --glass-bg: rgba(15, 23, 42, 0.6);
        --glass-border: rgba(255, 255, 255, 0.05);
        --card-shadow: 0 4px 20px rgba(0,0,0,0.4);
    }
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    transition: background-color 0.4s ease;
}

/* AI Summary Component (TL;DR) */
.ai-summary-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--accent);
    border-radius: 24px;
    padding: 32px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.08);
    animation: reveal linear forwards;
    animation-timeline: view();
    animation-range: entry 5% cover 15%;
}

.ai-summary-card::before {
    content: "AI-GENERATED OVERVIEW";
    position: absolute;
    top: 0; right: 0;
    background: var(--accent);
    color: white;
    padding: 6px 16px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    border-bottom-left-radius: 16px;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Narrator Player */
.narrator-player {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    margin: 24px 0;
    width: fit-content;
    box-shadow: var(--card-shadow);
}

.play-btn {
    width: 44px; height: 44px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-btn:hover { transform: scale(1.15); }

/* Scroll-Driven Reveals */
@keyframes reveal {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.article-body p, .article-body h2, .article-body .alert-box {
    animation: reveal linear forwards;
    animation-timeline: view();
    animation-range: entry 5% cover 10%;
}

/* Typography Refinements */
h1, h2, h3 {
    letter-spacing: -0.02em;
}

.article-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-primary);
    opacity: 0.9;
}
