/* ============================================
   ANYRA AI NEWS - Custom Styles
   ============================================ */

/* Background - Fixed to cover full page, no grid lines */
.landing-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.landing-grid {
    display: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    padding: 0 var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.logo-brand {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.logo-divider {
    width: 1px;
    height: 20px;
    background: var(--border-default);
}

.logo-product {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-muted);
}

.header-nav {
    display: flex;
    gap: var(--space-4);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--text-primary);
}

/* Main Content */
.main-content {
    min-height: 100vh;
    padding: calc(72px + var(--space-10)) var(--space-6) var(--space-16);
    position: relative;
    z-index: 1;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    margin-bottom: var(--space-8);
}

.page-title {
    font-family: 'Inter', var(--font-display);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.page-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}

.filter-chip {
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.filter-chip:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-chip.active {
    color: var(--text-primary);
    background: rgba(20, 184, 166, 0.15);
    border-color: var(--teal-400);
}

/* Featured Article - Shiny Animated Border */
.featured-article {
    margin-bottom: var(--space-8);
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-8);
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
        conic-gradient(from var(--card-gradient-angle),
            transparent 0%,
            var(--teal-500) 5%,
            var(--teal-400) 15%,
            var(--purple-400) 25%,
            var(--teal-500) 35%,
            transparent 45%) border-box;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid transparent;
    border-radius: var(--radius-2xl);
    text-decoration: none;
    transition: all var(--duration-normal);
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(20, 184, 166, 0.2);
    animation: card-border-spin 3s linear infinite;
}

.featured-card::before {
    content: '';
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(20, 184, 166, 0.15), transparent 60%);
    z-index: 0;
}

/* Dot pattern overlay - matches landing panel style */
.featured-card::after {
    content: '';
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    background: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.15) 1px, transparent 0) padding-box;
    background-size: 16px 16px;
    background-repeat: space;
    mask-image: conic-gradient(from calc(var(--card-gradient-angle) + 45deg),
            black,
            transparent 10% 90%,
            black);
    border-radius: inherit;
    opacity: 0.8;
}

.featured-card:hover {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 50px rgba(20, 184, 166, 0.3);
    transform: translateY(-2px);
}

.featured-content {
    position: relative;
    z-index: 1;
}

.featured-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal-400);
    margin-bottom: var(--space-2);
}

.featured-title {
    font-family: 'Montserrat', var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: var(--space-3);
}

.featured-excerpt {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
}

/* Article Card - Matches Hub module-card styling */
.article-card {
    --card-color: var(--teal-500);
    --card-glow: rgba(20, 184, 166, 0.4);

    display: flex;
    flex-direction: column;
    padding: var(--space-6);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out);
}

.article-card:hover {
    border-color: var(--card-color);
    box-shadow: 0 0 30px var(--card-glow);
    transform: translateY(-4px);
}

.article-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex-grow: 1;
}

/* Category-specific card colors on hover */
.article-card[data-category="google"] {
    --card-color: var(--blue-500);
    --card-glow: rgba(59, 130, 246, 0.4);
}

.article-card[data-category="openai"] {
    --card-color: var(--green-500);
    --card-glow: rgba(34, 197, 94, 0.4);
}

.article-card[data-category="anthropic"] {
    --card-color: var(--orange-500);
    --card-glow: rgba(251, 146, 60, 0.4);
}

.article-card[data-category="policy"] {
    --card-color: var(--purple-400);
    --card-glow: rgba(192, 132, 252, 0.4);
}

.article-card[data-category="classroom"] {
    --card-color: var(--teal-500);
    --card-glow: rgba(20, 184, 166, 0.4);
}

/* Category Badges */
.category-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
    width: fit-content;
}

.category-badge--google {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-400);
}

.category-badge--openai {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green-400);
}

.category-badge--anthropic {
    background: rgba(251, 146, 60, 0.15);
    color: var(--orange-400);
}

.category-badge--policy {
    background: rgba(192, 132, 252, 0.15);
    color: var(--purple-400);
}

.category-badge--classroom {
    background: rgba(45, 212, 191, 0.15);
    color: var(--teal-400);
}

.article-title {
    font-family: 'Montserrat', var(--font-display);
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: var(--space-2);
}

.article-excerpt {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-4);
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.article-date {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-6);
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: var(--space-12) var(--space-6);
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-8);
}

.footer-brand .logo-brand {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
    display: block;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.footer-links {
    display: flex;
    gap: var(--space-6);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--duration-fast);
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ============================================
   ARTICLE PAGE STYLES
   ============================================ */

.article-page {
    max-width: 800px;
    margin: 0 auto;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
    transition: color var(--duration-fast);
}

.article-back:hover {
    color: var(--text-primary);
}

.article-header {
    margin-bottom: var(--space-8);
}

.article-page .article-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-4);
}

.article-page .article-meta {
    margin-bottom: var(--space-6);
}

.article-content {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content h2 {
    font-family: 'Montserrat', var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--text-primary);
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
}

.article-content h3 {
    font-family: 'Montserrat', var(--font-display);
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--text-primary);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
}

.article-content p {
    margin-bottom: var(--space-4);
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.article-content li {
    margin-bottom: var(--space-2);
}

.article-content a {
    color: var(--teal-400);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: var(--teal-300);
}

.article-content blockquote {
    border-left: 3px solid var(--teal-400);
    padding-left: var(--space-4);
    margin: var(--space-6) 0;
    color: var(--text-muted);
    font-style: italic;
}

.article-content code {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

.article-content pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    overflow-x: auto;
    margin: var(--space-6) 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

/* Related Articles */
.related-articles {
    margin-top: var(--space-16);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-subtle);
}

.related-title {
    font-family: 'Montserrat', var(--font-display);
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

/* ============================================
   ADMIN PAGE STYLES
   ============================================ */

.admin-container {
    max-width: 1000px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
}

.admin-title {
    font-family: 'Montserrat', var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--text-primary);
}

/* Login Form */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: var(--space-8);
    background: rgba(10, 15, 20, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
}

.login-title {
    font-family: 'Montserrat', var(--font-display);
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-6);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--text-base);
    transition: all var(--duration-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    min-height: 200px;
    resize: vertical;
    font-family: var(--font-mono);
}

