/* ============================================
   Biblijske price - Custom Styles
   Design System: Premium Elegance Editorial
   (Tailwind CSS handles most styling)
   ============================================ */

/* --- SF Pro Rounded (Headline Font) --- */
@font-face {
    font-family: 'SF Pro Rounded';
    src: url('fonts/SF-Pro-Rounded-Regular.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Rounded';
    src: url('fonts/SF-Pro-Rounded-Semibold.otf') format('opentype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Rounded';
    src: url('fonts/SF-Pro-Rounded-Bold.otf') format('opentype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Rounded';
    src: url('fonts/SF-Pro-Rounded-Heavy.otf') format('opentype');
    font-weight: 800;
    font-display: swap;
}

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

/* --- Signature Gradient (primary → primary-container, 135deg) --- */
.bg-primary-gradient {
    background: linear-gradient(135deg, #310065 0%, #4A148C 100%);
}

/* --- Organic Blob Shape --- */
.organic-blob {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

/* --- Scroll Animations --- */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in--visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Nav Toggle Animation --- */
.nav-toggle--active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle--active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle--active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Story Detail Modal --- */
.story-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.story-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Modal card (contains everything) */
.story-modal-card {
    position: relative;
    width: 100%;
    max-width: 340px;
    min-height: 520px;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-modal-overlay.is-open .story-modal-card {
    transform: translateY(0);
    opacity: 1;
}

.story-modal-overlay:not(.is-open) .story-modal-card {
    transition: transform 0.25s ease-in, opacity 0.25s ease-in;
    transform: translateY(30px);
    opacity: 0;
}

/* Blurred cover image background inside card (hidden in white mode) */
.story-modal-bg {
    display: none;
}

/* Dark scrim (hidden in white mode) */
.story-modal-scrim {
    display: none;
}

/* Content */
.story-modal-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3.5rem 1.5rem 3rem;
    max-height: 85vh;
    overflow-y: auto;
}

/* Close button */
.story-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #49454f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.story-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Cover image wrapper */
.story-modal-image-wrap {
    position: relative;
    margin-bottom: 1.75rem;
}

/* Cover image */
.story-modal-image {
    width: 180px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: block;
}

/* Liquid glass play button */
.story-modal-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #310065;
    background: rgba(49, 0, 101, 0.03);
    border: 1px solid rgba(49, 0, 101, 0.06);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.story-modal-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(49, 0, 101, 0.08);
}

.story-modal-play:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Title */
.story-modal-title {
    font-family: 'SF Pro Rounded', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1c1b;
    text-align: left;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Description */
.story-modal-description {
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #49454f;
    text-align: left;
    width: 100%;
}

/* --- FAQ Accordion --- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item--open .faq-chevron {
    transform: rotate(180deg);
}

/* --- Privacy & FAQ Page Content --- */
.page-content h3 {
    font-family: 'SF Pro Rounded', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a1c1b;
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.page-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.page-content li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.7;
    list-style: none;
}

.page-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #310065;
}

.page-content a {
    color: #310065;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-content a:hover {
    color: #4A148C;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .animate-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .animate-bounce {
        animation: none;
    }

    .story-modal-overlay,
    .story-modal-card {
        transition: none;
    }
}
