/* === DEEP DIVE LOADING PAGE === */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.loading-topic {
    font-family: "PT Serif", Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.35;
}

.loading-label {
    font-family: -apple-system, system-ui, "Helvetica Neue", sans-serif;
    font-size: 0.85rem;
    color: var(--fg-muted);
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
}

.loading-error {
    display: none;
    color: var(--fg-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.loading-error a { color: var(--link); }

/* Progress steps */
.dd-progress-loading {
    margin-top: 1.5rem;
    width: 280px;
    text-align: left;
}
.dd-progress-loading .dd-progress-bar {
    height: 3px;
    background: var(--border-faint);
    margin-bottom: 0.9rem;
    overflow: hidden;
}
.dd-progress-loading .dd-progress-bar-fill {
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 0.5s ease;
}
.dd-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    opacity: 0.3;
    font-size: 0.8rem;
    color: var(--fg-muted);
    transition: opacity 0.3s;
}
.dd-step.done { opacity: 0.55; }
.dd-step.done .dd-step-icon { color: rgba(120, 200, 120, 0.8); }
.dd-step.active { opacity: 1; }
.dd-step.active .dd-step-icon {
    color: var(--accent, #6b1520);
    animation: dd-pulse 1.5s ease-in-out infinite;
}
.dd-step-icon {
    width: 1.2em;
    text-align: center;
    flex-shrink: 0;
}
.dd-step-label { flex: 1; }
.dd-step-detail {
    font-size: 0.7rem;
    color: var(--fg-muted);
    opacity: 0.6;
    margin-left: auto;
}
@keyframes dd-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.generate-description {
    font-family: "PT Serif", Georgia, serif;
    font-size: 0.95rem;
    color: var(--fg-muted);
    max-width: 400px;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.generate-btn {
    font-family: -apple-system, system-ui, "Helvetica Neue", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.7rem 2rem;
    border: none;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    transition: opacity 0.2s;
}
.generate-btn:hover { opacity: 0.85; }
.generate-note {
    font-family: -apple-system, system-ui, "Helvetica Neue", sans-serif;
    font-size: 0.72rem;
    color: var(--fg-faint);
    margin-top: 0.7rem;
}

/* Override article.css .back-link for loading page context */
.loading-container .back-link {
    margin-top: 1.2rem;
    margin-bottom: 0;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0;
}

.generating-state { display: none; }
.loading-overlay-inline {
    position: static;
    background: none;
    backdrop-filter: none;
    display: flex;
}
