/* ════════════════════════════════
   popup.css — 상단 팝업 배너 전용
   main_landing_green.html 에서만 사용
   ════════════════════════════════ */

.top-banner {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    justify-content: center;
    align-items: center;
    animation: popupFadeIn 0.3s ease;
}

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

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 1000;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideUp 0.4s ease;
}

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

.banner-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.banner-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid white;
    border-radius: 50%;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1001;
}

.banner-close:hover {
    background: white;
    transform: scale(1.1);
}

.top-banner.hidden {
    display: none;
}

/* 하단 버튼 바 */
.popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    padding: 0.75rem 1.2rem;
}

.popup-hide-today {
    background: none;
    border: none;
    color: #aaa;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.3rem 0;
    transition: color 0.2s;
}

.popup-hide-today:hover {
    color: white;
}

.popup-close-btn {
    background: none;
    border: 1px solid #555;
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.3rem 1rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.popup-close-btn:hover {
    background: #444;
    color: white;
}

@media (max-width: 768px) {
    .banner-content {
        max-width: 90%;
        width: 90%;
    }
}