select.form-input {
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--duration-normal);
    min-height: 44px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--teal-500), var(--blue-500));
    color: #000;
    box-shadow: 0 4px 24px rgba(20, 184, 166, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(20, 184, 166, 0.4);
}

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

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-accent);
}

.btn--danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn--danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn--small {
    padding: var(--space-2) var(--space-3);
    min-height: 36px;
    font-size: var(--text-xs);
}

/* Article List Table */
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-6);
}

.article-table th,
.article-table td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.article-table th {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-table td {
    color: var(--text-secondary);
}

.article-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    display: inline-flex;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge--published {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green-400);
}

.status-badge--draft {
    background: rgba(251, 191, 36, 0.15);
    color: var(--amber-400);
}

.table-actions {
    display: flex;
    gap: var(--space-2);
}

/* Editor Modal/Section */
.editor-section {
    background: rgba(10, 15, 20, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    margin-top: var(--space-6);
}

.editor-title {
    font-family: 'Montserrat', var(--font-display);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.editor-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-subtle);
}

/* ============================================
   HEADER SEARCH BAR
   ============================================ */

.header-search {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    transition: all var(--duration-fast);
    flex: 0 1 300px;
    margin-left: auto;
    margin-right: var(--space-4);
}

.header-search:focus-within {
    border-color: var(--teal-500);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.header-search input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: var(--text-sm);
    outline: none;
}

.header-search input::placeholder {
    color: var(--text-muted);
}

/* Subscribe Button in Header - SHINY ANIMATED BORDER */
.btn-subscribe {
    --btn-gradient-angle: 0deg;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
        conic-gradient(from var(--btn-gradient-angle),
            transparent 0%,
            var(--teal-500) 10%,
            var(--teal-400) 20%,
            var(--purple-400) 30%,
            var(--teal-500) 40%,
            transparent 50%) border-box;
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-fast);
    animation: btn-border-spin 3s linear infinite;
    position: relative;
}

@keyframes btn-border-spin {
    from {
        --btn-gradient-angle: 0deg;
    }

    to {
        --btn-gradient-angle: 360deg;
    }
}

@property --btn-gradient-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.btn-subscribe:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.4);
}

/* Light mode subscribe button - VIVID animated border */
body.light-mode .btn-subscribe {
    background: linear-gradient(#ffffff, #ffffff) padding-box,
        conic-gradient(from var(--btn-gradient-angle),
            #0d9488 0%,
            #14b8a6 12%,
            #2dd4bf 25%,
            #8b5cf6 40%,
            #14b8a6 55%,
            transparent 65%,
            transparent 100%) border-box;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.light-mode .btn-subscribe:hover {
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.3);
}

/* ============================================
   AUDIENCE TABS
   ============================================ */

.audience-tabs {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
    padding: var(--space-1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    width: fit-content;
}

.audience-tab {
    padding: var(--space-2) var(--space-4);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.audience-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.audience-tab.active {
    color: var(--text-primary);
    background: rgba(20, 184, 166, 0.15);
}

/* ============================================
   SUBSCRIBE MODAL - SHINY STYLING
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--space-6);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.subscribe-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: var(--space-8);
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
        conic-gradient(from var(--card-gradient-angle),
            transparent 0%,
            var(--teal-500) 5%,
            var(--teal-400) 15%,
            var(--purple-400) 25%,
            var(--teal-500) 35%,
            transparent 45%) border-box;
    border: 2px solid transparent;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 60px rgba(20, 184, 166, 0.3);
    animation: card-border-spin 3s linear infinite, modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dot pattern for modal */
.subscribe-modal::before {
    content: '';
    pointer-events: none;
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.12) 1px, transparent 0),
        radial-gradient(circle at 50% 120%, rgba(20, 184, 166, 0.2), transparent 60%);
    background-size: 16px 16px, 100% 100%;
    z-index: 0;
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    padding: var(--space-2);
    cursor: pointer;
    transition: all var(--duration-fast);
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.subscribe-modal-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.subscribe-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: var(--radius-xl);
    color: var(--teal-400);
}

.subscribe-title {
    font-family: 'Montserrat', var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.subscribe-desc {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.subscribe-form {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.subscribe-form input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--text-base);
    outline: none;
    transition: all var(--duration-fast);
}

.subscribe-form input:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.subscribe-form input::placeholder {
    color: var(--text-muted);
}

.btn-subscribe-submit {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: linear-gradient(135deg, var(--teal-500), var(--blue-500));
    color: #000;
    font-size: var(--text-sm);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-fast);
    white-space: nowrap;
}

.btn-subscribe-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.4);
}

.subscribe-note {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ============================================
   SOCIAL SHARE BUTTONS
   ============================================ */

.share-buttons {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.share-btn--twitter:hover {
    background: rgba(29, 161, 242, 0.15);
    border-color: rgba(29, 161, 242, 0.3);
    color: #1da1f2;
}

.share-btn--linkedin:hover {
    background: rgba(0, 119, 181, 0.15);
    border-color: rgba(0, 119, 181, 0.3);
    color: #0077b5;
}

.share-btn--copy:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.3);
    color: var(--teal-400);
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */

.reading-progress {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 999;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--teal-500), var(--purple-400));
    width: 0%;
    transition: width 0.1s ease;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .header {
        padding: 0 var(--space-4);
    }

    .header-search {
        display: none;
    }

    .main-content {
        padding: calc(72px + var(--space-6)) var(--space-4) var(--space-12);
    }

    .audience-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .featured-card {
        padding: var(--space-6);
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-6);
    }

    .admin-header {
        flex-direction: column;
        gap: var(--space-4);
        align-items: flex-start;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-modal {
        padding: var(--space-6);
    }
}

/* ============================================
   THEME TOGGLE
   ============================================ */

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    width: 18px;
    height: 18px;
}

/* Hide sun in dark mode, show moon */
.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

/* In light mode, show sun, hide moon */
body.light-mode .theme-toggle .icon-sun {
    display: block;
}

body.light-mode .theme-toggle .icon-moon {
    display: none;
}

/* ============================================
   LIGHT MODE OVERRIDES FOR NEWS COMPONENTS
   ============================================ */

