/* Purpose: arb's own visual identity (distinct from weather_bet_bot's static/css/style.css) -- kept deliberately separate per the merge plan. */
/* ==============================================================================
   APPLICATION PRESENTATION LAYER: CUSTOM STYLESHEET
   Module: style.css
   Theme: Tactical Forest Green & Polished Gold Leaf (High-Contrast Light Canvas)
   Adapted from weather_bet_bot/static/css/style.css for arb_bot
   ============================================================================== */

:root {
    --forest-green: #1b4332;
    --forest-hover: #143225;
    --gold-leaf: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.6);
    --border-gold: rgba(212, 175, 55, 0.4);
    --soft-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
}

/* UNIVERSAL TYPOGRAPHY & BODY DEFAULTS */
body {
    background-color: var(--soft-bg);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==============================================================================
   CORE NAVBAR PARADIGM: FOREST GREEN & GOLD LEAF CONFIGURATION
   ============================================================================== */

.navbar {
    background-color: var(--forest-green) !important;
    border-bottom: 4px solid var(--gold-leaf) !important;
    min-height: 80px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: #ffffff !important;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.navbar-brand span {
    color: var(--gold-leaf) !important;
}

.navbar .nav-link {
    color: var(--gold-leaf) !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    opacity: 0.85;
    transition: all 0.15s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #ffffff !important;
    opacity: 1;
}

@media (min-width: 992px) {
    .nav-pipe-separated .nav-item:not(:last-child) > .nav-link::after {
        content: "|";
        margin-left: 1rem;
        float: right;
        color: var(--border-gold);
        font-weight: 200;
        opacity: 0.7;
    }
}

.status-badge-active {
    background-color: rgba(0, 0, 0, 0.35);
    color: var(--gold-leaf);
    border: 1px solid var(--border-gold);
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ==============================================================================
   TACTILE CARD STRUCTURES
   ============================================================================== */

.matrix-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header-green {
    background-color: var(--forest-green) !important;
    color: #ffffff !important;
    border-bottom: 3px solid var(--gold-leaf) !important;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-header-gold-left {
    background-color: var(--card-bg) !important;
    color: var(--forest-green) !important;
    border-left: 5px solid var(--gold-leaf) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.matrix-card .card-body {
    padding: 1.25rem 1.5rem;
}

/* FAQ-SPECIFIC: question index / anchor list */
.faq-index {
    background-color: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--gold-leaf);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.faq-index ol {
    columns: 2;
    -webkit-columns: 2;
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .faq-index ol { columns: 1; }
}

.faq-index a {
    color: var(--forest-green);
    font-weight: 600;
    text-decoration: none;
}

.faq-index a:hover {
    color: var(--gold-leaf);
    text-decoration: underline;
}

.faq-answer ul {
    margin-bottom: 0.75rem;
}

.faq-answer li {
    margin-bottom: 0.35rem;
}

.faq-chart img {
    max-width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    margin: 0.75rem 0;
}

.faq-open-question {
    background: #fffdf5;
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    padding: 0.85rem 1.1rem;
    font-size: 0.92rem;
}

.faq-stat-badge {
    display: inline-block;
    background: #f1f3f5;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: 4px 10px;
    font-weight: 700;
    color: var(--forest-green);
    font-family: 'Courier New', Courier, monospace;
}

/* Pull-quote-style highlight for a single standout stat -- distinct from the
   muted .faq-open-question caveat box, meant to draw the eye. */
.stat-callout {
    background: var(--gold-glow);
    border: 1px solid var(--gold-leaf);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin: 1.25rem 0;
}

.stat-callout .stat-callout-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--forest-green);
    line-height: 1.1;
}

.stat-callout .stat-callout-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--forest-green);
    opacity: 0.75;
}

.stat-callout .stat-info-icon {
    font-size: 0.85rem;
    opacity: 0.55;
    cursor: help;
    margin-left: 0.35rem;
}

/* Donut ring -- for percentage-shaped stats. Set --pct inline (e.g.
   style="--pct: 65%") to fill a partial ring; defaults to a full circle. */
.stat-donut {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: conic-gradient(var(--gold-leaf) 0% var(--pct, 100%), #e9ecef var(--pct, 100%) 100%);
    flex-shrink: 0;
}

.stat-donut::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--card-bg);
}

.stat-donut-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--forest-green);
    z-index: 1;
}

