@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== BASE ===== */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== GLASS NAVBAR ===== */
.glass {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ===== CATEGORY BUTTONS ===== */
.cat-btn {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    padding-left: 20px;
}

.cat-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* ===== BONUS CARDS ===== */
.bonus-card {
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
    transition:
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.35s ease;
}

.bonus-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow:
        0 12px 28px rgba(37, 99, 235, 0.10),
        0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #93c5fd;
}

.bonus-card:active {
    transform: translateY(-2px) scale(1.005);
}

/* ===== RISK INDICATORS ===== */
.risk-1 { color: #10b981; }
.risk-3 { color: #f59e0b; }
.risk-5 { color: #ef4444; }

/* ===== MODAL ANIMATION ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===== PULSING GREEN DOT ===== */
@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 6px 3px rgba(22, 163, 74, 0);
    }
}

.pulse-dot {
    animation: pulseDot 2s ease-in-out infinite;
}

/* ===== CTA BUTTON HOVER ===== */
a[href][target="_blank"].bg-blue-600,
.cta-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a[href][target="_blank"].bg-blue-600:hover,
.cta-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

/* ===== SIDEBAR FILTER CARD ===== */
aside .bg-white {
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.03);
}

/* ===== PROFESSIONAL DARK FOOTER ===== */
.site-footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #94a3b8;
    padding: 3rem 0 2rem;
}

.site-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #e2e8f0;
}

.footer-divider {
    border-color: #1e293b;
}

.footer-brand {
    color: #f1f5f9;
}

/* ===== LEGAL MODALS ===== */
.legal-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.legal-modal-overlay.active {
    display: flex;
}

.legal-modal {
    background: #fff;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.legal-modal-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    border-radius: 1.5rem 1.5rem 0 0;
}

.legal-modal-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.legal-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.legal-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.legal-modal-body {
    padding: 2rem;
    font-size: 0.875rem;
    line-height: 1.8;
    color: #475569;
}

.legal-modal-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.75rem 0 0.75rem;
}

.legal-modal-body h3:first-child {
    margin-top: 0;
}

.legal-modal-body p {
    margin-bottom: 0.75rem;
}

.legal-modal-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-modal-body li {
    margin-bottom: 0.35rem;
}

/* ===== SCROLLBAR STYLING ===== */
.legal-modal::-webkit-scrollbar,
#infoModal > div::-webkit-scrollbar {
    width: 6px;
}

.legal-modal::-webkit-scrollbar-track,
#infoModal > div::-webkit-scrollbar-track {
    background: transparent;
}

.legal-modal::-webkit-scrollbar-thumb,
#infoModal > div::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.legal-modal::-webkit-scrollbar-thumb:hover,
#infoModal > div::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 0 1.5rem;
    }

    .legal-modal {
        max-height: 90vh;
        border-radius: 1rem;
    }

    .legal-modal-header {
        padding: 1.25rem 1.5rem;
        border-radius: 1rem 1rem 0 0;
    }

    .legal-modal-body {
        padding: 1.5rem;
    }
}