/* Phase 2 — additional styles for anchor pages with rich content */

/* Key facts grid (used at top of slot-review, rtp pages) */
.key-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 24px 0;
}
.key-fact {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}
.key-fact-label {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.key-fact-value {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Data table for paytable, RTP variations, casino comparisons */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.data-table th {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
}
.data-table td {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    font-size: 0.95em;
}
.data-table tr:nth-child(even) td {
    background: rgba(0,0,0,0.02);
}
.data-table .highlight {
    background: var(--primary-light) !important;
    font-weight: 600;
}

/* Methodology box */
.methodology {
    background: #fef9e7;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 24px 0;
}
.methodology h3 {
    margin: 0 0 8px;
    font-size: 1em;
    color: #92400e;
}
.methodology p, .methodology ul {
    font-size: 0.9em;
    color: #78350f;
}

/* Source citation */
.source-cite {
    font-size: 0.8em;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 4px;
}
.source-cite a {
    color: var(--primary-dark);
}

/* Author byline at top of article */
.author-byline {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 16px 0 24px;
    font-size: 0.9em;
}
.author-byline .author-meta {
    flex: 1;
}
.author-byline .author-meta strong {
    display: block;
    font-size: 0.95em;
}
.author-byline .author-meta .role {
    color: var(--text-muted);
    font-size: 0.85em;
}
.author-byline .reviewed-date {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.8em;
}

/* FAQ section */
.faq-section {
    margin: 32px 0;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}
.faq-item summary {
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 36px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4em;
    color: var(--primary-dark);
    line-height: 1;
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-item .faq-body {
    padding: 0 16px 14px;
    color: var(--text);
    font-size: 0.95em;
}

/* Distribution chart (text-based bar chart) */
.dist-chart {
    margin: 20px 0;
    font-family: 'SF Mono', Monaco, Menlo, monospace;
    font-size: 0.9em;
}
.dist-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}
.dist-label { width: 110px; color: var(--text-muted); }
.dist-bar {
    background: var(--primary);
    height: 18px;
    border-radius: 3px;
    min-width: 1px;
}
.dist-value { font-weight: 600; }

/* Pros/cons grid */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}
.pros, .cons {
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.pros { background: #f0fdf4; border-color: #bbf7d0; }
.cons { background: #fef2f2; border-color: #fecaca; }
.pros h3, .cons h3 { font-size: 1em; margin-bottom: 8px; }
.pros h3 { color: #166534; }
.cons h3 { color: #991b1b; }
.pros ul, .cons ul { padding-left: 20px; font-size: 0.92em; }

/* Rating box (slot review) */
.rating-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    margin: 24px 0;
}
.rating-box .rating-score {
    font-size: 3em;
    font-weight: 800;
    line-height: 1;
}
.rating-box .rating-score .rating-max { font-size: 0.5em; opacity: 0.7; }
.rating-box .rating-label {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-top: 8px;
}
.rating-box .rating-verdict {
    margin-top: 12px;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Section divider */
.section-divider {
    margin: 32px 0;
    border: none;
    border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
    .pros-cons { grid-template-columns: 1fr; }
    .key-facts-grid { grid-template-columns: repeat(2, 1fr); }
}
