/* Explain: Styles for site components like navigation, buttons, cards, and animations. */
.site-header {
    background: linear-gradient(180deg, rgba(243, 236, 217, 0.98), rgba(235, 226, 203, 0.92));
    backdrop-filter: blur(18px);
}

/* --- מקשי ניווט עליונים (מראה לחיץ כמו מקש) --- */
.nav-pill {
    font-family: var(--font-heading);
    font-weight: 800;
    white-space: nowrap;
    border: 2px solid var(--accent-color);
    border-bottom-width: 3px;
    border-bottom-color: var(--accent-strong);
    position: relative;
    background: linear-gradient(180deg, #FBF3DC, #F0E2BC);
    color: #6B5410 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
    box-shadow: 0 3px 0 rgba(122, 95, 16, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.nav-pill:hover,
.nav-pill:focus-visible {
    transform: translateY(-2px);
    border-color: var(--accent-strong);
    background: linear-gradient(180deg, #C9A227, #B8901C);
    color: #FFFFFF !important;
    box-shadow: 0 10px 24px rgba(122, 95, 16, 0.3);
    outline: none;
}

.nav-pill:active {
    transform: translateY(0);
}

/* --- מקש ניווט צבעוני מתחלף (הצטרפות למנוי) --- */
.nav-pill-colorful {
    border-color: transparent;
    color: #FFF !important;
    background-image: linear-gradient(
        100deg,
        #24509A 0%,
        #2E6FBF 20%,
        #128C8E 42%,
        #2F9D6A 60%,
        #D4AF37 82%,
        #6D4AA8 100%
    );
    background-size: 300% auto;
    background-repeat: repeat;
    animation: colorfulMove 9s linear infinite;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

.nav-pill-colorful:hover,
.nav-pill-colorful:focus-visible {
    border-color: transparent;
    color: #FFF !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
    outline: none;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-color), var(--teal-accent));
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(251, 245, 230, 0.92));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

/* --- מסגרות קשת (ארון קודש) --- */
.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: var(--logo-bg);
    box-shadow: 0 30px 80px rgba(42, 33, 24, 0.22);
}

.arch-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(201, 162, 39, 0.50);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

/* --- מסגרת קשת עם רקע של צבעים מתחלפים --- */
.arch-frame-colorful {
    background:
        radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.56) 70%),
        linear-gradient(
            120deg,
            rgba(79, 139, 255, 0.5) 0%,
            rgba(20, 214, 208, 0.45) 14%,
            rgba(47, 224, 176, 0.42) 24%,
            rgba(60, 224, 138, 0.42) 36%,
            rgba(255, 213, 58, 0.5) 50%,
            rgba(255, 138, 92, 0.45) 64%,
            rgba(255, 92, 92, 0.45) 78%,
            rgba(60, 224, 138, 0.42) 90%,
            rgba(79, 139, 255, 0.5) 100%
        );
    background-size: auto, 260% 260%;
    animation: colorfulMove 12s ease infinite;
    box-shadow: 0 0 34px rgba(255, 200, 60, 0.22), inset 0 0 22px rgba(255, 255, 255, 0.5), 0 30px 80px rgba(42, 33, 24, 0.18);
}

