/* ============================================
   BodyWhispers — Theme Base CSS
   Shared styles across all page templates
   ============================================ */

/* --- Grain / Noise Overlay --- */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Material Symbols --- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

/* --- Scrollbar Hiding (horizontal carousels) --- */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* --- Amber Line Divider (40px signature) --- */
.amber-line {
    width: 40px;
    height: 1px;
    background-color: #E8A838;
}

/* --- Body minimum height --- */
body {
    min-height: max(884px, 100dvh);
}

/* --- Smooth transitions --- */
* {
    -webkit-tap-highlight-color: transparent;
}

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

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

.animate-fade-out {
    animation: fadeOutDown 0.3s ease-in forwards;
}

/* --- Quiz Progress Bar --- */
.quiz-progress-fill {
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Sticky CTA Bar --- */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 12px 16px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(245, 240, 235, 0.1);
}

/* --- Selection styling --- */
::selection {
    background-color: rgba(253, 186, 73, 0.3);
}

/* --- Link transitions --- */
a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* --- Card hover lift --- */
.card-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(40, 24, 0, 0.06);
}

/* --- Print styles --- */
@media print {
    .grain-overlay,
    .sticky-cta-bar,
    header,
    footer { display: none !important; }
}
