/* ============================================================================
   feed-scroll.css  —  💡 The Content Feed (content-idea picker) styling (.fed-*)
   A smartphone doom-scrolls a "For You" feed and lands one idea card.
   Self-contained. Dark phone, light screen, violet accent.
   ⚠️ .fed-card height (86) and .fed-hl top (100) MUST match CARD_H / WIN_TOP in
   feed-scroll-engine.js.
   ============================================================================ */
.fed-stage { position: relative; }

/* mode chips */
.fed-modes-wrap { text-align: center; }
.fed-modes-lbl { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--theme-muted, #6b7280); margin: 0 0 8px; }
.fed-modes { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 0 auto 16px; }
.fed-mode { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13.5px; font-weight: 650; padding: 7px 13px; border-radius: 11px;
    background: var(--theme-surface, #fff); color: var(--theme-text, #1a1a2e); border: 1.5px solid var(--theme-border, #dfe4ee);
    transition: transform .12s ease, border-color .15s, background .15s, box-shadow .15s; }
.fed-mode .fed-mode-e { font-size: 15px; line-height: 1; }
.fed-mode:hover { transform: translateY(-2px); border-color: var(--fed-accent, #7c3aed); }
.fed-mode.is-on { background: var(--fed-accent, #7c3aed); border-color: var(--fed-accent, #7c3aed); color: #fff; box-shadow: 0 7px 18px -6px var(--fed-accent, #7c3aed); }
.fed-mode:focus-visible { outline: 3px solid color-mix(in srgb, var(--fed-accent, #7c3aed) 55%, transparent); outline-offset: 2px; }

/* the phone */
.fed-phone { position: relative; width: 266px; margin: 0 auto; border-radius: 34px; background: linear-gradient(160deg, #20222f, #14151f); padding: 12px;
    box-shadow: 0 20px 40px -14px rgba(30,16,70,.5), inset 0 0 0 2px rgba(255,255,255,.06); }
.fed-cam { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 10px; height: 10px; border-radius: 50%; background: #05060a; box-shadow: inset 0 0 0 1.5px #2b2d3c, 0 0 0 1px rgba(255,255,255,.05); z-index: 6; }
.fed-cam::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 3px; height: 3px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a4a6a, #101425); }
.fed-screen { position: relative; background: var(--fed-screen, #fbfaff); border-radius: 24px; overflow: hidden; height: 330px; }
.fed-fhead { display: flex; align-items: center; justify-content: center; gap: 7px; height: 46px; padding-top: 15px; font-weight: 800; font-size: 14px; color: var(--fed-screen-ink, #1c1830); border-bottom: 1px solid var(--fed-screenline, #eceaf6); position: relative; z-index: 4; background: var(--fed-screen, #fbfaff); }
.fed-fhead .fed-hdot { width: 7px; height: 7px; border-radius: 50%; background: var(--fed-accent, #7c3aed); flex: none; }
.fed-fwindow { position: relative; height: 284px; overflow: hidden; }
.fed-strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.fed-card { height: 86px; padding: 12px; display: flex; gap: 11px; align-items: center; border-bottom: 1px solid var(--fed-screenline, #eceaf6); text-align: left; }
.fed-av { width: 44px; height: 44px; flex: none; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 21px; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.fed-av.fed-av-icon { background: #fff !important; box-shadow: inset 0 0 0 1px rgba(20,10,40,.08); }
.fed-av img { width: 60%; height: 60%; object-fit: contain; display: block; }
.fed-bd { min-width: 0; }
.fed-tx { font-size: 14.5px; font-weight: 700; line-height: 1.2; color: var(--fed-screen-ink, #1c1830); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fed-emoji { font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; }
.fed-hl { position: absolute; left: 8px; right: 8px; top: 100px; height: 86px; border-radius: 14px; border: 2px solid transparent; pointer-events: none; z-index: 3; transition: border-color .25s, box-shadow .25s; }
.fed-phone.fed-landed .fed-hl { border-color: var(--fed-accent, #7c3aed); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fed-accent, #7c3aed) 22%, transparent), 0 10px 26px -10px var(--fed-accent, #7c3aed); }
.fed-card.fed-win .fed-tx { color: var(--fed-accent2, #6d28d9); }

.fed-status { min-height: 20px; color: var(--theme-muted, #67617e); font-size: 13.5px; font-weight: 600; margin-top: 14px; text-align: center; }
.fed-status b { color: var(--theme-text, #1c1830); }

/* button + effects */
.fed-pickbtn-wrap { text-align: center; }
.fed-pickbtn-main { display: inline-flex; align-items: center; gap: 8px; margin: 14px auto 0; font-size: 15px; font-weight: 800; color: #fff;
    padding: 13px 34px; border-radius: 14px; border: 0; cursor: pointer; letter-spacing: .3px;
    background: linear-gradient(135deg, var(--fed-grad-a, #8b5cf6), var(--fed-grad-b, #6d28d9));
    box-shadow: 0 12px 24px -8px var(--fed-accent, #7c3aed), inset 0 1px 0 rgba(255,255,255,.22); transition: transform .12s ease, filter .15s; }
.fed-pickbtn-main:hover { transform: translateY(-2px); filter: brightness(1.05); }
.fed-pickbtn-main:disabled, .fed-pickbtn-main.is-busy { opacity: .6; cursor: default; transform: none; filter: grayscale(.2); }

.fed-effects { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 13px; color: var(--theme-text, #1a1a2e); justify-content: center; }
.fed-effects label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.fed-items-ta { width: 100%; min-height: 220px; font-family: monospace; font-size: .9rem; line-height: 1.55; border-radius: 10px; border: 1px solid var(--theme-border, #d7dbe0); background: var(--theme-bg, #fff); color: var(--theme-text, #1a1a2e); padding: 10px 12px; resize: vertical; }
.fed-items-ta:focus { outline: 2px solid var(--fed-accent, #7c3aed); outline-offset: 1px; border-color: transparent; }

.page-fed-scope {
    --wsp-result-accent: var(--fed-accent, #7c3aed);
    --wsp-result-grad: linear-gradient(135deg, var(--fed-grad-a, #8b5cf6), var(--fed-grad-b, #6d28d9));
    --wsp-result-plate: color-mix(in srgb, var(--fed-accent, #7c3aed) 13%, #fff);
}

/* ── SEO content (.fed-content) — type scale from .content-guide; colour only ── */
.fed-content { color: var(--theme-text, #1a1a2e); background: var(--theme-bg, #fff); padding: 3.25rem 0 3.5rem; margin-top: 1rem; border-top: 1px solid var(--theme-border, #e9ecef); }
.fed-inner { max-width: 860px; margin: 0 auto; padding: 0 1rem; }
.fed-content h2, .fed-content h3 { color: var(--theme-text, #1a1a2e); }
.fed-content p, .fed-content li { color: var(--theme-muted, #5b6470); }
.fed-content strong { color: var(--theme-text, #1a1a2e); }
.fed-content a { color: #6d28d9; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.fed-kicker-chip { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #8b5cf6, #6d28d9); border-radius: 999px; padding: .3rem .85rem; margin-bottom: .95rem; }
.fed-content .fed-lead { font-size: 1.2rem; line-height: 1.7; color: var(--theme-text, #1a1a2e); margin-bottom: 1.25rem; }
.fed-section { margin-top: 2.9rem; }
.fed-content .table { font-size: 1rem; }
.fed-content .table thead th { text-transform: uppercase; letter-spacing: .05em; font-size: .74rem; font-weight: 800; color: #fff; background: #6d28d9; padding: .7rem 1rem; }
.fed-content .table tbody td { padding: .6rem 1rem; border-bottom: 1px solid var(--theme-border, #e9ecef); vertical-align: top; }
.fed-content .table tbody td:first-child { font-weight: 700; color: var(--theme-text, #1a1a2e); white-space: nowrap; }
.fed-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.fed-pair-card { background: var(--theme-surface, #f8f9fa); border: 1px solid var(--theme-border, #e9ecef); border-radius: 12px; padding: 1rem 1.1rem; border-top: 3px solid #8b5cf6; }
.fed-pair-card h3 { margin-top: 0 !important; font-size: 1.02rem !important; } .fed-pair-card p:last-child { margin-bottom: 0; font-size: .92rem; }
.fed-faq { margin-top: 1.4rem; }
.fed-faq .accordion-item { background: transparent; border: 0; border-bottom: 1px solid var(--theme-border, #e9ecef); }
.fed-faq .accordion-button { background: transparent; color: var(--theme-text, #1a1a2e); font-weight: 600; padding-left: 0; padding-right: 2.5rem; box-shadow: none; }
.fed-faq .accordion-button:not(.collapsed) { color: #6d28d9; background: transparent; }
.fed-faq .accordion-button:focus { box-shadow: none; }
.fed-faq .accordion-body { padding-left: 0; color: var(--theme-muted, #5b6470); }
@media (max-width: 767.98px) { .fed-pair { grid-template-columns: 1fr; } }
body[data-theme="high-contrast"] .fed-content p, body[data-theme="high-contrast"] .fed-content li, body[data-theme="high-contrast"] .fed-content .fed-lead { color: rgba(255,255,255,.84); }
body[data-theme="high-contrast"] .fed-content h2, body[data-theme="high-contrast"] .fed-content h3 { color: #fff; }