.arch-frame-large {
    height: min(74vh, 720px);
    min-height: 500px;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

.arch-frame-medium {
    height: 520px;
    max-width: 450px;
    border-radius: 999px 999px 2.1rem 2.1rem;
}

/* --- הירו --- */
.hero-home {
    background:
        radial-gradient(circle at 12% 20%, rgba(212, 175, 55, 0.24), transparent 31rem),
        radial-gradient(circle at 88% 12%, rgba(201, 162, 39, 0.18), transparent 29rem),
        radial-gradient(circle at 70% 92%, rgba(47, 122, 82, 0.10), transparent 28rem),
        linear-gradient(160deg, #FFFDF7, #FBF3E4 60%, #FFFDF7);
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.85;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(251, 247, 236, 0.94) 0%, rgba(251, 247, 236, 0.72) 48%, rgba(251, 247, 236, 0.40) 100%),
        linear-gradient(0deg, rgba(251, 247, 236, 0.92), transparent 60%);
}

/* --- תצוגת ההירו הריבועית המתחלפת --- */
.hero-slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 800ms ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
    animation: heroSlideIn 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes heroSlideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.hero-slide[data-slide-type="newcontent"].is-active {
    animation: heroSlideUp 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes heroSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes heroCaptionIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-logo-caption {
    opacity: 0;
}

.hero-slide.is-active .hero-logo-caption {
    animation: heroCaptionIn 700ms ease 600ms forwards;
}

/* --- כרטיסים --- */
.song-card {
    overflow: hidden;
    border-radius: 1.8rem;
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 400ms ease, border-color 400ms ease;
}

.song-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 32px 80px rgba(42, 33, 24, 0.18);
}

.feature-card {
    border: 1px solid var(--glass-border);
    border-radius: 1.8rem;
    background: linear-gradient(160deg, #FFFFFF, #F3ECD9);
    padding: 2rem 1.6rem;
    text-align: center;
    transition: transform 350ms ease, box-shadow 350ms ease, border-color 350ms ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 26px 70px rgba(42, 33, 24, 0.18);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 1.5rem;
    animation: glowPulse 3.5s ease-in-out infinite;
}

.follow-artist-btn.is-following {
    border-color: var(--accent-color);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

/* --- טקסטורה (פוטר) --- */
.footer-texture {
    background-image: url('https://files.cdn-files-a.com/uploads/12425148/normal_6ad53a6a2b799.png?format=avif');
    background-size: 520px;
    opacity: 0.14;
}

/* --- טופס --- */
.contact-note {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(212, 175, 55, 0.08);
    padding: 1.25rem;
}

.booking-form,
.booking-overlay-panel {
    border-radius: 2.4rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status.success {
    color: #2F7A52;
}

.form-status.error {
    color: #C0392B;
}

.mobile-book-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: rgba(255, 253, 247, 0.96);
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

.booking-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.60);
    padding: 1rem;
}

.booking-overlay.is-open {
    display: block;
}

.booking-overlay-panel {
    min-height: calc(100vh - 2rem);
    background: var(--background-color);
    box-shadow: 0 30px 90px rgba(42, 33, 24, 0.24);
}

/* --- נגן --- */
.audio-player {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 55;
    border-top: 1px solid var(--glass-border);
    background: rgba(255, 253, 247, 0.97);
    box-shadow: 0 -18px 50px rgba(42, 33, 24, 0.18);
    backdrop-filter: blur(18px);
    transform: translateY(110%);
    transition: transform 300ms ease;
}

.audio-player.is-open {
    transform: translateY(0);
}

/* --- חשיפה בגלילה --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .arch-frame-large,
    .arch-frame-medium {
        height: 460px;
        min-height: 0;
    }

    .arch-frame-large {
        margin-right: auto;
        margin-left: auto;
        width: min(100%, 450px);
    }
}

/* --- חלון בקשת התחברות --- */
.login-prompt-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(4px);
}

.login-prompt-overlay.is-open {
    display: flex;
}

.login-prompt-panel {
    position: relative;
    width: min(100%, 26rem);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    background: linear-gradient(145deg, #FFFFFF, #F3ECD9);
    box-shadow: var(--shadow-soft);
    padding: 2.5rem 1.75rem 1.75rem;
    text-align: center;
}

.login-prompt-close {
    position: absolute;
    top: 0.9rem;
    inset-inline-start: 0.9rem;
}

.login-prompt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 1.4rem;
}

.login-prompt-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-color);
}

.login-prompt-message {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.login-prompt-action {
    width: 100%;
}

/* --- הדגשת כפתור ההצטרפות למנוי באזור האישי כשמגיעים מהמודעה הקופצת --- */
.subscribe-highlight {
    animation: subscribeHighlightPulse 1.6s ease-out 4;
    box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.55), var(--shadow-soft);
}

@keyframes subscribeHighlightPulse {
    0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.6), var(--shadow-soft); }
    70% { box-shadow: 0 0 0 18px rgba(201, 162, 39, 0), var(--shadow-soft); }
    100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0), var(--shadow-soft); }
}