/* Header */
body.light-mode .header {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Theme toggle in light mode */
body.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #64748b;
}

body.light-mode .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

/* Search bar */
body.light-mode .header-search {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.light-mode .header-search:focus-within {
    background: #ffffff;
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

body.light-mode .header-search input {
    color: #0f172a;
}

body.light-mode .header-search input::placeholder {
    color: #94a3b8;
}

body.light-mode .header-search svg {
    color: #64748b;
}

/* Filter chips - clean solid style */
body.light-mode .filter-chip {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #475569;
}

body.light-mode .filter-chip:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
    color: #0f172a;
}

body.light-mode .filter-chip.active {
    background: rgba(20, 184, 166, 0.1);
    border-color: var(--teal-500);
    color: var(--teal-700);
    font-weight: 600;
}

/* Audience tabs */
body.light-mode .audience-tabs {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .audience-tab {
    color: #64748b;
}

body.light-mode .audience-tab:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .audience-tab.active {
    color: var(--teal-700);
    background: rgba(20, 184, 166, 0.12);
}

/* Light mode page background - clean solid */
body.light-mode {
    background: #f1f5f9 !important;
}

/* Featured card - SHINY ANIMATED BORDER for light mode */
body.light-mode .featured-card {
    background: linear-gradient(#ffffff, #ffffff) padding-box,
        conic-gradient(from var(--card-gradient-angle),
            #0d9488 0%,
            #14b8a6 10%,
            #2dd4bf 20%,
            #8b5cf6 35%,
            #3b82f6 50%,
            #14b8a6 65%,
            transparent 75%,
            transparent 100%) border-box;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .featured-card::before {
    background: none;
}

body.light-mode .featured-card::after {
    display: none;
}

body.light-mode .featured-card:hover {
    box-shadow:
        0 0 30px rgba(20, 184, 166, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

body.light-mode .featured-title {
    color: #0f172a;
}

body.light-mode .featured-excerpt {
    color: #475569;
}

body.light-mode .featured-meta {
    color: #64748b;
}

/* Article cards - SOLID WHITE, clean style */
body.light-mode .article-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

body.light-mode .article-card:hover {
    border-color: var(--card-color);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 0 20px var(--card-glow);
    transform: translateY(-2px);
}

/* Category-specific colors for left border and glow */
body.light-mode .article-card[data-category="google"] {
    --card-color: var(--blue-500);
    --card-glow: rgba(59, 130, 246, 0.15);
}

body.light-mode .article-card[data-category="openai"] {
    --card-color: var(--green-500);
    --card-glow: rgba(34, 197, 94, 0.15);
}

body.light-mode .article-card[data-category="anthropic"] {
    --card-color: var(--orange-500);
    --card-glow: rgba(251, 146, 60, 0.15);
}

body.light-mode .article-card[data-category="policy"] {
    --card-color: var(--purple-500);
    --card-glow: rgba(168, 85, 247, 0.15);
}

body.light-mode .article-card[data-category="classroom"] {
    --card-color: var(--teal-500);
    --card-glow: rgba(20, 184, 166, 0.15);
}

body.light-mode .article-title {
    color: #0f172a;
}

body.light-mode .article-excerpt {
    color: #475569;
}

body.light-mode .article-meta {
    color: #64748b;
}

/* Category badges - clean solid backgrounds */
body.light-mode .category-badge--google {
    background: rgba(59, 130, 246, 0.12);
    color: var(--blue-600);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

body.light-mode .category-badge--openai {
    background: rgba(34, 197, 94, 0.12);
    color: var(--green-600);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

body.light-mode .category-badge--anthropic {
    background: rgba(251, 146, 60, 0.12);
    color: var(--orange-600);
    border: 1px solid rgba(251, 146, 60, 0.3);
}

body.light-mode .category-badge--policy {
    background: rgba(168, 85, 247, 0.12);
    color: var(--purple-600);
    border: 1px solid rgba(168, 85, 247, 0.25);
}

body.light-mode .category-badge--classroom {
    background: rgba(20, 184, 166, 0.12);
    color: var(--teal-600);
    border: 1px solid rgba(20, 184, 166, 0.25);
}

/* Share buttons */
body.light-mode .share-buttons {
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .share-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: #64748b;
}

body.light-mode .share-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

/* Subscribe modal */
body.light-mode .modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}

body.light-mode .subscribe-modal {
    background: linear-gradient(#ffffff, #ffffff) padding-box,
        conic-gradient(from var(--card-gradient-angle),
            transparent 0%,
            var(--teal-500) 5%,
            var(--teal-400) 15%,
            var(--purple-400) 25%,
            var(--teal-500) 35%,
            transparent 45%) border-box;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.05),
        0 0 60px rgba(20, 184, 166, 0.15),
        0 25px 50px rgba(0, 0, 0, 0.15);
}

body.light-mode .subscribe-modal::before {
    background:
        radial-gradient(circle at 2px 2px, rgba(0, 0, 0, 0.06) 1px, transparent 0),
        radial-gradient(circle at 50% 120%, rgba(20, 184, 166, 0.1), transparent 60%);
}

body.light-mode .modal-close {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #64748b;
}

body.light-mode .modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

body.light-mode .subscribe-title {
    color: #0f172a;
}

body.light-mode .subscribe-desc {
    color: #475569;
}

body.light-mode .subscribe-form input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

body.light-mode .subscribe-form input:focus {
    background: #ffffff;
}

body.light-mode .subscribe-form input::placeholder {
    color: #94a3b8;
}

body.light-mode .subscribe-note {
    color: #64748b;
}

body.light-mode .subscribe-icon {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(139, 92, 246, 0.12));
    border-color: rgba(20, 184, 166, 0.2);
}

/* Reading progress bar */
body.light-mode .reading-progress {
    background: rgba(0, 0, 0, 0.08);
}

/* Footer */
body.light-mode .footer {
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .footer-tagline {
    color: #64748b;
}

body.light-mode .footer-links a {
    color: #64748b;
}

body.light-mode .footer-links a:hover {
    color: #0f172a;
}

body.light-mode .footer-bottom {
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .footer-bottom p {
    color: #64748b;
}

/* Article page */
body.light-mode .article-back {
    color: #64748b;
}

body.light-mode .article-back:hover {
    color: #0f172a;
}

body.light-mode .article-content {
    color: #334155;
}

body.light-mode .article-content h2,
body.light-mode .article-content h3 {
    color: #0f172a;
}

body.light-mode .article-content a {
    color: var(--teal-600);
}

body.light-mode .article-content a:hover {
    color: var(--teal-700);
}

body.light-mode .article-content blockquote {
    color: #64748b;
    border-color: var(--teal-500);
}

body.light-mode .article-content code {
    background: rgba(0, 0, 0, 0.05);
    color: #475569;
}

body.light-mode .article-content pre {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .related-articles {
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .related-title {
    color: #0f172a;
}

/* Admin page */
body.light-mode .login-container {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .login-title {
    color: #0f172a;
}

body.light-mode .form-label {
    color: #334155;
}

body.light-mode .form-input {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

body.light-mode .form-input:focus {
    background: #ffffff;
}

body.light-mode .form-input::placeholder {
    color: #94a3b8;
}

body.light-mode .btn--secondary {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.1);
    color: #334155;
}

body.light-mode .btn--secondary:hover {
    background: #f1f5f9;
}

body.light-mode .article-table th {
    color: #64748b;
}

body.light-mode .article-table td {
    color: #334155;
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .article-table tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .editor-section {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .editor-title {
    color: #0f172a;
}

body.light-mode .editor-actions {
    border-color: rgba(0, 0, 0, 0.08);
}

/* Hide animated background in light mode */
body.light-mode .landing-bg {
    opacity: 0.3;
}

body.light-mode .landing-orb {
    opacity: 0.15;
}

body.light-mode .bg-ambient {
    opacity: 0.1;
}

/* ============================================
   INTERACTIVE ARTICLE VIEWER
   ============================================ */

.article-viewer {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: var(--space-4);
    min-height: calc(100vh - 150px);
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-6) 0 0;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: calc(72px + var(--space-6));
    height: fit-content;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    padding-left: 0;
    border-right: 1px solid var(--border-subtle);
    padding-right: var(--space-2);
}

.sidebar-header {
    margin-bottom: var(--space-6);
}

.sidebar-back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast);
}

.sidebar-back:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast);
    position: relative;
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
    color: var(--text-primary);
    background: rgba(20, 184, 166, 0.1);
}

.sidebar-link-indicator {
    width: 3px;
    height: 16px;
    background: transparent;
    border-radius: 2px;
    transition: all var(--duration-fast);
}

.sidebar-link.active .sidebar-link-indicator {
    background: var(--teal-400);
}

.sidebar-link-text {
    flex: 1;
}

.sidebar-progress {
    width: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    position: fixed;
    left: 0;
    top: 72px;
    bottom: 0;
    overflow: hidden;
    z-index: 100;
}

.sidebar-progress-bar {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--teal-500), var(--purple-400), var(--blue-500));
    border-radius: 2px;
    transition: height 0.15s ease-out;
    box-shadow: 0 0 12px var(--teal-glow);
}

/* Main Content Area */
.article-main {
    max-width: 960px;
    padding-left: var(--space-6);
}

.article-viewer-header {
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--border-subtle);
}

.article-viewer-header .category-badge {
    margin-bottom: var(--space-4);
}

.article-viewer-header .text-display {
    font-family: 'Montserrat', var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: var(--space-3);
}

.article-viewer-header .text-body-lg {
    font-size: var(--text-xl);
    line-height: 1.5;
}

.article-viewer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.article-viewer-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Article Sections */
.article-sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

.article-section {
    scroll-margin-top: calc(72px + var(--space-8));
}

/* Section Typography */
.text-display-sm {
    font-family: 'Montserrat', var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: var(--space-4);
}

.text-section {
    font-family: 'Montserrat', var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.text-body {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
}

.text-body-lg {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

.text-muted {
    color: var(--text-muted);
}

/* Animate In */
.animate-in {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.5s ease forwards;
}

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

/* Hero Section */
.section-hero {
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
}

/* Callout Card */
.callout-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: var(--radius-lg);
    margin-top: var(--space-6);
}

.callout-card p {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.6;
    margin: 0;
}

.callout-card--warning {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.2);
}

/* Features Section */
.section-features {
    padding: var(--space-2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-6);
}

.feature-card {
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal);
}

.feature-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.feature-title {
    font-family: 'Montserrat', var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.feature-desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* Scenarios Section */
.section-scenarios {
    padding: var(--space-2);
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-6);
}

.scenario-card {
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
}

.scenario-role {
    font-family: 'Montserrat', var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.scenario-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.scenario-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.scenario-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===================================
   SCENARIO PICKER - Interactive task selector
   =================================== */
.section-scenario-picker {
    padding: var(--space-2);
}

.scenario-picker-prompt {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: var(--space-8);
    font-family: 'Montserrat', var(--font-display);
    font-size: var(--text-xl);
    font-weight: 500;
    letter-spacing: -0.01em;
    opacity: 0.9;
}

.scenario-picker-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.scenario-picker-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-8);
    min-width: 180px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Clickable indicator - subtle arrow/chevron */
.scenario-picker-btn::after {
    content: '';
    position: absolute;
    bottom: 12px;
    width: 24px;
    height: 2px;
    background: var(--text-muted);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.scenario-picker-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.scenario-picker-btn:hover::after {
    opacity: 0.6;
    width: 32px;
}

.scenario-picker-btn--active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--blue-400);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.scenario-picker-btn--active::after {
    background: var(--blue-400);
    opacity: 0.8;
}

/* Circular icon container - like Learn More */
.scenario-picker-btn-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.scenario-picker-btn:hover .scenario-picker-btn-icon {
    transform: scale(1.1);
    border-color: currentColor;
    box-shadow: 0 0 20px currentColor;
}

.scenario-picker-btn--active .scenario-picker-btn-icon {
    transform: scale(1.15);
    border-color: currentColor;
    box-shadow: 0 0 25px currentColor;
}

.scenario-picker-btn-label {
    font-family: 'Montserrat', var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    transition: color 0.3s ease;
    padding-bottom: var(--space-2);
}

.scenario-picker-btn:hover .scenario-picker-btn-label {
    color: var(--text-primary);
}

.scenario-picker-btn--active .scenario-picker-btn-label {
    color: var(--text-primary);
}

/* Reveal Panel Container */
.scenario-picker-reveal {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.scenario-picker-reveal--visible {
    max-height: 600px;
    opacity: 1;
}

/* Individual Panels */
.scenario-picker-panel {
    display: none;
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    animation: scenarioFadeIn 0.4s ease forwards;
}

.scenario-picker-panel--visible {
    display: block;
}

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

.scenario-picker-panel-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--border-subtle);
}

.scenario-picker-panel-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scenario-picker-panel-title {
    flex: 1;
}

.scenario-picker-panel-feature {
    font-family: 'Montserrat', var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    display: block;
    margin-bottom: var(--space-2);
}

.scenario-picker-panel-desc {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* "What you'll notice" section */
.scenario-picker-panel-notice {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.scenario-picker-notice-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    font-family: 'Montserrat', var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scenario-picker-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.scenario-picker-notice-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--text-primary);
    line-height: 1.5;
}

.scenario-picker-notice-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .scenario-picker-options {
        flex-direction: column;
        align-items: stretch;
    }

    .scenario-picker-btn {
        flex-direction: row;
        min-width: unset;
        padding: var(--space-4);
    }

    .scenario-picker-btn-icon {
        width: 44px;
        height: 44px;
    }

    .scenario-picker-panel-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Comparison Section */
.section-comparison {
    padding: var(--space-2);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: var(--space-6);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--text-xs);
}

.comparison-table td {
    color: var(--text-secondary);
}

.comparison-table td.highlight {
    color: var(--teal-400);
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-note {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-style: italic;
}

/* Comparison Table - Mobile Stacked Layout */
@media (max-width: 640px) {
    .comparison-table {
        display: block;
    }

    .comparison-table thead {
        display: none;
    }

    .comparison-table tbody {
        display: flex;
        flex-direction: column;
        gap: var(--space-4);
    }

    .comparison-table tr {
        display: flex;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.03);
        border-radius: var(--radius-lg);
        padding: var(--space-4);
        border: 1px solid var(--border-subtle);
    }

    .comparison-table td {
        display: flex;
        flex-direction: column;
        padding: var(--space-2) 0;
        border-bottom: none;
    }

    .comparison-table td::before {
        content: attr(data-label);
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 4px;
    }

    .comparison-table td.highlight {
        font-size: 1rem;
    }

    .comparison-table-wrapper {
        padding: var(--space-2);
    }
}

/* Callout Box Section */
.section-callout {
    padding: var(--space-2);
}

.callout-box {
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
}

.callout-box--warning {
    background: rgba(251, 191, 36, 0.05);
    border-color: rgba(251, 191, 36, 0.2);
}

.callout-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.callout-header .text-section {
    margin-bottom: 0;
}

.callout-points {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-4) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.callout-points li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.6;
}

.callout-points li svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.callout-conclusion {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
}

/* Summary Section */
.section-summary {
    padding: var(--space-2);
}

.summary-points {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.summary-point {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.summary-emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.summary-point p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.summary-cta {
    text-align: center;
    margin-top: var(--space-8);
}

.summary-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: 600;
    color: #000;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--duration-fast);
    box-shadow: 0 4px 24px rgba(20, 184, 166, 0.3);
}

.summary-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(20, 184, 166, 0.4);
}

/* TL;DR Section - Cert Card Style */
.section-tldr {
    padding: var(--space-2);
}

.tldr-card {
    padding: var(--space-8) var(--space-10);
    border-radius: var(--radius-xl);
}

.tldr-header {
    margin-bottom: var(--space-8);
}

.tldr-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.tldr-points {
    list-style: none;
    padding: 0 0 0 var(--space-4);
    margin: 0 0 var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.tldr-points li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
    font-size: var(--text-lg);
    color: var(--text-primary);
    line-height: 1.6;
}

.tldr-check {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--teal-400);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.tldr-check svg {
    width: 16px;
    height: 16px;
    color: var(--teal-400);
}

.tldr-points li span {
    flex: 1;
    padding-top: 4px;
}

.tldr-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: var(--space-3) var(--space-5);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.tldr-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Glass Card utility */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
}

