/* Explain: Styles for the animated launch pricing banner with gold accents. */
/* באנר מחירי ההשקה בעמוד „המסלול שלי” (sections/billing.launch-banner.html): מסגרת זהב שזורמת סביב הכרטיס,
   הבזק אור שחולף עליו, כוכבים מנצנצים וכתר זוהר. הצבעים מ-css/theme.css (--launch-*).
   במצב „עצירת אנימציות” של תפריט הנגישות ובהעדפת תנועה מופחתת – הכול נשאר במקום, בלי תנועה */

.launch-frame {
    position: relative;
    padding: 2px;
    border-radius: 1.25rem;
    background-color: var(--launch-gold);
    background-image: linear-gradient(110deg, var(--launch-gold-dark) 0%, var(--launch-gold-light) 25%, var(--launch-gold) 50%, var(--launch-gold-light) 75%, var(--launch-gold-dark) 100%);
    background-size: 250% 100%;
    box-shadow: 0 20px 40px -22px rgba(15, 42, 77, 0.6);
    animation: launch-border 5s ease-in-out infinite alternate;
}

.launch-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: calc(1.25rem - 2px);
    color: #ffffff;
    background-color: var(--secondary-color);
    background-image: linear-gradient(135deg, var(--secondary-color) 0%, var(--brand-blue) 100%);
    background-image:
        radial-gradient(ellipse 55% 90% at 100% 0%, color-mix(in srgb, var(--launch-gold) 24%, transparent) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 0% 100%, color-mix(in srgb, var(--cyan-color) 32%, transparent) 0%, transparent 70%),
        linear-gradient(135deg, var(--secondary-color) 0%, var(--brand-blue) 100%);
}

/* הבזק אור שחולף על הכרטיס */
.launch-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.16) 50%, transparent 62%);
    transform: translateX(-120%);
    animation: launch-shine 5s ease-in-out infinite;
    pointer-events: none;
}

/* כוכבים מנצנצים ברקע */
.launch-sparkles {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.launch-sparkle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--launch-gold-light);
    clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
    opacity: 0;
    animation: launch-twinkle 2.8s ease-in-out infinite;
}

.launch-sparkle:nth-child(1) { top: 12%; left: 5%; width: 16px; height: 16px; animation-delay: 0s; }
.launch-sparkle:nth-child(2) { top: 72%; left: 13%; width: 10px; height: 10px; animation-delay: 0.7s; }
.launch-sparkle:nth-child(3) { top: 20%; left: 38%; width: 8px; height: 8px; animation-delay: 1.4s; }
.launch-sparkle:nth-child(4) { top: 84%; left: 46%; width: 12px; height: 12px; animation-delay: 2.1s; }
.launch-sparkle:nth-child(5) { top: 8%; left: 63%; width: 10px; height: 10px; animation-delay: 0.4s; }
.launch-sparkle:nth-child(6) { top: 58%; left: 93%; width: 14px; height: 14px; animation-delay: 1.1s; }
.launch-sparkle:nth-child(7) { top: 30%; left: 84%; width: 9px; height: 9px; animation-delay: 1.8s; }

/* כתר זוהר */
.launch-crown {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    border-radius: 1rem;
    color: var(--secondary-color);
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--launch-gold-light) 0%, var(--launch-gold) 55%, var(--launch-gold-dark) 100%);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 8px 22px -6px var(--launch-gold);
    animation: launch-glow 2.6s ease-in-out infinite;
}

.launch-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.2rem 0.75rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--launch-gold-light) 0%, var(--launch-gold) 100%);
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.4;
}

/* ספירה לאחור עד סוף תקופת ההשקה */
.launch-countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.35rem 0.95rem;
    border-radius: 9999px;
    border: 1px solid var(--launch-gold);
    background: rgba(255, 255, 255, 0.1);
    color: var(--launch-gold-light);
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1.3;
}

.launch-countdown i {
    display: inline-block;
    animation: launch-hourglass 3.2s ease-in-out infinite;
}

/* כפתור הזהב שמוביל לכרטיסי המסלולים */
.btn.launch-cta {
    background: linear-gradient(135deg, var(--launch-gold-light) 0%, var(--launch-gold) 60%, var(--launch-gold-dark) 100%);
    color: var(--secondary-color);
    box-shadow: 0 10px 22px -10px var(--launch-gold);
    transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.btn.launch-cta:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -10px var(--launch-gold);
}

.btn.launch-cta:focus-visible {
    outline: 3px solid var(--launch-gold-light);
    outline-offset: 2px;
}

/* כרטיסי המחיר: רגיל מול השקה */
.launch-price {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.launch-price:hover {
    transform: translateY(-2px);
    border-color: var(--launch-gold);
}

.launch-price-was {
    color: rgba(255, 255, 255, 0.65);
}

.launch-price-was [dir="ltr"] {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--launch-gold);
}

.launch-price-now {
    color: var(--launch-gold-light);
    text-shadow: 0 0 18px color-mix(in srgb, var(--launch-gold) 55%, transparent);
}

.launch-save {
    display: inline-flex;
    align-items: center;
    margin-top: 0.25rem;
    padding: 0.1rem 0.6rem;
    border-radius: 9999px;
    background: var(--launch-gold);
    color: var(--secondary-color);
    font-size: 0.6875rem;
    font-weight: 800;
}

@keyframes launch-border {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

@keyframes launch-shine {
    0% { transform: translateX(-120%); }
    55%, 100% { transform: translateX(120%); }
}

@keyframes launch-twinkle {
    0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(45deg); }
}

@keyframes launch-glow {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 8px 22px -6px var(--launch-gold); }
    50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18), 0 10px 32px -4px var(--launch-gold); }
}

@keyframes launch-hourglass {
    0%, 40% { transform: rotate(0deg); }
    50%, 90% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .launch-frame,
    .launch-banner::before,
    .launch-crown,
    .launch-countdown i {
        animation: none;
    }

    .launch-sparkle {
        animation: none;
        opacity: 0.7;
    }

    .launch-price,
    .btn.launch-cta {
        transition: none;
    }
}

html.a11y-motion .launch-sparkle {
    animation: none !important;
    opacity: 0.7;
}