/* --- לשוניות התחברות/הרשמה — הלשונית הפעילה בצבע כחול --- */
.auth-tabs .tab {
    border: 0 !important;
    background: transparent !important;
    color: var(--text-muted) !important;
    transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
}

.auth-tabs .tab:hover {
    color: var(--text-color) !important;
}

.auth-tabs .tab-active,
.auth-tabs .tab-active:hover {
    background: var(--button-color) !important;
    color: var(--primary-color) !important;
    box-shadow: var(--shadow-button);
    transform: none;
}

/* --- חשיפת מילים אחת-אחת בשקף "כל התוכן החדש באתר" --- */
.content-word-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35em;
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.content-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(26px);
}

.hero-slide[data-slide-type="newcontent"].is-active .content-word {
    animation: contentWordIn 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-slide[data-slide-type="newcontent"].is-active .content-word:nth-child(1) { animation-delay: 900ms; }
.hero-slide[data-slide-type="newcontent"].is-active .content-word:nth-child(2) { animation-delay: 1150ms; }
.hero-slide[data-slide-type="newcontent"].is-active .content-word:nth-child(3) { animation-delay: 1400ms; }
.hero-slide[data-slide-type="newcontent"].is-active .content-word:nth-child(4) { animation-delay: 1650ms; }

/* --- כותרת סקשן בשתי שורות: עולה מלמטה למרכז ואז המילים מתרחבות --- */
.slide-title-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.16em;
    margin: 0;
    font-size: clamp(2.6rem, 8vw, 4.6rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.hero-slide[data-slide-type="section-title"].is-active .content-word {
    animation: titleWordUp 760ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes titleWordUp {
    0% { opacity: 0; transform: translateY(140%) scale(0.85); }
    58% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 1; transform: translateY(0) scale(1.18); }
}

@keyframes contentWordIn {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- כיתוב תמונת ההירו: עולה מלמטה עד למעלה בגרדיאנט כחול-זהב --- */
.hero-photo-caption {
    opacity: 0;
    transform: translateY(320%);
}

.hero-slide.is-active .hero-photo-caption {
    animation: heroCaptionRise 1200ms cubic-bezier(0.22, 1, 0.36, 1) 300ms forwards;
}

@keyframes heroCaptionRise {
    from { opacity: 0; transform: translateY(320%); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- הדגשת משבצת חבילת החג לאחר מעבר מההירו --- */
.holiday-highlight {
    border-color: var(--accent-color) !important;
    animation: holidayHighlightPulse 1.8s ease-out 2;
}

@keyframes holidayHighlightPulse {
    0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.55), 0 26px 70px rgba(42, 33, 24, 0.22); }
    70% { box-shadow: 0 0 0 20px rgba(201, 162, 39, 0), 0 26px 70px rgba(42, 33, 24, 0.22); }
    100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0), 0 26px 70px rgba(42, 33, 24, 0.22); }
}

/* --- כרטיס חבילת ההורדה בהירו: רקע גרדיאנט זורם עם זוהר פעימתי וברק חולף --- */
.holiday-cta {
    opacity: 0;
    background-image: linear-gradient(
        100deg,
        #1F4E8C 0%,
        #24509A 22%,
        #2E6FBF 40%,
        #B98F1E 62%,
        #C9A227 80%,
        #E0BC55 100%
    );
    background-size: 300% auto;
    animation:
        holidayCtaFade 900ms ease forwards,
        colorfulMove 7s linear infinite,
        holidayCtaGlow 2.8s ease-in-out infinite;
}

.holiday-cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-18deg);
    animation: holidayShine 3.4s ease-in-out infinite;
    pointer-events: none;
}

.holiday-cta:hover,
.holiday-cta:focus-visible {
    filter: brightness(1.1);
}

.holiday-cta-icon {
    animation: holidayIconPulse 2.2s ease-in-out infinite;
}

@keyframes holidayCtaFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes holidayCtaGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.55), var(--shadow-soft); }
    50% { box-shadow: 0 0 26px 4px rgba(224, 188, 85, 0.6), var(--shadow-soft); }
}

