/* ═══════════════════════════════════════════════════════════════════
   JoyA — Premium Report UI (Layout, Sidebar, TOC, Progress)
   ═══════════════════════════════════════════════════════════════════ */

/* -- Premium: Premium Report UI ----------------------------------- */



.premium-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
    min-height: 400px;
}

@media (max-width: 900px) {
    .premium-layout {
        grid-template-columns: 1fr;
    }
}

.premium-sidebar {
    position: sticky;
    top: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.premium-toc {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.toc-item {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    cursor: default;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-item::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s ease;
}

.toc-item.status-generating {
    color: var(--text-main);
    background: rgba(200, 169, 126, 0.05);
}

.toc-item.status-generating::before {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 1.5s infinite;
}

.toc-item.status-complete {
    color: var(--text-main);
}

.toc-item.status-complete::before {
    background: var(--success);
    /* Green */
}

.toc-item.status-error::before {
    background: var(--danger);
    /* Red */
}

.premium-placeholder {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 4rem 2rem;
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.premium-module-content {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    animation: fadeIn 0.8s ease forwards;
}

.premium-module-content:last-child {
    border-bottom: none;
}

.premium-module-content h2 {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.premium-module-content h3 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.premium-module-content p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.premium-module-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.premium-module-content li {
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Cache hit badge */
.premium-cache-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.04));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 1rem;
    animation: cacheSlideIn 0.4s ease;
}

@keyframes cacheSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

/* ── Premium: Blockquotes (Analogies) ── */
.premium-module-content blockquote {
    color: #a09ca8; /* Analogies get slightly lighter grey */
    border-left: 2px solid rgba(200, 169, 126, 0.4);
    padding: 0.8rem 1rem 0.8rem 1.2rem;
    margin: 1.5rem 0;
    background: rgba(200, 169, 126, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.premium-module-content blockquote p {
    margin-bottom: 0;
    color: inherit;
}

/* ── Premium: Educational Intros ── */
.premium-module-content .edu-intro {
    color: #706b7a; /* Darker grey text as requested */
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}