/* ==========================================================
   V6 — SEO Reality & Interaction Layer
   seo-reality.css
   APPEND-ONLY
   ========================================================== */

/* ── Wrapper ── */
.seo-reality-wrapper {
    margin: 2.5rem 0;
    font-family: inherit;
    color: #2d3748;
    line-height: 1.7;
}

/* ── Layout variants ── */
.seo-reality-layout-0 .seo-reality-section { margin-bottom: 2rem; }
.seo-reality-layout-1 .seo-reality-section { margin-bottom: 1.5rem; padding: 0.5rem 0; }
.seo-reality-layout-2 .seo-reality-section { margin-bottom: 2.5rem; border-bottom: 1px solid #e8ecf1; padding-bottom: 1.5rem; }
.seo-reality-layout-2 .seo-reality-section:last-child { border-bottom: none; }

/* ── Section base ── */
.seo-reality-section {
    padding: 0;
}

/* ── Text styles ── */
.seo-reality-text {
    margin: 0.5em 0;
    font-size: 0.97rem;
    line-height: 1.72;
    color: #374151;
}
.seo-reality-text--subtle {
    color: #6b7280;
    font-size: 0.92rem;
}
.seo-reality-text--constraint {
    color: #92400e;
    font-size: 0.93rem;
    font-style: italic;
}
.seo-reality-text--nuance {
    border-left: 3px solid #d1d5db;
    padding-left: 0.75rem;
    color: #4b5563;
}
.seo-reality-text--trend {
    color: #1e40af;
    font-weight: 500;
}
.seo-reality-text--shift {
    color: #7c3aed;
    font-weight: 500;
    font-style: italic;
}
.seo-reality-text--editorial {
    background: #fefce8;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border-left: 3px solid #facc15;
    color: #713f12;
    font-size: 0.93rem;
}

/* ── Scenario cards ── */
.seo-reality-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.seo-reality-scenario-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
}
.seo-reality-scenario-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem;
}
.seo-reality-scenario-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.seo-reality-meta-item {
    font-size: 0.85rem;
    color: #6b7280;
    white-space: nowrap;
}

/* ── Price range badge ── */
.seo-reality-range {
    display: inline-block;
    background: #eff6ff;
    color: #1e40af;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-top: 0.5rem;
}

/* ── Constraints ── */
.seo-reality-constraints {
    margin: 1rem 0;
}

/* ── Weekly day chart ── */
.seo-reality-day-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 80px;
    margin: 1rem 0;
    padding: 0.5rem 0;
}
.seo-reality-day-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
}
.seo-reality-day-fill {
    width: 100%;
    max-width: 32px;
    background: linear-gradient(180deg, #3b82f6, #93c5fd);
    border-radius: 3px 3px 0 0;
    margin-top: auto;
    min-height: 4px;
    transition: height 0.3s ease;
}
.seo-reality-day-label {
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ── Demand peak cards ── */
.seo-reality-peaks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}
.seo-reality-peak-card {
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}
.seo-reality-peak-period {
    font-size: 0.82rem;
    font-weight: 700;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.seo-reality-peak-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #92400e;
    margin: 0.25rem 0;
}

/* ── Tension indicators ── */
.seo-reality-tension {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 0.75rem 0;
}
.seo-reality-tension--surplus  { background: #ecfdf5; border-left: 4px solid #10b981; }
.seo-reality-tension--equilibre { background: #eff6ff; border-left: 4px solid #3b82f6; }
.seo-reality-tension--tension  { background: #fff7ed; border-left: 4px solid #f59e0b; }
.seo-reality-tension--penurie  { background: #fef2f2; border-left: 4px solid #ef4444; }
.seo-reality-tension-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: inherit;
}

/* ── Availability bar ── */
.seo-reality-avail-bar {
    position: relative;
    height: 24px;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    margin: 0.75rem 0;
}
.seo-reality-avail-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
}
.seo-reality-avail--high     { background: #34d399; }
.seo-reality-avail--moderate { background: #fbbf24; }
.seo-reality-avail--low      { background: #f87171; }
.seo-reality-avail-label {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
}

/* ── Trend arrow ── */
.seo-reality-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 0.25rem;
}
.seo-reality-trend--up    { color: #dc2626; }
.seo-reality-trend--stable { color: #2563eb; }
.seo-reality-trend--down  { color: #16a34a; }

/* ── Tone shift ── */
.seo-reality-tone-shift {
    margin: 0.75rem 0;
}

/* ── Imperfect phrases ── */
.seo-reality-phrases {
    margin: 0.75rem 0;
}
.seo-reality-phrase--interjections {
    font-weight: 500;
}
.seo-reality-phrase--parentheticals {
    color: #4b5563;
}
.seo-reality-phrase--self_corrections {
    font-style: italic;
    color: #6b7280;
}
.seo-reality-phrase--colloquial {
    font-weight: 500;
    color: #374151;
}

/* ── Irregular style ── */
.seo-reality-irregular {
    margin: 0.75rem 0;
}

/* ── Editorial ── */
.seo-reality-editorial {
    margin: 1rem 0;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .seo-reality-scenarios,
    .seo-reality-peaks {
        grid-template-columns: 1fr;
    }
    .seo-reality-day-chart {
        height: 60px;
    }
}
