/* ═══════════════ FORTUNE TOOL — DESIGN SYSTEM ═══════════════ */
:root {
    --f-gold: #f5c842;
    --f-gold-dim: #c9a227;
    --f-blue: #4a9eff;
    --f-blue-dim: #1a5fa8;
    --f-red: #ff6b6b;
    --f-green: #5cdb95;
    --f-bg: #0a0d1a;
    --f-bg2: #0f1529;
    --f-glass: rgba(255, 255, 255, 0.05);
    --f-border: rgba(255, 255, 255, 0.08);
    --f-text: #e2e8f0;
    --f-muted: #8494a7; /* 6.24:1 on #0a0d1a — AA (was #64748b = 4.07:1 FAIL) */
    --f-radius: 16px;
}

/* Page reset for this template */
.site-content {
    padding: 0 !important;
}

.entry-content {
    max-width: none !important;
    padding: 0 !important;
}

.page-template-page-fortune .site-header {
    background: rgba(10, 13, 26, 0.95) !important;
    border-bottom: 1px solid var(--f-border);
}

/* ── HERO ── */
.ft-hero {
    background: linear-gradient(135deg, #0a0d1a 0%, #0d1535 40%, #0a1628 70%, #0a0d1a 100%);
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 80px 24px 60px;
}

.ft-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245, 200, 66, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(74, 158, 255, 0.06) 0%, transparent 60%);
}

.ft-hero-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 15% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 35% 60%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 55% 15%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 72% 45%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 88% 25%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 65% 72%, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
}

.ft-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    background: linear-gradient(135deg, #f5c842, #ffeaa7, #f5c842);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 16px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.ft-hero p {
    font-size: 1.1rem;
    color: #b0bec5; /* 10.15:1 on #0a0d1a — AAA (was #94a3b8) */
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.ft-badge {
    display: inline-block;
    background: linear-gradient(90deg, rgba(245, 200, 66, 0.15), rgba(245, 200, 66, 0.08));
    border: 1px solid rgba(245, 200, 66, 0.3);
    color: var(--f-gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* ── MAIN WRAPPER ── */
.ft-wrap {
    background: var(--f-bg);
    padding-bottom: 80px;
    min-height: 100vh;
}

/* ── INPUT PANEL ── */
.ft-input-panel {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 0;
}

.ft-card {
    background: var(--f-glass);
    border: 1px solid var(--f-border);
    border-radius: var(--f-radius);
    padding: 36px 40px;
    backdrop-filter: blur(12px);
}

.ft-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--f-text);
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ft-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.ft-field {
    flex: 1;
    min-width: 180px;
}

.ft-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--f-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ft-field input,
.ft-field select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--f-border);
    border-radius: 10px;
    color: var(--f-text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    color-scheme: dark;
}

.ft-field input:focus,
.ft-field select:focus {
    outline: none;
    border-color: rgba(245, 200, 66, 0.5);
    box-shadow: 0 0 0 3px rgba(245, 200, 66, 0.1);
}

.ft-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #f5c842, #e0a91e);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #0a0d1a;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    box-shadow: 0 4px 20px rgba(245, 200, 66, 0.3);
    min-width: 160px;
}

.ft-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(245, 200, 66, 0.45);
}

.ft-btn:active {
    transform: translateY(0);
}

.ft-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

/* ── SUMMARY CARDS ── */
.ft-summary {
    max-width: 860px;
    margin: 32px auto 0;
    padding: 0 24px;
    display: none;
    /* shown after calculation */
}

.ft-summary.active {
    display: block;
}

.ft-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 0;
}

.ft-stat {
    background: var(--f-glass);
    border: 1px solid var(--f-border);
    border-radius: var(--f-radius);
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ft-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stat-color, var(--f-gold));
    opacity: 0.7;
}

.ft-stat-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.ft-stat-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--stat-color, var(--f-gold));
    line-height: 1;
}

.ft-stat-lbl {
    font-size: 0.75rem;
    color: var(--f-muted);
    margin-top: 6px;
    letter-spacing: 0.05em;
}

.ft-stat-sub {
    font-size: 0.85rem;
    color: var(--f-text);
    margin-top: 4px;
    font-weight: 600;
}

/* ── CHART AREA ── */
.ft-chart-section {
    max-width: 1100px;
    margin: 36px auto 0;
    padding: 0 24px;
    display: none;
}

.ft-chart-section.active {
    display: block;
}

.ft-chart-card {
    background: var(--f-glass);
    border: 1px solid var(--f-border);
    border-radius: var(--f-radius);
    overflow: hidden;
}

.ft-chart-header {
    padding: 24px 28px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid var(--f-border);
}

.ft-chart-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--f-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ft-zoom-tabs {
    display: flex;
    gap: 6px;
}

.ft-zoom-btn {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    border: 1px solid var(--f-border);
    background: transparent;
    color: var(--f-muted);
}

.ft-zoom-btn.active {
    background: rgba(245, 200, 66, 0.15);
    border-color: rgba(245, 200, 66, 0.4);
    color: var(--f-gold);
}

.ft-zoom-btn:hover:not(.active) {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--f-text);
}

#ft-chart {
    width: 100%;
    height: 420px;
}