/* Responsive - Tablet & Mobile: Hide sidebar, show progress bar */
@media (max-width: 900px) {
    .article-viewer {
        grid-template-columns: 1fr;
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    /* Hide the sidebar navigation */
    .article-sidebar {
        display: none;
    }

    /* Show a vertical progress bar on the left edge */
    .article-viewer::before {
        content: '';
        position: fixed;
        left: 0;
        top: 72px;
        width: 4px;
        height: calc(100vh - 72px);
        background: rgba(255, 255, 255, 0.08);
        z-index: 100;
    }

    .article-viewer::after {
        content: '';
        position: fixed;
        left: 0;
        top: 72px;
        width: 4px;
        height: calc((100vh - 72px) * var(--scroll-progress, 0));
        background: linear-gradient(180deg, var(--teal-400), var(--purple-400));
        box-shadow: 0 0 8px var(--teal-400);
        z-index: 101;
        transition: height 0.1s ease-out;
    }

    /* Fix content padding on mobile */
    .article-main {
        padding-left: 0;
        max-width: 100%;
    }

    /* Hide fixed progress bar on mobile - use pseudo-element instead */
    .sidebar-progress {
        display: none;
    }
}

/* Mobile-specific card padding adjustments */
@media (max-width: 768px) {
    /* Darker, more opaque cards on mobile for better readability */
    .glass-card,
    .tldr-card,
    .shiny-selected,
    .quiz-question-card,
    .quiz-option,
    .match-task-card,
    .scenario-card,
    .article-card,
    .featured-card {
        background: rgba(10, 15, 20, 0.95) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    /* Shiny-selected needs special handling to preserve the animated border */
    .shiny-selected {
        --surface-primary: rgba(10, 15, 20, 0.95);
    }

    /* Quiz options need slightly different treatment */
    .quiz-option {
        background: rgba(15, 20, 28, 0.92) !important;
    }

    .quiz-option:hover {
        background: rgba(20, 28, 40, 0.95) !important;
    }

    .tldr-card {
        padding: var(--space-6) var(--space-4);
    }

    .tldr-points {
        padding-left: 0;
        gap: var(--space-4);
    }

    .tldr-points li {
        gap: var(--space-3);
        font-size: var(--text-base);
    }

    .tldr-check {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .tldr-check svg {
        width: 14px;
        height: 14px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .article-viewer {
        padding-left: var(--space-2);
        padding-right: var(--space-2);
    }

    /* Even more opaque on very small screens */
    .glass-card,
    .tldr-card,
    .shiny-selected,
    .quiz-question-card,
    .quiz-option,
    .match-task-card,
    .scenario-card,
    .article-card,
    .featured-card {
        background: rgba(8, 12, 16, 0.98) !important;
    }

    .shiny-selected {
        --surface-primary: rgba(8, 12, 16, 0.98);
    }

    .quiz-option {
        background: rgba(12, 16, 24, 0.96) !important;
    }

    .tldr-card {
        padding: var(--space-4) var(--space-3);
    }

    .tldr-points li {
        font-size: var(--text-sm);
    }

    .tldr-check {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }

    .tldr-check svg {
        width: 12px;
        height: 12px;
    }
}

/* ============================================
   ARTICLE VIEWER - LIGHT MODE
   ============================================ */

body.light-mode .sidebar-back {
    color: #64748b;
}

body.light-mode .sidebar-back:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .sidebar-link {
    color: #64748b;
}

body.light-mode .sidebar-link:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .sidebar-link.active {
    color: #0f172a;
    background: rgba(20, 184, 166, 0.1);
}

body.light-mode .sidebar-progress {
    background: rgba(0, 0, 0, 0.08);
}

body.light-mode .article-sidebar {
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .article-viewer-header {
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .article-viewer-header .text-display {
    color: #0f172a;
}

body.light-mode .article-viewer-meta {
    color: #64748b;
}

body.light-mode .text-display-sm {
    color: #0f172a;
}

body.light-mode .text-section {
    color: #0f172a;
}

body.light-mode .text-body,
body.light-mode .text-body-lg {
    color: #475569;
}

body.light-mode .section-hero {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .callout-card {
    background: rgba(20, 184, 166, 0.06);
    border-color: rgba(20, 184, 166, 0.15);
}

body.light-mode .callout-card p {
    color: #334155;
}

body.light-mode .feature-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .feature-card:hover {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.light-mode .feature-title {
    color: #0f172a;
}

body.light-mode .feature-desc {
    color: #64748b;
}

body.light-mode .scenario-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .scenario-list li {
    color: #475569;
}

body.light-mode .comparison-table-wrapper {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .comparison-table th {
    color: #64748b;
}

body.light-mode .comparison-table td {
    color: #475569;
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .comparison-table td.highlight {
    color: var(--teal-600);
}

body.light-mode .comparison-note {
    color: #64748b;
}

body.light-mode .callout-box {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .callout-box--warning {
    background: rgba(251, 191, 36, 0.06);
    border-color: rgba(251, 191, 36, 0.2);
}

body.light-mode .callout-points li {
    color: #475569;
}

body.light-mode .callout-conclusion {
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .summary-point {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .summary-point p {
    color: #475569;
}

body.light-mode .tldr-points li {
    color: #1e293b;
}

body.light-mode .tldr-label {
    background: rgba(20, 184, 166, 0.1);
}

body.light-mode .tldr-check {
    border-color: var(--teal-500);
}

body.light-mode .tldr-check svg {
    color: var(--teal-500);
}

body.light-mode .tldr-cta {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #475569;
}

body.light-mode .tldr-cta:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1e293b;
}

body.light-mode .glass-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

/* ============================================
   INTERACTIVE ELEMENTS - STATS, EXPANDABLE, QUIZ
   ============================================ */

/* Stats Section */
.section-stats {
    padding: var(--space-2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-6);
}

.stat-card {
    padding: var(--space-6);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--blue-400), transparent);
    opacity: 0.5;
    border-radius: 0 0 4px 4px;
}

.stat-value {
    font-family: 'Montserrat', var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-2);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.stat-prefix,
.stat-suffix {
    font-size: 0.6em;
    opacity: 0.8;
}

.stat-label {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.stat-context {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.4;
}

/* Expandable Section */
.section-expandable {
    padding: var(--space-2);
}

.expandable-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.expandable-item {
    overflow: hidden;
    transition: all var(--duration-normal);
}

.expandable-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    transition: all var(--duration-fast);
}

.expandable-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.expandable-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.expandable-title {
    flex: 1;
    font-family: 'Montserrat', var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
}

.expandable-chevron {
    color: var(--text-muted);
    transition: transform var(--duration-normal);
}

.expandable-item.expanded .expandable-chevron {
    transform: rotate(180deg);
}

.expandable-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all var(--duration-normal) ease-out;
    padding: 0 var(--space-5);
}

.expandable-item.expanded .expandable-content {
    max-height: 500px;
    opacity: 1;
    padding: 0 var(--space-5) var(--space-5) calc(40px + var(--space-4) + var(--space-5));
}

.expandable-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: var(--text-base);
}

/* Expandable Completion Indicator */
.expandable-complete-indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: transparent;
    flex-shrink: 0;
    margin-right: var(--space-2);
}

.expandable-item--viewed .expandable-complete-indicator {
    opacity: 1;
    transform: scale(1);
    border-color: var(--teal-400);
    color: var(--teal-400);
    background: rgba(20, 184, 166, 0.1);
}

.expandable-item--viewed .expandable-complete-indicator svg {
    animation: checkPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes checkPop {
    0% {
        transform: scale(0) rotate(-45deg);
    }

    60% {
        transform: scale(1.2) rotate(0deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Quiz Section */
.section-quiz {
    padding: var(--space-2);
}

.quiz-header {
    margin-bottom: var(--space-4);
}

.quiz-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
}

/* Shiny selected card - from branding guide */
@property --card-gradient-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes card-border-spin {
    to {
        --card-gradient-angle: 360deg;
    }
}

.shiny-selected {
    position: relative;
    overflow: hidden;
    background: linear-gradient(var(--surface-primary), var(--surface-primary)) padding-box,
        conic-gradient(from var(--card-gradient-angle),
            transparent 0%,
            var(--teal-500) 5%,
            var(--teal-400) 15%,
            var(--purple-400) 25%,
            var(--teal-500) 35%,
            transparent 45%) border-box !important;
    border: 2px solid transparent !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(20, 184, 166, 0.3) !important;
    animation: card-border-spin 3s linear infinite;
}

.shiny-selected::before {
    content: '';
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(20, 184, 166, 0.15), transparent 60%);
    z-index: 0;
}

/* Combined animation when shiny-selected is used with animate-in */
.shiny-selected.animate-in {
    animation: fadeInUp 0.5s ease forwards, card-border-spin 3s linear 0.5s infinite;
}

.quiz-question-card {
    padding: var(--space-8);
    margin-bottom: var(--space-6);
    border-radius: var(--radius-2xl);
}

/* Ensure content is above the shiny-selected ::before overlay */
.quiz-question-card>* {
    position: relative;
    z-index: 1;
}

.quiz-question {
    margin: 0;
    font-family: 'Montserrat', var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* Ensure all content inside quiz-question-card is above the background */
.quiz-question-card>* {
    position: relative;
    z-index: 1;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-5) var(--space-6);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--blue-400);
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(96, 165, 250, 0.1);
}

.quiz-option-letter {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: var(--text-lg);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.quiz-option:hover .quiz-option-letter {
    transform: scale(1.05);
}

.quiz-option-text {
    flex: 1;
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
}

.quiz-result-card {
    padding: var(--space-6);
}

.quiz-result-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.quiz-result-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-result-text {
    flex: 1;
}

.quiz-result-label {
    margin: 0 0 4px;
    font-weight: 700;
    font-size: 1.1rem;
}

.quiz-result-explanation {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Quiz Option States - Matching Model Selection Module */
.quiz-option--correct {
    border-color: var(--green-400) !important;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1)) !important;
    box-shadow:
        0 0 0 1px var(--green-400),
        0 0 20px rgba(34, 197, 94, 0.3),
        0 8px 32px rgba(34, 197, 94, 0.2) !important;
}

.quiz-option--wrong {
    border-color: var(--red-500) !important;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(220, 38, 38, 0.08)) !important;
}

.quiz-option--correct-highlight {
    border-color: var(--green-400) !important;
    box-shadow:
        0 0 0 1px var(--green-400),
        0 0 20px rgba(34, 197, 94, 0.3),
        0 8px 32px rgba(34, 197, 94, 0.2) !important;
    animation: quizPulse 1s ease infinite !important;
}

/* Quiz Feedback Card - Matching Model Selection Module */
.quiz-feedback-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-8) var(--space-6) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Stop the shiny animation when answered */
    animation: none !important;
}

.quiz-feedback-card::before,
.quiz-feedback-card::after {
    display: none !important;
}

.quiz-feedback-card--success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(16, 185, 129, 0.05)) !important;
    border: 2px solid transparent !important;
    border-image: linear-gradient(135deg, var(--green-400), var(--teal-400)) 1 !important;
    box-shadow:
        0 0 0 1px rgba(34, 197, 94, 0.3),
        0 0 30px rgba(34, 197, 94, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    border-radius: var(--radius-xl) !important;
}

.quiz-feedback-card--wrong {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(220, 38, 38, 0.05)) !important;
    border: 2px solid rgba(239, 68, 68, 0.3) !important;
    box-shadow:
        0 0 0 1px rgba(239, 68, 68, 0.2),
        0 0 20px rgba(239, 68, 68, 0.1) !important;
}

.quiz-feedback-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    animation: successPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quiz-feedback-icon--success {
    background: linear-gradient(135deg, var(--green-500), var(--teal-500));
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.quiz-feedback-icon--wrong {
    background: linear-gradient(135deg, var(--red-500), var(--red-400));
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.quiz-feedback-label {
    font-family: 'Montserrat', var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 var(--space-2);
}

.quiz-feedback-label--success {
    color: var(--green-400);
}

.quiz-feedback-label--wrong {
    color: var(--red-400);
}

.quiz-feedback-explanation {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.6;
    margin: 0;
    max-width: 400px;
}

/* Next Button - Matching Model Selection Module */
.quiz-next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    padding: var(--space-3) var(--space-6);
    background: linear-gradient(135deg, var(--green-500), var(--teal-500));
    color: white;
    font-family: 'Montserrat', var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-fast);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.quiz-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.4);
}

.quiz-next-btn--secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-subtle);
    box-shadow: none;
}

