/* FIV Chart Dark Theme - matches fireinvesting.net app */

/* ── Force full black background on FIV page - kill ALL white space ── */
body.page-id-600,
body.page-id-600 .site,
body.page-id-600 #page,
body.page-id-600 .site-content,
body.page-id-600 #content,
body.page-id-600 .content-area,
body.page-id-600 #primary,
body.page-id-600 .site-main,
body.page-id-600 main,
body.page-id-600 article,
body.page-id-600 .entry-content,
body.page-id-600 .ast-container,
body.page-id-600 .container,
body.page-id-600 .elementor-section-wrap,
body.page-id-600 .wp-block-group {
    background: #000 !important;
    color: #dde8e0 !important;
    box-shadow: none !important;
    border: none !important;
}

/* Remove padding that creates white gaps */
body.page-id-600 #primary,
body.page-id-600 .site-main,
body.page-id-600 main,
body.page-id-600 article,
body.page-id-600 .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

body.page-id-600 .entry-title { color: #fff !important; }

/* ── FIV Wrap ── */
.fiv-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    background: #0E1510;
    color: #dde8e0;
    border-radius: 0;
    overflow: hidden;
    border: none !important;
    box-shadow: none !important;
}

/* ── Header ── */
.fiv-header {
    background: #000;
    padding: 28px 32px 20px;
    border-bottom: 1px solid rgba(27,174,112,0.20);
}

/* ── Title - FORCE white color, override Astra ── */
.fiv-title,
.fiv-title *,
body.page-id-600 .fiv-title,
body.page-id-600 h2.fiv-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fiv-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(27,174,112,0.18);
    border: 1px solid rgba(27,174,112,0.40);
    color: #1BAE70;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}

.fiv-title-badge::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1BAE70;
    box-shadow: 0 0 6px #1BAE70;
    animation: fiv-pulse 1.8s ease-in-out infinite;
}

@keyframes fiv-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.75); }
}

.fiv-disclaimer {
    font-size: 0.76rem;
    color: rgba(221,232,224,0.55);
    margin: 0;
    line-height: 1.6;
}
.fiv-disclaimer strong { color: rgba(221,232,224,0.85); }

/* ── Table ── */
.fiv-table-scroll { overflow-x: auto; }

.fiv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 500px;
    background: #0E1510;
}

.fiv-table thead {
    background: #071109;
}
.fiv-table thead th {
    padding: 12px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #1BAE70;
    white-space: nowrap;
    border-bottom: 1px solid rgba(27,174,112,0.20);
}

.fiv-table tbody tr {
    border-bottom: 1px solid rgba(27,174,112,0.08);
    transition: background 0.12s ease;
}
.fiv-table tbody tr:nth-child(even) { background: rgba(27,174,112,0.04); }
.fiv-table tbody tr:last-child { border-bottom: none; }
.fiv-table tbody tr:hover { background: rgba(27,174,112,0.10) !important; }

.fiv-table tbody td {
    padding: 12px 20px;
    vertical-align: middle;
    color: #dde8e0;
}

/* ── Over-float alert row ── */
.fiv-row--alert { background: rgba(224,0,77,0.06) !important; }
.fiv-row--alert:hover { background: rgba(224,0,77,0.12) !important; }

