@charset "utf-8";
/* 롤링배너 광고 스타일 - 기본 스타일 */
.rolling-ad-container {
    width: 100%;
    margin: 40px 0;
    position: relative;
}

.rolling-banner {
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 한 페이지에 두 개씩 표시 */
.swiper-container {
    --swiper-navigation-color: #fff;
    --swiper-pagination-color: #fff;
}

.swiper-slide {
    width: 48%; /* 두 개씩 표시하기 위한 너비 */
    margin-right: 2%;
}

.rolling-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
}

.rolling-thumb {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.rolling-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rolling-link:hover .rolling-thumb img {
    transform: scale(1.05);
}

.rolling-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

.rolling-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.rolling-addr {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.rolling-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 193, 7, 0.8);
    color: #fff;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 14px;
}

/* 네비게이션 버튼 스타일 */
.swiper-button-next, .swiper-button-prev {
    color: #fff;
    background-color: rgba(0,0,0,0.5);
    padding: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: 15px;
    transition: background-color 0.3s;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: rgba(0,0,0,0.8);
}

/* 페이지네이션 스타일 */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}

/* 라이트 모드 스타일 */
:root.light-theme .rolling-banner {
    box-shadow: var(--light-shadow);
}

:root.light-theme .rolling-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

:root.light-theme .rolling-title,
:root.light-theme .rolling-addr {
    color: #fff;
}

:root.light-theme .rolling-rating {
    background: rgba(255, 193, 7, 0.8);
    color: #fff;
}

:root.light-theme .swiper-button-next, 
:root.light-theme .swiper-button-prev {
    background-color: rgba(0,0,0,0.5);
    color: #fff;
}

:root.light-theme .swiper-button-next:hover, 
:root.light-theme .swiper-button-prev:hover {
    background-color: rgba(0,0,0,0.8);
}

:root.light-theme .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7);
}

:root.light-theme .swiper-pagination-bullet-active {
    background: #fff;
}

/* 다크 모드 스타일 */
:root.dark-theme .rolling-banner {
    box-shadow: var(--dark-shadow);
}

:root.dark-theme .rolling-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

:root.dark-theme .rolling-title,
:root.dark-theme .rolling-addr {
    color: var(--dark-text);
}

:root.dark-theme .rolling-rating {
    background: rgba(255, 193, 7, 0.8);
    color: #000;
}

:root.dark-theme .swiper-button-next, 
:root.dark-theme .swiper-button-prev {
    background-color: rgba(255,255,255,0.2);
    color: var(--dark-text);
}

:root.dark-theme .swiper-button-next:hover, 
:root.dark-theme .swiper-button-prev:hover {
    background-color: rgba(255,255,255,0.3);
}

:root.dark-theme .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
}

:root.dark-theme .swiper-pagination-bullet-active {
    background: var(--dark-accent);
}

/* 반응형 처리 */
@media (max-width: 768px) {
    .swiper-slide {
        width: 100%;
    }
    
    .rolling-title {
        font-size: 16px;
    }
    
    .rolling-addr {
        font-size: 12px;
    }
}