/* ── FORTUNE READING ── */
.ft-reading {
    max-width: 860px;
    margin: 24px auto 0;
    padding: 0 24px;
    display: none;
}

.ft-reading.active {
    display: block;
}

.ft-reading-card {
    background: linear-gradient(135deg, rgba(245, 200, 66, 0.06), rgba(245, 200, 66, 0.02));
    border: 1px solid rgba(245, 200, 66, 0.2);
    border-radius: var(--f-radius);
    padding: 36px 40px;
}

.ft-reading h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--f-gold);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ft-period-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ft-period-btn {
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid var(--f-border);
    font-size: 0.85rem;
    font-weight: 600;
    background: transparent;
    color: var(--f-muted);
    cursor: pointer;
    transition: all .2s;
}

.ft-period-btn.active {
    background: rgba(245, 200, 66, 0.12);
    border-color: rgba(245, 200, 66, 0.35);
    color: var(--f-gold);
}

.ft-reading-body {
    display: none;
}

.ft-reading-body.active {
    display: block;
}

.ft-reading-score {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
}

.ft-reading-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--f-text);
    margin-bottom: 12px;
}

.ft-reading-text {
    font-size: 1rem;
    color: #b0bec5; /* 10.15:1 on #0a0d1a — AAA (was #94a3b8) */
    line-height: 1.8;
    max-width: 640px;
}

.ft-reading-aspects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.ft-aspect {
    background: var(--f-glass);
    border: 1px solid var(--f-border);
    border-radius: 10px;
    padding: 16px;
}

.ft-aspect-icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.ft-aspect-name {
    font-size: 0.75rem;
    color: var(--f-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ft-aspect-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--f-text);
    margin-top: 2px;
}

/* ── PAYWALL ── */
.ft-paywall {
    max-width: 860px;
    margin: 24px auto 0;
    padding: 0 24px;
    display: none;
}

.ft-paywall.active {
    display: block;
}

.ft-paywall-card {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.08), rgba(74, 158, 255, 0.03));
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: var(--f-radius);
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ft-paywall-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(74, 158, 255, 0.05) 0%, transparent 100%);
}

.ft-paywall-lock {
    font-size: 3rem;
    margin-bottom: 16px;
}

.ft-paywall-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--f-text);
    margin-bottom: 8px;
    position: relative;
}

.ft-paywall-card p {
    color: var(--f-muted);
    margin-bottom: 24px;
    position: relative;
    max-width: 440px;
    margin: 0 auto 24px;
}

.ft-paywall-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.ft-pay-feat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--f-blue);
}

.ft-pay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--f-blue), #2d7fd6);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(74, 158, 255, 0.35);
    transition: transform .15s, box-shadow .15s;
    position: relative;
}

.ft-pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(74, 158, 255, 0.5);
}

.ft-pay-price {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* ── SHARE ── */
.ft-share {
    max-width: 860px;
    margin: 24px auto 0;
    padding: 0 24px;
    display: none;
}

.ft-share.active {
    display: block;
}

.ft-share-card {
    background: var(--f-glass);
    border: 1px solid var(--f-border);
    border-radius: var(--f-radius);
    padding: 28px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.ft-share-card h4 {
    margin: 0;
    font-weight: 700;
    color: var(--f-text);
}

.ft-share-card p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--f-muted);
}

.ft-share-btns {
    display: flex;
    gap: 8px;
}

.ft-share-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--f-border);
    background: var(--f-glass);
    color: var(--f-text);
    cursor: pointer;
    transition: all .2s;
}

.ft-share-btn:hover {
    border-color: rgba(245, 200, 66, 0.4);
    color: var(--f-gold);
}

/* ── DISCLAIMER ── */
.ft-disclaimer {
    max-width: 860px;
    margin: 32px auto 0;
    padding: 0 24px;
    font-size: 0.75rem;
    color: var(--f-muted);
    text-align: center;
    line-height: 1.6;
}

/* ── SCORE RING ── */
.ft-score-ring {
    display: inline-block;
    position: relative;
    width: 100px;
    height: 100px;
}

.ft-ring-svg {
    transform: rotate(-90deg);
}

.ft-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.12); /* boosted visibility for both modes */
    stroke-width: 6;
}

.ft-ring-fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s cubic-bezier(.4, 0, .2, 1), stroke .5s;
}

.ft-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ft-ring-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--f-gold);
    line-height: 1;
}

.ft-ring-lbl {
    font-size: 0.6rem;
    color: var(--f-muted);
    letter-spacing: 0.08em;
    margin-top: 1px;
}

/* Responsive */
@media (max-width: 640px) {
    .ft-card {
        padding: 24px 20px;
    }

    .ft-reading-card {
        padding: 24px 20px;
    }

    .ft-reading-aspects {
        grid-template-columns: repeat(2, 1fr);
    }

    .ft-paywall-card {
        padding: 28px 20px;
    }

    #ft-chart {
        height: 300px;
    }
}

/* Loading pulse */
@keyframes ft-pulse {

    0%,
    100% {
        opacity: .5;
    }

    50% {
        opacity: 1;
    }
}

.ft-loading {
    animation: ft-pulse 1.5s ease-in-out infinite;
    color: var(--f-muted);
    text-align: center;
    padding: 40px;
}