.quiz-next-btn--secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   MATCH TASK SECTION
   ============================================ */
.section-match-task {
    padding: var(--space-4) 0;
    text-align: center;
}

.match-buckets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    max-width: 600px;
    margin: 0 auto;
}

.match-bucket {
    cursor: pointer;
    text-align: center;
    padding: var(--space-8) var(--space-6);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.match-bucket::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 70%);
}

.match-bucket:hover::before {
    opacity: 1;
}

.match-bucket:hover {
    transform: translateY(-4px) scale(1.02);
    background: linear-gradient(var(--surface-primary), var(--surface-primary)) padding-box,
        conic-gradient(from var(--card-gradient-angle),
            transparent 0%,
            var(--teal-500) 5%,
            var(--teal-400) 15%,
            var(--purple-400) 25%,
            var(--teal-500) 35%,
            transparent 45%) border-box;
    border: 2px solid transparent;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(20, 184, 166, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.2);
    animation: card-border-spin 3s linear infinite;
}

.match-bucket:active {
    transform: translateY(-2px) scale(0.98);
}

.match-bucket-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.match-bucket:hover .match-bucket-icon {
    transform: scale(1.1);
}

.match-bucket-title {
    margin: 0 0 var(--space-1);
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
}

.match-bucket-desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
}

