/*
 * Forex Promo Shortcodes — Frontend Styles
 * Light mode — uses --fdhf-* tokens directly from the ForexDaily header.
 * Update colours in ONE place: the header :root block.
 *
 * Token quick-reference (from header CSS):
 *   --fdhf-ink-3   #FAFAFA   card / panel backgrounds
 *   --fdhf-ink-4   #F0F0F0   subtle fill (hover states)
 *   --fdhf-line    #E2E2E2   borders & dividers
 *   --fdhf-white   #1A1A2E   headings / strong text
 *   --fdhf-cream   #374151   body paragraph text
 *   --fdhf-silver  #6B7280   muted labels & captions
 *   --fdhf-brand   #E8B84B   gold accent
 *   --fdhf-brand-2 #D4991E   darker gold (hover)
 *   --fdhf-brand-dim rgba(232,184,75,.10)  tinted gold fill
 */

/* ── Status / semantic colours — no header equivalent, kept standalone ── */
:root {
    --fps-green:            #1a9e52;
    --fps-red:              #cc3333;
    --fps-blue:             #2563eb;
    --fps-bg-green-subtle:  rgba(46, 160, 100, 0.08);
    --fps-bg-green-border:  rgba(46, 160, 100, 0.25);
    --fps-bg-red-subtle:    rgba(200, 60, 60, 0.07);
    --fps-bg-red-border:    rgba(200, 60, 60, 0.20);
    --fps-bg-blue-subtle:   rgba(37, 99, 235, 0.08);
    --fps-bg-blue-border:   rgba(37, 99, 235, 0.20);
}

