/* ═══════════════════════════════════════════════════════
   POPUP ANNOUNCEMENT SYSTEM
   General-purpose modal popups for announcements, promos
   ═══════════════════════════════════════════════════════ */

/* ── Overlay / Backdrop ───────────────────────────── */
.popup-ann-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.popup-ann-overlay.popup-visible {
    opacity: 1;
    visibility: visible;
}

/* ── Modal Container ──────────────────────────────── */
.popup-ann-modal {
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}
.popup-visible .popup-ann-modal {
    transform: scale(1) translateY(0);
}

/* ── Size Variants ────────────────────────────────── */
.popup-ann-modal.popup-sm { width: 100%; max-width: 400px; }
.popup-ann-modal.popup-md { width: 100%; max-width: 550px; }
.popup-ann-modal.popup-lg { width: 100%; max-width: 700px; }

/* ── Close Button ─────────────────────────────────── */
.popup-ann-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: #555;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}
[dir="rtl"] .popup-ann-close {
    right: auto;
    left: 12px;
}
.popup-ann-close:hover {
    background: rgba(200, 16, 46, 0.12);
    color: #c8102e;
    transform: rotate(90deg);
}

/* ── Image ────────────────────────────────────────── */
.popup-ann-image {
    width: 100%;
    display: block;
    max-height: 300px;
    object-fit: cover;
}

/* ── Content Body ─────────────────────────────────── */
.popup-ann-body {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
}
.popup-ann-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1B2A4A;
    margin: 0 0 0.8rem;
    line-height: 1.4;
}
.popup-ann-content {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.popup-ann-content p {
    margin-bottom: 0.5rem;
}
.popup-ann-content p:last-child {
    margin-bottom: 0;
}

/* ── CTA Button ───────────────────────────────────── */
.popup-ann-cta {
    display: inline-block;
    background: linear-gradient(135deg, #c8102e 0%, #e63946 100%);
    color: #fff !important;
    padding: 0.85rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(200, 16, 46, 0.35);
}
.popup-ann-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(200, 16, 46, 0.5);
    color: #fff !important;
    text-decoration: none;
}

/* ── Skip / Close Button ─────────────────────────── */
.popup-ann-skip {
    display: block;
    margin: 1rem auto 0;
    padding: 0.5rem 1.5rem;
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #888;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.popup-ann-skip:hover {
    border-color: #c8102e;
    color: #c8102e;
    background: rgba(200, 16, 46, 0.04);
}

/* ── Footer / Don't show again ────────────────────── */
.popup-ann-footer {
    padding: 0 2rem 1.5rem;
    text-align: center;
}
.popup-ann-dismiss-text {
    font-size: 0.8rem;
    color: #999;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}
.popup-ann-dismiss-text:hover {
    color: #c8102e;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 575.98px) {
    .popup-ann-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .popup-ann-modal {
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        transform: translateY(100%);
    }
    .popup-visible .popup-ann-modal {
        transform: translateY(0);
    }
    .popup-ann-modal.popup-sm,
    .popup-ann-modal.popup-md,
    .popup-ann-modal.popup-lg {
        max-width: 100%;
        width: 100%;
    }
    .popup-ann-body {
        padding: 1.5rem 1.2rem 1rem;
    }
    .popup-ann-title {
        font-size: 1.3rem;
    }
    .popup-ann-image {
        max-height: 200px;
    }
}
