/* ── Popup & Announcement Plugin – Frontend Styles ── */

/* ─── Announcement Bar ─────────────────────────── */
.pas-announcement-bar {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 40px 10px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    z-index: 99999;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.pas-announcement-inner {
    overflow: hidden;
    white-space: nowrap;
}

.pas-announcement-track {
    display: inline-flex;
    animation: pasScroll linear infinite;
    will-change: transform;
}

.pas-announcement-text {
    white-space: nowrap;
    padding-right: 80px; /* gap between repeated texts */
}

@keyframes pasScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.3333%); }
}

.pas-close-ann {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.25);
    border: none;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.pas-close-ann:hover { background: rgba(255,255,255,.45); }

/* ─── Popup Overlay ────────────────────────────── */
.pas-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    animation: pasFadeIn .3s ease;
}

.pas-popup-overlay.pas-visible {
    display: flex;
}

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

.pas-popup-box {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    animation: pasSlideUp .35s ease;
}

@keyframes pasSlideUp {
    from { transform: translateY(40px) scale(.95); opacity: 0; }
    to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

.pas-popup-img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pas-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    border: 2px solid rgba(255,255,255,.7);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .15s;
    z-index: 10;
}
.pas-popup-close:hover {
    background: rgba(0,0,0,.8);
    transform: scale(1.1);
}

/* Click outside to close */
.pas-popup-overlay { cursor: pointer; }
.pas-popup-box     { cursor: default; }