/* ── Column styles ── */
.fiv-col-rank { width: 44px; color: #39D87A; font-weight: 800; text-align: center; font-size: 1rem; }
.fiv-col-sym  { width: 120px; }
.fiv-col-qty,
.fiv-col-float { font-variant-numeric: tabular-nums; color: #c0d0c8; }
.fiv-col-pct   { width: 200px; }
.fiv-col-updated { white-space: nowrap; color: #5a7065; font-size: 0.76rem; }

/* ── Ticker chip ── */
.fiv-ticker {
    display: inline-block;
    background: rgba(27,174,112,0.12);
    color: #39D87A;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.84rem;
    letter-spacing: 0.06em;
    border: 1px solid rgba(27,174,112,0.28);
}

/* ── FIV % badge ── */
.fiv-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.83rem;
}
.fiv-badge--ok   { background: rgba(27,174,112,0.16); color: #39D87A; border: 1px solid rgba(27,174,112,0.30); }
.fiv-badge--over { background: rgba(224,0,77,0.16);   color: #FF3366; border: 1px solid rgba(224,0,77,0.30); }

/* ── Meter bar ── */
.fiv-meter {
    width: 100%;
    max-width: 140px;
    height: 6px;
    background: rgba(255,255,255,0.07);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}
.fiv-meter-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #1BAE70, #39D87A);
    box-shadow: 0 0 6px rgba(57,216,122,0.50);
    min-width: 2px;
    transition: width 0.6s ease;
}
.fiv-meter-fill--over {
    background: linear-gradient(90deg, #8B0035, #E0004D);
    box-shadow: 0 0 6px rgba(224,0,77,0.50);
}

/* ── N/A & flag ── */
.fiv-na   { color: #3a4f44; font-style: italic; font-size: 0.82rem; }
.fiv-flag { font-size: 0.9rem; vertical-align: middle; margin-left: 2px; }

/* ── Footer ── */
.fiv-footer {
    text-align: center;
    font-size: 0.74rem;
    color: #3a5044;
    padding: 14px 20px;
    border-top: 1px solid rgba(27,174,112,0.12);
    background: #071109;
}
.fiv-footer a { color: #1BAE70; text-decoration: none; font-weight: 600; }
.fiv-footer a:hover { color: #39D87A; }

/* ── Error state ── */
.fiv-error {
    color: #FF3366;
    background: rgba(224,0,77,0.12);
    border: 1px solid rgba(224,0,77,0.25);
    padding: 14px 20px;
    border-radius: 8px;
    margin: 16px 0;
}

/* ── Mobile ── */
@media (max-width: 620px) {
    .fiv-header { padding: 18px 16px 14px; }
    .fiv-title  { font-size: 1.1rem !important; }
    .fiv-table thead th,
    .fiv-table tbody td { padding: 10px 12px; }
    .fiv-col-updated { display: none; }
    .fiv-meter { max-width: 100px; }
}


/* ══════════════════════════════════════════════════
   FIV Page — Header & Footer Dark Override
   Aaron's request: footer black bg, white text
   ══════════════════════════════════════════════════ */

/* ── Site Header: force black background on FIV page ── */
body.page-id-600 .site-header,
body.page-id-600 #masthead,
body.page-id-600 .ast-primary-header-bar,
body.page-id-600 .ast-above-header,
body.page-id-600 .ast-below-header,
body.page-id-600 .main-header-bar {
    background: #000 !important;
    border-bottom: 1px solid rgba(27,174,112,0.20) !important;
    box-shadow: none !important;
}

/* Header nav links white */
body.page-id-600 .main-header-bar .menu-item a,
body.page-id-600 .main-navigation a,
body.page-id-600 .ast-main-navigation a {
    color: #fff !important;
}
body.page-id-600 .main-navigation a:hover,
body.page-id-600 .ast-main-navigation a:hover {
    color: #1BAE70 !important;
}

/* ── Site Footer: black background, white text ── */
body.page-id-600 .site-footer,
body.page-id-600 #colophon,
body.page-id-600 .footer-widget-area,
body.page-id-600 .ast-footer-above,
body.page-id-600 .ast-footer-below,
body.page-id-600 .ast-small-footer,
body.page-id-600 .ast-footer-overlay,
body.page-id-600 footer {
    background: #000 !important;
    background-color: #000 !important;
    color: #fff !important;
    border-top: 1px solid rgba(27,174,112,0.20) !important;
}

/* Footer text & links */
body.page-id-600 .site-footer *,
body.page-id-600 #colophon *,
body.page-id-600 .ast-small-footer * {
    color: #fff !important;
}
body.page-id-600 .site-footer a,
body.page-id-600 #colophon a,
body.page-id-600 .ast-small-footer a {
    color: #1BAE70 !important;
}
body.page-id-600 .site-footer a:hover,
body.page-id-600 #colophon a:hover {
    color: #39D87A !important;
}

/* Footer widget headings */
body.page-id-600 .footer-widget-area .widget-title,
body.page-id-600 .footer-widget-area h1,
body.page-id-600 .footer-widget-area h2,
body.page-id-600 .footer-widget-area h3 {
    color: #fff !important;
}

/* ── Download App button in header ── */
body.page-id-600 .ast-header-button .ast-custom-button,
body.page-id-600 .menu-item.ast-header-button a {
    background: #1BAE70 !important;
    color: #fff !important;
    border-radius: 6px !important;
}
body.page-id-600 .menu-item.ast-header-button a:hover {
    background: #39D87A !important;
}

/* ── Below-footer strip (subscribe bar / bottom bar) — force black ── */
body.page-id-600 .site-below-footer-wrap,
body.page-id-600 .ast-builder-grid-row-container,
body.page-id-600 .ast-builder-footer-grid-columns,
body.page-id-600 .ast-builder-grid-row-container-inner,
body.page-id-600 .ast-above-footer-wrap,
body.page-id-600 [class*="footer"] {
    background: #000 !important;
    background-color: #000 !important;
    color: #fff !important;
}

/* Email subscribe input styling */
body.page-id-600 .site-below-footer-wrap input[type="email"],
body.page-id-600 .site-below-footer-wrap input[type="text"] {
    background: #111 !important;
    color: #fff !important;
    border: 1px solid rgba(27,174,112,0.40) !important;
}