.match-task-card {
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    /* Combined animations: fadeInUp first, then pulse */
    animation: fadeInUp 0.5s ease forwards, matchTaskPulse 2s ease-in-out 0.5s infinite;
    opacity: 0;
    transform: translateY(12px);
}

/* Ensure content is visible */
.match-task-card p {
    position: relative;
    z-index: 1;
}

@keyframes matchTaskPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.3);
    }

    50% {
        box-shadow: 0 0 20px 4px rgba(59, 130, 246, 0.2);
    }
}

.match-complete-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-8);
    border: 2px solid var(--green-500);
    background: rgba(34, 197, 94, 0.1);
}

.match-complete-icon {
    width: 64px;
    height: 64px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
}

.match-complete-icon svg {
    color: var(--green-400);
}

.match-complete-title {
    color: var(--green-400);
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0 0 var(--space-2);
}

.match-complete-desc {
    color: var(--text-secondary);
    margin: 0 0 var(--space-6);
}

.match-next-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: linear-gradient(135deg, var(--green-500), var(--teal-500));
    color: white;
    font-size: var(--text-base);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-fast);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.match-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.4);
}

.match-next-btn--secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-subtle);
    box-shadow: none;
}

.match-next-btn--secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Match Task Responsive */
@media (max-width: 640px) {
    .match-buckets {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .match-bucket {
        padding: var(--space-5) var(--space-4);
    }

    .match-bucket-icon {
        width: 48px;
        height: 48px;
    }

    .match-task-card {
        padding: var(--space-4) !important;
    }

    .match-task-text {
        font-size: 1rem !important;
    }
}

/* Light Mode - Match Task */
body.light-mode .match-bucket {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .match-bucket:hover {
    background: #f8fafc;
}

body.light-mode .match-task-card {
    background: #ffffff;
}

body.light-mode .match-complete-card {
    background: rgba(34, 197, 94, 0.06);
}

/* Light Mode - Interactive Elements */
body.light-mode .stat-card::before {
    opacity: 0.3;
}

body.light-mode .stat-label {
    color: #0f172a;
}

body.light-mode .stat-context {
    color: #64748b;
}

body.light-mode .expandable-header:hover {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .expandable-title {
    color: #0f172a;
}

body.light-mode .expandable-chevron {
    color: #64748b;
}

body.light-mode .expandable-content p {
    color: #475569;
}

body.light-mode .quiz-question-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .quiz-question {
    color: #0f172a;
}

body.light-mode .quiz-option {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .quiz-option:hover {
    background: #f8fafc;
    border-color: var(--blue-400);
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(96, 165, 250, 0.08);
}

body.light-mode .quiz-option-text {
    color: #0f172a;
}

body.light-mode .quiz-result-explanation {
    color: #475569;
}

body.light-mode .quiz-feedback-card--success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.06), rgba(16, 185, 129, 0.03)) !important;
}

body.light-mode .quiz-feedback-card--wrong {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.06), rgba(220, 38, 38, 0.03)) !important;
}