@keyframes holidayShine {
    0% { left: -60%; }
    55%, 100% { left: 130%; }
}

@keyframes holidayIconPulse {
    0%, 100% { transform: scale(1) rotate(-4deg); }
    50% { transform: scale(1.12) rotate(4deg); }
}

/* --- תג "חדש באתר!" על צד כרטיס חבילת ההורדה לחג: בולט החוצה מהמשבצת עם פס זהב מעל ומתחת --- */
.holiday-new-badge {
    position: absolute;
    top: 41%;
    left: 0;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-42%, -50%) rotate(-6deg);
    transform-origin: center;
    padding: 0.26rem 0.95rem;
    border-top: 3px solid var(--accent-strong);
    border-bottom: 3px solid var(--accent-strong);
    background: linear-gradient(180deg, #FCF3D5, #EFD98B);
    color: #6B5410;
    font-family: var(--font-hero);
    font-size: clamp(1.05rem, 3.6vw, 1.45rem);
    font-weight: 400;
    line-height: 1.15;
    white-space: nowrap;
    box-shadow: 0 12px 30px rgba(42, 33, 24, 0.42);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
    pointer-events: none;
}

/* --- כרטיס חבילת ההורדה לחג (כולל התג "חדש באתר!") מוסתר עד מוצאי שבת בשעה 20:00 --- */
.holiday-cta-pending {
    display: none;
}

/* --- שקף חנוכה בהירו: "חדש" נכנס מימין ו"באתר" משמאל ואז מתייצבים במרכז --- */
.hero-slide[data-slide-type="chanukah"].is-active .chanukah-word-right {
    animation: chanukahWordFromRight 900ms cubic-bezier(0.22, 1, 0.36, 1) 400ms both;
}

.hero-slide[data-slide-type="chanukah"].is-active .chanukah-word-left {
    animation: chanukahWordFromLeft 900ms cubic-bezier(0.22, 1, 0.36, 1) 400ms both;
}

@keyframes chanukahWordFromRight {
    from { opacity: 0; transform: translateX(150%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes chanukahWordFromLeft {
    from { opacity: 0; transform: translateX(-150%); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 640px) {
    .holiday-new-badge {
        transform: translate(-30%, -50%) rotate(-6deg);
        padding: 0.3rem 0.9rem;
    }
}

/* --- הדגשת אלבום חדש בעמוד האלבומים: מסגרת זהב וזוהר פעימתי למשך שבועיים מהעלאתו --- */
.album-new {
    animation: albumNewGlow 3s ease-in-out infinite;
}

@keyframes albumNewGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.35), var(--shadow-soft); }
    50% { box-shadow: 0 0 30px 6px rgba(224, 188, 85, 0.6), var(--shadow-soft); }
}

/* --- כפתור עריכת כרטיס: מוצג לחשבון המנהל בלבד, בכל משבצת שיר/סינגל/אלבום/תוכנית --- */
.card-edit-btn {
    position: absolute;
    top: 0.5rem;
    inset-inline-start: 0.5rem;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    min-width: 2.4rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    background: rgba(20, 16, 10, 0.86);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 300ms ease, background-color 300ms ease, box-shadow 300ms ease;
}

.card-edit-btn i {
    font-size: 1rem;
}

body.has-admin-access .card-edit-btn {
    display: inline-flex;
}

.card-edit-btn:hover,
.card-edit-btn:focus-visible {
    background: rgba(31, 78, 140, 0.96);
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    outline: none;
}

.card-edit-btn-top-end {
    inset-inline-start: auto;
    inset-inline-end: 0.5rem;
}

/* --- הדגשת שאלת סקר שלא נענתה בעת ניסיון שליחה --- */
.survey-q-missing {
    border-color: #C0392B !important;
    background: rgba(192, 57, 43, 0.06) !important;
    animation: surveyMissingPulse 1.4s ease-out 2;
}

@keyframes surveyMissingPulse {
    0% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(192, 57, 43, 0); }
    100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0); }
}