/**
 * Oracle Article Styles
 * ======================
 * Tight, professional layout. No kindergarten spacing.
 */

/* ========================================
   ARTICLE INDEX PAGE (oracle_articles.html)
   ======================================== */

.oracle-index-header {
    text-align: center;
    padding: 1rem 0 0.8rem;
    border-bottom: 1px solid rgba(192,168,0,0.2);
    margin-bottom: 1rem;
}

.oracle-index-title {
    font-size: 1.3rem;
    color: #c0a040;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 0.3rem;
}

.oracle-index-subtitle {
    font-size: 0.85rem;
    color: #999;
    margin: 0 0 0.3rem;
    font-style: italic;
}

.oracle-index-desc {
    font-size: 0.8rem;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.oracle-index-stats {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    padding: 0.8rem 0;
    flex-wrap: wrap;
}

.oracle-index-stat {
    text-align: center;
}

.oracle-index-stat-num {
    font-size: 1.2rem;
    color: #c0a040;
    font-weight: bold;
    display: block;
}

.oracle-index-stat-label {
    font-size: 0.6rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Article Cards Grid */
.oracle-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0.5rem 0;
}

.oracle-card {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(192,168,0,0.2);
    border-radius: 4px;
    padding: 1rem;
    transition: border-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.oracle-card:hover {
    border-color: rgba(192,168,0,0.5);
}

.oracle-card-title {
    font-size: 1rem;
    color: #c0a040;
    margin: 0 0 0.4rem;
    font-weight: bold;
}

.oracle-card-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.oracle-card-tag {
    font-size: 0.6rem;
    color: #999;
    background: rgba(192,168,0,0.08);
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oracle-card-series {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c0a800;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.oracle-card-date {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.oracle-card-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(192,192,192,0.1);
}

.oracle-card-stat {
    font-size: 0.7rem;
    color: #888;
}

.oracle-card-stat-val {
    color: #c0a040;
    font-weight: bold;
}

.oracle-card-vote {
    font-size: 0.7rem;
    color: #4a9;
    font-weight: bold;
}

.oracle-card-confidence {
    font-size: 0.7rem;
    color: #888;
}

.oracle-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
}

.oracle-empty-state-title {
    font-size: 1rem;
    color: #999;
}

/* ========================================
   SINGLE ARTICLE PAGE (oracle_article.html)
   ======================================== */

.oracle-article-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

/* Back link */
.oracle-back-link {
    display: inline-block;
    color: #c0a040;
    text-decoration: none;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.oracle-back-link:hover {
    color: #e0c060;
}

/* Article Header */
.oracle-article-header {
    text-align: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(192,168,0,0.2);
    margin-bottom: 1rem;
}

.oracle-article-title {
    font-size: 1.3rem;
    color: #c0a040;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 0.3rem;
}

.oracle-article-byline {
    font-size: 0.75rem;
    color: #777;
    margin: 0.1rem 0;
}

.oracle-article-intro {
    color: #b0b0b0;
    font-style: italic;
    font-size: 0.85rem;
    max-width: 700px;
    margin: 0.5rem auto 0;
    line-height: 1.5;
}

/* Council Badge */
.oracle-council-badge {
    display: inline-block;
    background: rgba(68,170,153,0.12);
    border: 1px solid rgba(68,170,153,0.3);
    color: #4a9;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

.oracle-council-badge--rejected {
    background: rgba(200,60,60,0.12);
    border-color: rgba(200,60,60,0.3);
    color: #c44;
}

/* Article Stats Bar */
.oracle-article-stats {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    padding: 0.5rem 0;
    flex-wrap: wrap;
}

.oracle-article-stat {
    text-align: center;
}

.oracle-article-stat-num {
    font-size: 1.1rem;
    color: #c0a040;
    font-weight: bold;
    display: block;
}

.oracle-article-stat-label {
    font-size: 0.6rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Chapter Navigation */
.oracle-chapter-nav {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.5rem 0;
    margin-bottom: 0.8rem;
}

.oracle-chapter-link {
    padding: 0.2rem 0.5rem;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(192,192,192,0.15);
    border-radius: 3px;
    color: #999;
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.oracle-chapter-link:hover {
    color: #c0a040;
    border-color: rgba(192,168,0,0.3);
}

/* Chapter Block */
.oracle-chapter {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(192,192,192,0.08);
}

.oracle-chapter:last-child {
    border-bottom: none;
}

.oracle-chapter-number {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 0.2rem;
}

.oracle-chapter-title {
    font-size: 1.1rem;
    color: #c0a040;
    margin: 0 0 0.6rem;
}

/* Narrative paragraphs */
.oracle-narrative {
    margin-bottom: 0.8rem;
}

.oracle-narrative p {
    color: #d0d0d0;
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0 0 0.6rem;
}

/* Evidence Section (collapsible) */
.oracle-evidence-section {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(192,192,192,0.15);
    border-radius: 4px;
    margin-top: 0.8rem;
    overflow: hidden;
}

.oracle-evidence-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.oracle-evidence-toggle:hover {
    background: rgba(192,168,0,0.08);
}

.oracle-evidence-label {
    color: #c0a040;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.oracle-evidence-arrow {
    color: #666;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.oracle-evidence-arrow.open {
    transform: rotate(90deg);
}

.oracle-evidence-body {
    display: none;
    padding: 0 0.8rem 0.5rem;
}

.oracle-evidence-body.open {
    display: block;
}

/* Evidence Cards */
.oracle-ev-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(192,192,192,0.08);
    border-radius: 3px;
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.3rem;
}

.oracle-ev-card-source {
    color: #c0a040;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.oracle-ev-card-data {
    color: #b0b0b0;
    font-size: 0.78rem;
    line-height: 1.4;
    word-break: break-word;
}

.oracle-ev-card-conf {
    color: #666;
    font-size: 0.65rem;
    margin-top: 0.2rem;
}

/* Article Footer */
.oracle-article-footer {
    text-align: center;
    padding: 1rem 0 0.5rem;
    border-top: 1px solid rgba(192,168,0,0.15);
    margin-top: 1rem;
}

.oracle-footer-quote {
    color: #c0a040;
    font-style: italic;
    font-size: 0.8rem;
    margin: 0 0 0.3rem;
}

.oracle-footer-copy {
    color: #666;
    font-size: 0.65rem;
}

/* Domains Tags */
.oracle-domains {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.oracle-domain-tag {
    font-size: 0.6rem;
    color: #999;
    background: rgba(192,168,0,0.08);
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oracle-voice-tag {
    font-size: 0.75rem;
    color: #c0a040;
    font-style: italic;
    margin-bottom: 0.3rem;
    text-transform: capitalize;
}

/* ========================================
   SCHOLARLY MODE STYLES
   ======================================== */

.oracle-scholarly-section {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(192,192,192,0.08);
}

.oracle-scholarly-heading {
    font-size: 1rem;
    color: #c0a040;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(192,168,0,0.2);
}

.oracle-scholarly-abstract {
    color: #d0d0d0;
    font-size: 0.85rem;
    line-height: 1.6;
    font-style: italic;
    padding: 0.6rem;
    background: rgba(0,0,0,0.3);
    border-left: 3px solid rgba(192,168,0,0.4);
    border-radius: 0 3px 3px 0;
}

/* In-text Citations */
.oracle-citations-section {
    margin-top: 0.6rem;
    padding: 0.5rem 0.8rem;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(192,192,192,0.1);
    border-radius: 3px;
}

.oracle-citations-label {
    font-size: 0.65rem;
    color: #c0a040;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.oracle-citation {
    margin-bottom: 0.3rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(192,192,192,0.05);
}

.oracle-citation:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.oracle-citation-inline {
    color: #c0a040;
    font-size: 0.78rem;
    font-weight: bold;
}

.oracle-citation-full {
    color: #999;
    font-size: 0.72rem;
    margin-top: 0.1rem;
    padding-left: 0.8rem;
    line-height: 1.4;
}

/* Bibliography */
.oracle-bibliography {
    padding: 0.3rem 0;
}

.oracle-bib-entry {
    color: #c8c8c8;
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    text-indent: -1.5rem;
}

.oracle-bib-type {
    color: #888;
    font-size: 0.65rem;
    font-style: italic;
}

/* Loading State */
.oracle-loading {
    text-align: center;
    padding: 2rem 1rem;
    color: #777;
}

.oracle-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(192,168,0,0.3);
    border-top-color: #c0a040;
    border-radius: 50%;
    animation: oracle-spin 0.8s linear infinite;
    margin-bottom: 0.5rem;
}

@keyframes oracle-spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE / MOBILE
   ======================================== */

@media (max-width: 768px) {
    .oracle-index-title {
        font-size: 1.1rem;
    }

    .oracle-index-stats {
        gap: 0.8rem;
    }

    .oracle-index-stat-num {
        font-size: 1rem;
    }

    .oracle-cards-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .oracle-card {
        padding: 0.8rem;
    }

    .oracle-article-title {
        font-size: 1.1rem;
    }

    .oracle-chapter-title {
        font-size: 1rem;
    }

    .oracle-narrative p {
        font-size: 0.84rem;
    }

    .oracle-article-stats {
        gap: 0.6rem;
    }

    .oracle-article-stat-num {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .oracle-article-container {
        padding: 0.3rem 0.5rem;
    }

    .oracle-article-title {
        font-size: 1rem;
    }
}
