/**
 * 메인페이지 팝업 슬라이더 스타일 (Swiper.js)
 * - 오버레이 중앙 배치
 * - Swiper 네비게이션 및 페이지네이션
 * - 쿠키 기반 "오늘 하루 보지 않기"
 */

/* 오버레이 */
.popup-slider-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 팝업 래퍼 */
.popup-slider-wrapper {
    position: relative;
    max-width: 600px;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Swiper 컨테이너 */
.popup-swiper {
    width: 100%;
    height: 100%;
}

/* Swiper 슬라이드 */
.popup-swiper .swiper-slide {
    display: flex;
    flex-direction: column;
}

/* 팝업 이미지 */
.popup-image img {
    width: 100%;
    height: auto;
    display: block;
}

.popup-image a {
    display: block;
}

/* 팝업 텍스트 콘텐츠 */
.popup-text {
    padding: 30px;
}

.popup-text h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: bold;
}

.popup-link-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

/* 팝업 컨트롤 */
.popup-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
}

.hide-today {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.hide-today-checkbox {
    cursor: pointer;
}

.popup-close-btn {
    padding: 8px 16px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.popup-close-btn:hover {
    background: #5a6268;
}

/* Swiper 네비게이션 버튼 */
.popup-swiper .swiper-button-prev,
.popup-swiper .swiper-button-next {
    color: #007bff;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.popup-swiper .swiper-button-prev:after,
.popup-swiper .swiper-button-next:after {
    font-size: 18px;
    font-weight: bold;
}

.popup-swiper .swiper-button-prev:hover,
.popup-swiper .swiper-button-next:hover {
    background: rgba(255, 255, 255, 1);
    color: #0056b3;
}

/* Swiper 페이지네이션 */
.popup-swiper .swiper-pagination {
    bottom: 10px;
}

.popup-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 0.7;
}

.popup-swiper .swiper-pagination-bullet-active {
    background: #007bff;
    opacity: 1;
}

/* 전체 닫기 버튼 */
.popup-close-all-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
}

.popup-close-all-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}