/* Stopwatch face -- for duration/timing stats. */
.stat-watch {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid var(--forest-green);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-watch::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 8px;
    background: var(--forest-green);
    border-radius: 2px 2px 0 0;
}

.stat-watch-value {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 0.72rem;
    color: var(--forest-green);
    text-align: center;
    line-height: 1.1;
    padding: 0 2px;
}

/* Round icon chip -- for count-shaped stats (paired with a bootstrap-icon). */
.stat-icon-chip {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--gold-leaf);
    background: var(--gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Step grid -- "Steps to Success" style layout: a data callout sits above
   each step, floating free with no surrounding box (unlike .stat-callout). */
.step-col {
    background: var(--gold-glow);
    border-top: 3px solid var(--gold-leaf);
    border-radius: 0 0 8px 8px;
    padding: 1.25rem;
    height: 100%;
    text-align: center;
}

.step-col .stat-watch,
.step-col .step-plain-number {
    margin-left: auto;
    margin-right: auto;
}

/* Solid, high-contrast card for the two Objective hero stats. */
.hero-stat-box {
    background: var(--forest-green);
    border-radius: 8px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    height: 100%;
}

.hero-stat-box .hero-stat-number {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 3rem;
    color: var(--gold-leaf);
    line-height: 1;
}

.hero-stat-box .stat-callout-label {
    color: var(--gold-leaf);
    opacity: 0.9;
}

.hero-stat-box p {
    color: rgba(255, 255, 255, 0.85);
}

.hero-stat-box a {
    color: #ffffff;
    text-decoration: underline;
}

.hero-stat-box .stat-info-icon {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.step-num-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--gold-leaf);
    text-transform: uppercase;
}

.step-plain-number {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 3rem;
    color: var(--forest-green);
    line-height: 1;
}

.step-row {
    border-top: 3px solid var(--gold-leaf);
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.stat-icon-chip i {
    font-size: 1.4rem;
    color: var(--forest-green);
}

/* Small utility classes -- replace one-off inline style="" attributes so
   every page's styling lives in this shared stylesheet, per agent_guide.md. */
.text-forest-green {
    color: var(--forest-green);
}

.best-part-highlight {
    color: var(--forest-green);
    font-size: 1.75rem;
}

.footnote-marker {
    cursor: help;
    color: var(--gold-leaf);
    font-weight: 700;
}

.step-row-first {
    border-top: none;
    margin-top: 1rem;
    padding-top: 0;
}

/* ==============================================================================
   DATA TABLES MATRIX LAYOUT
   ============================================================================== */

.table-matrix {
    width: 100%;
    margin-bottom: 0;
    color: var(--text-dark);
}

.table-matrix thead th {
    background-color: #f1f3f5 !important;
    color: var(--forest-green) !important;
    border-bottom: 2px solid var(--gold-leaf) !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding: 10px 12px;
}

.table-matrix td {
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

/* Opportunity comparison table -- richer color than the plain matrix style:
   forest-green header, zebra striping, gold hover, and a highlighted
   "best result in this row" cell. */
.table-matrix-opportunity thead th {
    background-color: var(--forest-green) !important;
    color: var(--gold-leaf) !important;
    border-bottom: 3px solid var(--gold-leaf) !important;
}

.table-matrix-opportunity thead th:first-child {
    color: #ffffff !important;
}

.table-matrix-opportunity tbody td:first-child {
    font-weight: 700;
    color: var(--forest-green);
}

.table-matrix-opportunity tbody tr:nth-child(even) {
    background-color: rgba(27, 67, 50, 0.04);
}

.table-matrix-opportunity tbody tr:hover {
    background-color: var(--gold-glow);
}

.table-matrix-opportunity td.cell-best {
    background-color: var(--gold-glow);
    color: var(--forest-green);
    font-weight: 700;
    border-radius: 4px;
}

/* Spotlight box -- pulls one Risk Management topic out of the flat h6/p/ul
   flow to read as the standout mitigation rather than one item in a list. */
.risk-spotlight {
    background: var(--gold-glow);
    border: 2px solid var(--gold-leaf);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
}

.risk-spotlight h6 {
    margin-top: 0 !important;
}

.cell-best-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background-color: var(--gold-glow);
    outline: 1px solid var(--border-gold);
    vertical-align: middle;
    margin-right: 4px;
}

/* ==============================================================================
   STICKY FOOTER
   ============================================================================== */

footer {
    margin-top: auto;
    background-color: var(--forest-green);
    border-top: 3px solid var(--gold-leaf);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    padding: 1rem 0;
}
