/* ============================================
   Money View Micro-Niche Site — Custom Styles
   (Supplements Tailwind CSS)
   ============================================ */

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

:root {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #22c55e;
    --accent: #fbbf24;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

/* ─── Toast Notification ─── */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(22, 163, 74, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}
.toast-show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toast-hide {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
}

/* ─── Hero Glassmorphism Card ─── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* ─── Copy Button Hover ─── */
.copy-btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.3);
}
.copy-btn:active {
    transform: scale(0.95);
}

/* ─── Code Reveal Blur ─── */
.blur-sm {
    filter: blur(4px);
    transition: filter 0.5s ease;
}

/* ─── Calculator Result Boxes ─── */
.result-excellent {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 1px solid #86efac;
    color: #166534;
    padding: 20px;
    border-radius: 12px;
    animation: fadeInUp 0.4s ease;
}
.result-good {
    background: linear-gradient(135deg, #fef9c3, #fef08a);
    border: 1px solid #fde047;
    color: #854d0e;
    padding: 20px;
    border-radius: 12px;
    animation: fadeInUp 0.4s ease;
}
.result-tough {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 20px;
    border-radius: 12px;
    animation: fadeInUp 0.4s ease;
}

/* ─── Sticky CTA Bar (Mobile) ─── */
#sticky-cta {
    position: fixed;
    bottom: -80px;
    left: 0;
    right: 0;
    z-index: 100;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#sticky-cta.sticky-visible {
    bottom: 0;
}

/* ─── Live Status Indicator ─── */
.status-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-light);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ─── Card Hover Effects ─── */
.silo-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}
.silo-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 10px 40px rgba(22, 163, 74, 0.1);
    transform: translateY(-4px);
}

/* ─── Animations ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-shimmer {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* ─── Gradient Backgrounds ─── */
.hero-gradient {
    background: linear-gradient(135deg, #059669 0%, #16a34a 40%, #22c55e 100%);
}

/* ─── Trust Badge ─── */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
}

/* ─── Reddit Says Block ─── */
.reddit-block {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #9a3412;
}
.reddit-block::before {
    content: '💬 ';
}

/* ─── Responsive Adjustments ─── */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem !important;
    }
}

/* ─── Print Friendly ─── */
@media print {
    #sticky-cta, .toast-notification { display: none !important; }
}