body.light-mode .quiz-feedback-explanation {
    color: #475569;
}

body.light-mode .quiz-next-btn--secondary {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
    border-color: rgba(0, 0, 0, 0.1);
    color: #0f172a;
}

body.light-mode .quiz-next-btn--secondary:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.04));
}

/* ============================================
   INTERACTIVE ELEMENTS - RESPONSIVE
   ============================================ */

@media (max-width: 768px) {

    /* Stats - stack in 2 columns on tablet, 1 on mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .stat-card {
        padding: var(--space-4);
    }

    .stat-value {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    .stat-label {
        font-size: var(--text-sm);
    }

    .stat-context {
        font-size: var(--text-xs);
    }

    /* Expandable - full width, smaller padding */
    .expandable-header {
        padding: var(--space-3) var(--space-4);
        gap: var(--space-3);
    }

    .expandable-icon {
        width: 36px;
        height: 36px;
    }

    .expandable-title {
        font-size: var(--text-base);
    }

    .expandable-item.expanded .expandable-content {
        padding: 0 var(--space-4) var(--space-4) calc(36px + var(--space-3) + var(--space-4));
    }

    .expandable-content p {
        font-size: var(--text-sm);
    }

    /* Quiz - adjust spacing */
    .quiz-question-card {
        padding: var(--space-6);
    }

    .quiz-question {
        font-size: var(--text-lg);
    }

    .quiz-options {
        gap: var(--space-3);
    }

    .quiz-option {
        padding: var(--space-4) var(--space-5);
        gap: var(--space-4);
    }

    .quiz-option-letter {
        width: 36px;
        height: 36px;
        font-size: var(--text-base);
    }

    .quiz-option-text {
        font-size: var(--text-base);
    }

    .quiz-result-card {
        padding: var(--space-4);
    }

    .quiz-result-header {
        gap: var(--space-3);
    }

    .quiz-result-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .quiz-result-icon svg {
        width: 18px;
        height: 18px;
    }

    .quiz-result-label {
        font-size: 1rem;
    }

    .quiz-result-explanation {
        font-size: var(--text-sm);
    }

    /* Quiz feedback - responsive */
    .quiz-feedback-card {
        padding: var(--space-6) var(--space-4) !important;
    }

    .quiz-feedback-icon {
        width: 48px;
        height: 48px;
    }

    .quiz-feedback-icon svg {
        width: 24px;
        height: 24px;
    }

    .quiz-feedback-label {
        font-size: 1.25rem;
    }

    .quiz-feedback-explanation {
        font-size: var(--text-sm);
    }

    .quiz-next-btn {
        padding: var(--space-3) var(--space-5);
        font-size: var(--text-sm);
    }
}

@media (max-width: 480px) {

    /* Stats - single column on small mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .stat-card {
        padding: var(--space-4);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Quiz option - adjust for very small screens */
    .quiz-question-card {
        padding: var(--space-5);
    }

    .quiz-option {
        padding: var(--space-4);
        gap: var(--space-3);
    }

    .quiz-option-letter {
        width: 32px;
        height: 32px;
        font-size: var(--text-sm);
    }

    .quiz-option-text {
        font-size: var(--text-sm);
    }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
    .quiz-option {
        min-height: 56px;
    }

    .expandable-header {
        min-height: 56px;
    }

    .quiz-option:hover {
        transform: none;
    }

    .quiz-option:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .expandable-header:active {
        opacity: 0.9;
    }
}