/* ===== Fixed Header ===== */
.site-header {
    border-bottom: 0.5px solid transparent;
}

.site-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 0.5px;
    width: calc(100% - 32px);
    transform: translateX(-50%);
    background: #CCCCCC;
}

.site-header.header--scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===== Nav Pill Menu ===== */
.nav-pill-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-pill-item:hover {
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ===== Nav Dropdown ===== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > .nav-pill-item {
    cursor: default;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 180px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 6px;
    padding-top: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 100;
}

/* Invisible bridge so hover doesn't break crossing the gap */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all 0.15s ease;
}

.nav-dropdown-link:hover {
    background-color: #f3f4f6;
    color: #000000;
}

.nav-pill-item-mobile {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-pill-item-mobile:hover {
    background-color: #f3f4f6;
    color: #000000;
}

/* ===== Buttons ===== */
.btn-primary {
    background-color: #22c55e;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #16a34a;
}

.btn-secondary {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.btn-secondary:hover {
    background-color: #dcfce7;
    border-color: #86efac;
}

/* ===== Hero Section ===== */
.hero-section {
    background: #ffffff;
}

/* ===== Indicator Cards ===== */
.indicator-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.indicator-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.indicator-logo-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    padding: 8px;
    transition: all 0.3s ease;
}

.indicator-card:hover .indicator-logo-wrap {
    transform: scale(1.08);
}

.indicator-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.indicator-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-grid-bg {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Hero fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-fade-in:nth-child(1) { animation-delay: 0.1s; }
.hero-fade-in:nth-child(2) { animation-delay: 0.2s; }
.hero-fade-in:nth-child(3) { animation-delay: 0.35s; }
.hero-fade-in:nth-child(4) { animation-delay: 0.5s; }

/* ===== Zone Cards ===== */
.zone-card {
    border-radius: 8px;
    padding: 8px 12px;
    border-left: 3px solid;
    transition: all 0.15s ease;
}

.zone-card:hover {
    transform: translateX(2px);
}

.zone-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
}

.zone-value {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

/* Red — Resistance */
.zone-card--red {
    background: #fef2f2;
    border-left-color: #ef4444;
}
.zone-card--red:hover { background: #fee2e2; }
.zone-card--red .zone-label { color: #dc2626; }

/* Green — Support */
.zone-card--green {
    background: #f0fdf4;
    border-left-color: #10b981;
}
.zone-card--green:hover { background: #dcfce7; }
.zone-card--green .zone-label { color: #059669; }

/* Yellow — Line in Sand */
.zone-card--yellow {
    background: #fefce8;
    border-left-color: #f59e0b;
}
.zone-card--yellow:hover { background: #fef9c3; }
.zone-card--yellow .zone-label { color: #d97706; }

/* Gray — Macro */
.zone-card--blue {
    background: #f8fafc;
    border-left-color: #94a3b8;
}
.zone-card--blue:hover { background: #f1f5f9; }
.zone-card--blue .zone-label { color: #64748b; }

/* ===== Toast notification styles ===== */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1f2937;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    max-width: 400px;
}

    .toast.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

/* Accordion styles */
.accordion button svg {
    transition: transform 0.3s ease;
}

.accordion button[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom utility classes */
.container {
    max-width: 1280px;
}

/* Button hover effects */
button {
    transition: all 0.2s ease;
}

/* Link hover effects */
a {
    transition: all 0.2s ease;
}

/* FH theme palette */
.fh-theme {
    background: rgb(255, 255, 255);
    color: #0f172a;
}

.fh-theme .bg-white {
    background-color: #ffffff;
}

.fh-theme .bg-gray-50 {
    background-color: #f8fafc;
}

.fh-theme .text-black {
    color: #0b1220;
}

.fh-theme .text-gray-700,
.fh-theme .text-gray-600,
.fh-theme .text-gray-500 {
    color: #475569;
}

.fh-theme .text-green-600 {
    color: #22d3ee;
}

.fh-theme .text-red-600,
.fh-theme .text-orange-600,
.fh-theme .text-blue-600 {
    color: #a78bfa;
}

.fh-theme .border-gray-200,
.fh-theme .border-gray-300,
.fh-theme .border-gray-600,
.fh-theme .border-red-200,
.fh-theme .border-green-200,
.fh-theme .border-amber-200 {
    border-color: #cbd5e1;
}

.fh-theme .bg-gray-800,
.fh-theme .bg-gray-900 {
    background: #22c55e;
}

.fh-theme .hover\:bg-gray-700:hover,
.fh-theme .hover\:bg-black:hover {
    background: #16a34a;
}

.fh-theme .site-header {
    background-color: #ffffff;
}

.fh-theme .site-header.header--scrolled {
    background-color: rgba(255, 255, 255, 0.95);
}

.fh-theme .nav-pill {
    background-color: #f1f5f9;
}

.fh-theme .nav-pill-item:hover {
    background-color: #ffffff;
}

.fh-theme .hero-section {
    background: #ffffff;
}

.fh-theme .bg-red-600 {
    background-color: #7c3aed;
}

.fh-theme .bg-green-100,
.fh-theme .bg-amber-50 {
    background-color: #eef2ff;
}

.fh-theme .hover\:bg-gray-100:hover,
.fh-theme .hover\:bg-green-100:hover {
    background-color: #e2e8f0;
}

.fh-theme .hover\:text-gray-800:hover,
.fh-theme .hover\:text-blue-800:hover {
    color: #1e293b;
}

.fh-theme .from-gray-50 {
    --tw-gradient-from: #eef2ff var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(238 242 255 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.fh-theme .to-white {
    --tw-gradient-to: #ffffff var(--tw-gradient-to-position);
}

/* Old newspaper theme */
.newspaper-theme {
    background-color: #f4efe3;
    color: #2f2a23;
}

.newspaper-theme .bg-white {
    background-color: #f8f3e8;
}

.newspaper-theme .bg-gray-50 {
    background-color: #eee5d5;
}

.newspaper-theme .text-black {
    color: #1f1a15;
}

.newspaper-theme .text-gray-700,
.newspaper-theme .text-gray-600,
.newspaper-theme .text-gray-500 {
    color: #5b5245;
}

.newspaper-theme .text-green-600 {
    color: #5e4b2d;
}

.newspaper-theme .text-red-600,
.newspaper-theme .text-orange-600,
.newspaper-theme .text-blue-600 {
    color: #7a3f2d;
}

.newspaper-theme .hover\:text-blue-800:hover,
.newspaper-theme .hover\:text-gray-800:hover {
    color: #2b2319;
}

.newspaper-theme .border-gray-300,
.newspaper-theme .border-gray-200,
.newspaper-theme .border-gray-600 {
    border-color: #b9ab95;
}

.newspaper-theme .border-red-200,
.newspaper-theme .border-green-200,
.newspaper-theme .border-amber-200 {
    border-color: #b9ab95;
}

.newspaper-theme .bg-red-600 {
    background-color: #7a3f2d;
}

.newspaper-theme .bg-green-100,
.newspaper-theme .bg-amber-50 {
    background-color: #e7dcc8;
}

.newspaper-theme .bg-gray-800,
.newspaper-theme .bg-gray-900 {
    background-color: #3e3328;
}

.newspaper-theme .hover\:bg-gray-700:hover,
.newspaper-theme .hover\:bg-black:hover {
    background-color: #2f261d;
}

.newspaper-theme .hover\:bg-gray-100:hover,
.newspaper-theme .hover\:bg-green-100:hover {
    background-color: #dfd3bc;
}

.newspaper-theme .from-gray-50 {
    --tw-gradient-from: #eee5d5 var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(238 229 213 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.newspaper-theme .to-white {
    --tw-gradient-to: #f8f3e8 var(--tw-gradient-to-position);
}

/* Global dark theme */
.dark-theme {
    background-color: #020617;
    color: #e5e7eb;
}

.dark-theme .bg-white {
    background-color: #0f172a;
}

.dark-theme .bg-gray-50 {
    background-color: #111827;
}

.dark-theme .text-black {
    color: #f8fafc;
}

.dark-theme .text-gray-700,
.dark-theme .text-gray-600,
.dark-theme .text-gray-500 {
    color: #cbd5e1;
}

.dark-theme .border-gray-300,
.dark-theme .border-gray-200,
.dark-theme .border-gray-600 {
    border-color: #334155;
}

.dark-theme .hover\:bg-gray-100:hover {
    background-color: #1e293b;
}

.dark-theme .hover\:bg-green-100:hover {
    background-color: #052e16;
}

.dark-theme .hover\:text-gray-800:hover {
    color: #f1f5f9;
}

.dark-theme .from-gray-50 {
    --tw-gradient-from: #0f172a var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(15 23 42 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.dark-theme .to-white {
    --tw-gradient-to: #020617 var(--tw-gradient-to-position);
}
