/* Explain: Styles for the promotional popup ad offering a premium subscription. */
/* --- מודעה קופצת למי שאינו מנוי: הצעה להצטרפות למנוי פרימיום, עם כפתור X בראש החלון --- */
.promo-ad-overlay {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(4px);
}

.promo-ad-overlay.is-open {
    display: flex;
}

.promo-ad-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%, 42rem);
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    background: linear-gradient(145deg, #FFFFFF, #F3ECD9);
    box-shadow: var(--shadow-soft);
}

.promo-ad-close {
    position: absolute;
    top: 0.85rem;
    inset-inline-start: 0.85rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    min-width: 2.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--surface-color);
    color: var(--text-color);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 200ms ease, border-color 200ms ease, color 200ms ease;
}

.promo-ad-close:hover,
.promo-ad-close:focus-visible {
    border-color: var(--accent-color);
    color: var(--accent-strong);
    transform: scale(1.06);
    outline: none;
}

.promo-ad-badge {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.15rem 3.5rem;
    background-image: linear-gradient(100deg, #1F4E8C 0%, #24509A 24%, #2E6FBF 44%, #C9A227 72%, #E0BC55 100%);
    background-size: 240% auto;
    animation: colorfulMove 9s linear infinite;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 6.5vw, 2.7rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.promo-ad-badge i {
    color: #FFDA79;
    font-size: 1.15em;
    filter: drop-shadow(0 2px 6px rgba(255, 180, 40, 0.65));
}

.promo-ad-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    overflow-y: auto;
    padding: 1.75rem 1.75rem 0.75rem;
    text-align: center;
}

.promo-ad-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.6rem;
    animation: glowPulse 3.5s ease-in-out infinite;
}

.promo-ad-heading {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-color);
}

.promo-ad-sub {
    margin: 0;
    max-width: 32rem;
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.promo-ad-benefits {
    margin: 0.25rem 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    width: 100%;
    max-width: 30rem;
    padding: 0;
    list-style: none;
    text-align: start;
}

.promo-ad-benefits li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

.promo-ad-benefits li i {
    color: var(--accent-strong);
    font-size: 1rem;
}

.promo-ad-price {
    margin: 0.35rem 0 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

.promo-ad-actions {
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--glass-border);
    padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
}

@media (min-width: 480px) {
    .promo-ad-benefits {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .promo-ad-badge {
        padding: 0.95rem 2.75rem;
        font-size: clamp(1.55rem, 8.5vw, 2.1rem);
    }
}