/* ── Reset & Base ─────────────────────────────────── */
.fps-section {
    margin-bottom: 22px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    color: var(--fdhf-cream, #374151);
    line-height: 1.7;
}

/* ── Section Label ── */
.fps-sec-label {
    display: block;
    font-size: 1.55em;
    font-weight: 800;
    color: var(--fdhf-white, #1A1A2E);
    letter-spacing: -0.3px;
    line-height: 1.15;
    margin-bottom: 18px;
    padding-bottom: 12px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    position: relative;
}
.fps-sec-label::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0; left: 0;
    width: 44px; height: 2px;
    background: linear-gradient(90deg, var(--fdhf-brand, #E8B84B), var(--fdhf-brand-2, #D4991E) 60%, transparent);
    border-radius: 2px;
}

/* ════════════════════════════════════════════════════
   HEADING SHORTCODE  [fps_heading]
════════════════════════════════════════════════════ */
.fps-heading { margin-bottom: 24px; line-height: 1.2; }
.fps-heading__text {
    color: var(--fdhf-white, #1A1A2E);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.15;
}
.fps-heading h1.fps-heading__text { font-size: 2.2em; }
.fps-heading h2.fps-heading__text { font-size: 1.75em; }
.fps-heading h3.fps-heading__text { font-size: 1.35em; }
.fps-heading h4.fps-heading__text { font-size: 1.1em; }
.fps-heading__sub {
    font-size: 13px;
    color: var(--fdhf-silver, #6B7280);
    margin: 6px 0 0;
    font-weight: 400;
}
.fps-heading--line {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--fdhf-line, #E2E2E2);
    position: relative;
}
.fps-heading--line::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -1px; left: 0;
    width: 48px; height: 2px;
    background: linear-gradient(90deg, var(--fdhf-brand, #E8B84B), var(--fdhf-brand-2, #D4991E));
    border-radius: 2px;
}
.fps-heading--bar {
    padding-left: 16px;
    border-left: 3px solid var(--fdhf-brand-2, #D4991E);
}
.fps-heading--plain { /* intentionally empty */ }

/* ════════════════════════════════════════════════════
   1. ABOUT  [fps_about]
════════════════════════════════════════════════════ */
.fps-intro-box {
    background: var(--fdhf-ink-3, #FAFAFA);
    border: 1px solid var(--fdhf-line, #E2E2E2);
    border-radius: 12px;
    padding: 0px 20px 20px 20px;
}
.fps-intro-box p {
    font-size: 14.5px;
    color: var(--fdhf-cream, #374151);
    line-height: 1.8;
    margin-bottom: 12px;
}
.fps-intro-box p:last-child { margin-bottom: 0; }
.fps-intro-box strong { color: var(--fdhf-white, #1A1A2E); font-weight: 600; }

/* ════════════════════════════════════════════════════
   2. QUICK FACTS  [fps_quick_facts]
════════════════════════════════════════════════════ */
.fps-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}
.fps-ic {
    background: var(--fdhf-ink-3, #FAFAFA);
    border: 1px solid var(--fdhf-line, #E2E2E2);
    border-radius: 10px;
    padding: 13px 15px;
}
.fps-il {
    font-size: 11px;
    color: var(--fdhf-silver, #6B7280);
    margin-bottom: 5px;
    letter-spacing: .4px;
    text-transform: uppercase;
    font-weight: 500;
}
.fps-iv {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--fdhf-white, #1A1A2E);
}

/* ════════════════════════════════════════════════════
   3. CLAIM / CTA  [fps_claim]
════════════════════════════════════════════════════ */
@keyframes fps-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.8); }
}
.fps-cta-block {
    background: var(--fdhf-ink-3, #FAFAFA);
    border: 1px solid var(--fps-bg-green-border);
    border-radius: 12px;
    padding: 22px 22px 18px;
    text-align: center;
}
.fps-cta-avail {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--fps-bg-green-subtle);
    border: 1px solid var(--fps-bg-green-border);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 11px;
    color: var(--fps-green);
    font-weight: 600;
    letter-spacing: .8px;
    margin-bottom: 16px;
}
.fps-cta-avail-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--fps-green);
    animation: fps-pulse 1.6s ease-in-out infinite;
    display: inline-block;
    flex-shrink: 0;
}
.fps-cta-main {
    display: block;
    width: unset;
    background: var(--fdhf-brand, #E8B84B);
    color: #FFFFFF;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background .15s, transform .1s;
    border: none;
}
.fps-cta-main:hover {
    background: var(--fdhf-brand-2, #D4991E);
    color: #FFFFFF;
    transform: translateY(-1px);
}
.fps-cta-demo {
    display: block;
    width: unset;
    background: transparent;
    color: var(--fdhf-cream, #374151);
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--fdhf-line, #E2E2E2);
    transition: border-color .15s, color .15s;
}
.fps-cta-demo:hover {
    border-color: var(--fdhf-silver, #6B7280);
    color: var(--fdhf-white, #1A1A2E);
}
.fps-cta-note {
    font-size: 11px;
    color: var(--fdhf-silver, #6B7280);
    margin-top: 14px;
    line-height: 1.6;
}

/* ── Expiry / Countdown Bar ── */
.fps-expiry-bar {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--fdhf-silver, #6B7280);
    background: rgba(0,0,0,.03);
    border: 1px solid var(--fdhf-line, #E2E2E2);
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 12px;
    line-height: 1;
    flex-wrap: wrap;
    justify-content: center;
}
.fps-expiry-bar--expired {
    color: var(--fps-red);
    background: var(--fps-bg-red-subtle);
    border-color: var(--fps-bg-red-border);
}
.fps-expiry-icon { font-size: 11px; flex-shrink: 0; }
.fps-expiry-until { font-weight: 500; color: var(--fdhf-cream, #374151); }
.fps-expiry-bar--expired .fps-expiry-text { font-weight: 600; }
.fps-expiry-sep { opacity: .4; font-size: 10px; }
.fps-expiry-countdown {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-variant-numeric: tabular-nums;
}
.fps-cd-seg {
    font-weight: 700;
    font-size: 12px;
    color: var(--fdhf-brand, #E8B84B);
    min-width: 18px;
    text-align: right;
}
.fps-cd-u  { font-size: 9px;  color: var(--fdhf-silver, #6B7280); margin-right: 4px; }
.fps-cd-suffix { font-size: 10px; color: var(--fdhf-silver, #6B7280); margin-left: 2px; }

/* Disabled CTA when expired */
.fps-cta-main--disabled {
    display: block;
    background: var(--fdhf-line, #E2E2E2);
    color: var(--fdhf-silver, #6B7280);
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    cursor: not-allowed;
    opacity: .55;
    border: 1px dashed var(--fdhf-silver, #6B7280);
}

/* ════════════════════════════════════════════════════
   4. PROS & CONS  [fps_pros_cons]
════════════════════════════════════════════════════ */
.fps-pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fps-pros-box {
    background: var(--fps-bg-green-subtle);
    border: 1px solid var(--fps-bg-green-border);
    border-radius: 10px;
    padding: 14px 16px;
}
.fps-cons-box {
    background: var(--fps-bg-red-subtle);
    border: 1px solid var(--fps-bg-red-border);
    border-radius: 10px;
    padding: 14px 16px;
}
.fps-pt { font-size: 10px; color: var(--fps-green); font-weight: 700; letter-spacing: 1.2px; margin-bottom: 12px; text-transform: uppercase; }
.fps-ct { font-size: 10px; color: var(--fps-red);   font-weight: 700; letter-spacing: 1.2px; margin-bottom: 12px; text-transform: uppercase; }
.fps-ci {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 13.5px;
    color: var(--fdhf-cream, #374151);
    margin-bottom: 9px;
    line-height: 1.5;
}
.fps-ci:last-child { margin-bottom: 0; }
.fps-ck { color: var(--fps-green); flex-shrink: 0; margin-top: 1px; font-weight: 700; }
.fps-cx { color: var(--fps-red);   flex-shrink: 0; margin-top: 1px; font-weight: 700; }

/* ════════════════════════════════════════════════════
   5. HOW TO CLAIM  [fps_how_to_claim]
════════════════════════════════════════════════════ */
.fps-steps-box {
    background: var(--fdhf-ink-3, #FAFAFA);
    border: 1px solid var(--fdhf-line, #E2E2E2);
    border-radius: 12px;
    padding: 18px 20px;
}
.fps-srow { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.fps-srow:last-child { margin-bottom: 0; }
.fps-snum {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--fps-bg-blue-subtle);
    border: 1px solid var(--fps-bg-blue-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    color: var(--fps-blue);
    flex-shrink: 0;
    margin-top: 2px;
}
.fps-stxt { font-size: 14px; color: var(--fdhf-cream, #374151); line-height: 1.6; padding-top: 3px; }
.fps-stxt strong { color: var(--fdhf-white, #1A1A2E); font-weight: 600; }

/* ════════════════════════════════════════════════════
   6. WHAT IS THE BONUS  [fps_what_is]
════════════════════════════════════════════════════ */
.fps-bonus-detail-box {
    background: var(--fdhf-ink-3, #FAFAFA);
    border: 1px solid var(--fdhf-line, #E2E2E2);
    border-radius: 12px;
    padding: 18px 20px;
}
.fps-bd-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--fdhf-line, #E2E2E2);
    align-items: flex-start;
}
.fps-bd-item:first-child { padding-top: 0; }
.fps-bd-item:last-child  { border-bottom: none; padding-bottom: 0; }
.fps-bd-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--fps-bg-blue-subtle);
    border: 1px solid var(--fps-bg-blue-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
}
.fps-bd-txt h4 { font-size: 14px; font-weight: 600; color: var(--fdhf-white, #1A1A2E); margin: 0 0 5px; }
.fps-bd-txt p  { font-size: 13.5px; color: var(--fdhf-cream, #374151); line-height: 1.7; margin: 0; }

/* ════════════════════════════════════════════════════
   7. WHY CONSIDER  [fps_why_consider]
════════════════════════════════════════════════════ */
.fps-why-box {
    background: var(--fdhf-ink-3, #FAFAFA);
    border: 1px solid var(--fdhf-line, #E2E2E2);
    border-radius: 12px;
    padding: 18px 20px;
}
.fps-why-item {
    display: flex;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--fdhf-line, #E2E2E2);
    align-items: flex-start;
}
.fps-why-item:first-child { padding-top: 0; }
.fps-why-item:last-child  { border-bottom: none; padding-bottom: 0; }
.fps-why-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--fdhf-brand, #E8B84B);
    width: 22px;
    flex-shrink: 0;
    padding-top: 3px;
    letter-spacing: .5px;
}
.fps-why-txt { font-size: 14px; color: var(--fdhf-cream, #374151); line-height: 1.6; }
.fps-why-txt strong { color: var(--fdhf-white, #1A1A2E); font-weight: 600; }

/* ════════════════════════════════════════════════════
   8. TERMS  [fps_terms]
════════════════════════════════════════════════════ */
.fps-terms-box {
    background: var(--fdhf-ink-3, #FAFAFA);
    border-left: 3px solid var(--fdhf-brand, #E8B84B);
    border-radius: 0 10px 10px 0;
    padding: 18px 20px;
}
.fps-ti {
    font-size: 14px;
    color: var(--fdhf-cream, #374151);
    margin-bottom: 9px;
    display: flex;
    gap: 11px;
    align-items: flex-start;
    line-height: 1.6;
}
.fps-ti:last-child { margin-bottom: 0; }
.fps-td-dot { color: var(--fdhf-brand, #E8B84B); flex-shrink: 0; margin-top: 6px; font-size: 7px; }

/* ════════════════════════════════════════════════════
   9. BROKER AT A GLANCE  [fps_broker_glance]
════════════════════════════════════════════════════ */
.fps-glance-box {
    background: var(--fdhf-ink-3, #FAFAFA);
    border: 1px solid var(--fdhf-line, #E2E2E2);
    border-radius: 12px;
    padding: 18px 20px;
    overflow-x: auto;
}
.fps-glance-table { width: 100%; border-collapse: collapse; }
.fps-glance-table td {
    padding: 10px 6px;
    border-bottom: 1px solid var(--fdhf-line, #E2E2E2);
    font-size: 13.5px;
    vertical-align: middle;
    color: var(--fdhf-cream, #374151);
}
.fps-glance-table tr:last-child td { border-bottom: none; }
.fps-glance-table td:first-child { color: var(--fdhf-silver, #6B7280); width: 42%; font-size: 14px; }
.fps-glance-table td.good    { color: var(--fps-green); font-weight: 600; }
.fps-glance-table td.bad     { color: var(--fps-red);   font-weight: 600; }
.fps-glance-table td.neutral { color: var(--fdhf-white, #1A1A2E); font-weight: 500; }
.fps-link { color: var(--fps-blue); text-decoration: none; font-size: 13px; font-weight: 500; }
.fps-link:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════
   10. RISK NOTICE  [fps_risk_notice]
════════════════════════════════════════════════════ */
.fps-disclaimer {
    font-size: 11.5px;
    color: var(--fdhf-silver, #6B7280);
    line-height: 1.7;
    padding: 18px 0 0;
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .fps-pc-grid { grid-template-columns: 1fr; }
    .fps-info-grid { grid-template-columns: repeat(2, 1fr); }
    .fps-heading h1.fps-heading__text { font-size: 1.75em; }
    .fps-heading h2.fps-heading__text { font-size: 1.4em; }
    .fps-sec-label { font-size: 1.3em; }
}

/* ════════════════════════════════════════════════════
   12. TABLE OF CONTENTS  [fps_toc]
════════════════════════════════════════════════════ */
.fps-toc {
    background: var(--fdhf-ink-3, #FAFAFA);
    border: 1px solid var(--fdhf-line, #E2E2E2);
    border-radius: 12px;
    margin-bottom: 22px;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.fps-toc-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 14px 18px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.fps-toc-toggle:hover { background: var(--fdhf-ink-4, rgba(232,184,75,.10)); }
.fps-toc-toggle-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--fdhf-white, #1A1A2E);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex: 1;
    text-align: left;
}
.fps-toc-icon { width: 15px; height: 15px; flex-shrink: 0; color: var(--fdhf-brand, #E8B84B); }
.fps-toc-count { font-size: 11px; color: var(--fdhf-silver, #6B7280); font-weight: 500; white-space: nowrap; }
.fps-toc-chevron {
    width: 16px; height: 16px;
    flex-shrink: 0;
    color: var(--fdhf-silver, #6B7280);
    transition: transform 0.25s ease;
}
.fps-toc-toggle[aria-expanded="true"] .fps-toc-chevron { transform: rotate(180deg); }
.fps-toc-toggle[aria-expanded="true"] .fps-toc-toggle-left { color: var(--fdhf-brand-2, #D4991E); }
.fps-toc-list {
    border-top: 1px solid var(--fdhf-line, #E2E2E2);
    padding: 14px 18px 16px;
    list-style: none;
}
.fps-toc-list[hidden] { display: none; }
.fps-toc-ol { list-style: none; margin: 0; padding: 0; counter-reset: fps-toc-counter; }
.fps-toc-li { counter-increment: fps-toc-counter; padding: 3px 0; }
.fps-toc-a {
    display: flex;
    align-items: baseline;
    gap: 9px;
    font-size: 13.5px;
    color: var(--fdhf-cream, #374151);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.15s;
    padding: 2px 0;
}
.fps-toc-a::before {
    content: counter(fps-toc-counter) ".";
    font-size: 11px;
    font-weight: 700;
    color: var(--fdhf-brand, #E8B84B);
    min-width: 18px;
    flex-shrink: 0;
}
.fps-toc-a:hover { color: var(--fdhf-brand-2, #D4991E); }
.fps-toc-a.fps-toc-active { color: var(--fdhf-brand-2, #D4991E); font-weight: 600; }
.fps-toc-li--has-sub > .fps-toc-a { font-weight: 400; color: var(--fdhf-white, #1A1A2E); }
.fps-toc-sub {
    list-style: none;
    margin: 4px 0 4px 26px;
    padding: 0 0 0 12px;
    border-left: 2px solid var(--fdhf-line, #E2E2E2);
}
.fps-toc-sub-li { padding: 2px 0; }
.fps-toc-sub-a {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 12.5px;
    color: var(--fdhf-silver, #6B7280);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.15s;
    padding: 1px 0;
}
.fps-toc-sub-a::before { content: '—'; font-size: 10px; color: var(--fdhf-line, #E2E2E2); flex-shrink: 0; }
.fps-toc-sub-a:hover { color: var(--fdhf-brand-2, #D4991E); }
.fps-toc-sub-a.fps-toc-active { color: var(--fdhf-brand, #E8B84B); }
.fps-toc-a.fps-toc-active::before { color: var(--fdhf-brand-2, #D4991E); }

@media (max-width: 640px) {
    .fps-toc-toggle { padding: 12px 14px; }
    .fps-toc-list   { padding: 12px 14px 14px; }
    .fps-toc-sub    { margin-left: 18px; }
}
