/* ============================================================
   BANXNO Predict — shared stylesheet
   Oswald font loaded via layout.pug <link>
   ============================================================ */

/* === Body ================================================== */
body {
    background: #f1f5f9;
}

/* === Navbar ================================================= */
.pb-nav {
    background-color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.brand-ban { color: #fb923c; font-weight: 800; font-size: 1.2rem; }
.brand-xno { color: #38bdf8; font-weight: 800; font-size: 1.2rem; }
.pb-nav .nav-link { color: #94a3b8 !important; }
.pb-nav .nav-link:hover { color: #e2e8f0 !important; }

/* === Page Hero ============================================= */
.predict-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #312e81 100%);
    padding: 3rem 1rem 2.5rem;
    color: white;
    text-align: center;
}
.predict-hero .hero-title {
    font-family: 'Oswald', system-ui, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    line-height: 1.1;
}
.predict-hero .hero-subtitle {
    color: #a5b4fc;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Page-level heading (non-hero pages) */
.page-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
}
.page-heading .brand-ban,
.page-heading .brand-xno { font-size: inherit; }

/* === Section Cards ========================================= */
.section-card {
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.section-card > .card-header {
    background: #1e293b;
    color: #f1f5f9;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-bottom: none;
}

/* === Tables ================================================ */
.predict-table th {
    background: #334155;
    color: #e2e8f0;
    font-weight: 600;
    border-color: #475569 !important;
    white-space: nowrap;
}
.predict-table td {
    vertical-align: middle;
    border-color: #e2e8f0 !important;
}
.predict-table tbody tr:hover {
    background: #f8fafc;
}
.predict-table tr.highlight > td {
    background: #fef9c3 !important;
}

/* === Category / Prediction Lists =========================== */
.category-list .list-group-item {
    border-color: #e2e8f0;
    color: #1e293b;
    font-weight: 500;
    transition: background 0.12s, color 0.12s;
}
.category-list .list-group-item:hover {
    background: #eff6ff;
    color: #1d4ed8;
    text-decoration: none;
}
.prediction-list-item {
    border-color: #e2e8f0;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.12s;
}
.prediction-list-item:hover {
    background: #f8fafc;
    text-decoration: none;
    color: #1e293b;
}

/* === Prediction Detail ===================================== */
.prediction-detail-card {
    border: none;
    border-left: 4px solid #6366f1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.prediction-detail-card.status-yes    { border-left-color: #16a34a; }
.prediction-detail-card.status-no     { border-left-color: #dc2626; }
.prediction-detail-card.status-cancelled { border-left-color: #94a3b8; }

/* === Status Badges ========================================= */
.badge-undecided { background: #64748b; color: white; font-size: 0.78rem; }
.badge-yes       { background: #16a34a; color: white; font-size: 0.78rem; }
.badge-no        { background: #dc2626; color: white; font-size: 0.78rem; }
.badge-cancelled { background: #94a3b8; color: white; font-size: 0.78rem; }
.badge-pending   { background: #64748b; color: white; font-size: 0.78rem; }
.badge-approved  { background: #16a34a; color: white; font-size: 0.78rem; }
.badge-rejected  { background: #dc2626; color: white; font-size: 0.78rem; }

/* === Forms ================================================= */
.predict-form .form-group > label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}
.predict-form .form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.2rem rgba(99,102,241,0.25);
}
.predict-form .form-text {
    font-size: 0.8rem;
    color: #64748b;
}

/* === Misc ================================================== */
.deadline-passed {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.85rem;
}
.balance-display {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    color: #1e293b;
    display: inline-block;
    margin-bottom: 0.75rem;
}
.order-note {
    background: #fff7ed;
    border-left: 3px solid #f59e0b;
    padding: 0.5rem 0.75rem;
    border-radius: 0 4px 4px 0;
    font-size: 0.85rem;
    color: #92400e;
    margin-bottom: 1rem;
}
