/* =====================================================
   우측 슬라이드 광고 패널 스타일
   ===================================================== */

/* 패널 컨테이너 */
.ad-side-panel {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    width: 300px;
    max-height: 80vh;
    background: #fff;
    box-shadow: -3px 0 15px rgba(0,0,0,0.15);
    border-radius: 8px 0 0 8px;
    z-index: 9999;
    transition: transform 0.4s ease;
    overflow: hidden;
}

/* 패널 열림 상태 */
.ad-side-panel.open {
    transform: translateY(-50%) translateX(0);
}

/* 닫기 버튼 */
.ad-panel-close {
    position: absolute;
    top: 5px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    color: #fff;
    z-index: 10;
    transition: background 0.2s;
}

.ad-panel-close:hover {
    background: rgba(0,0,0,0.7);
}

/* 광고 라벨 */
.ad-panel-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 10;
}

/* 배너 컨텐츠 영역 */
.ad-panel-content {
    max-height: calc(80vh - 50px);
    overflow-y: auto;
}

.ad-panel-content a {
    display: block;
    text-decoration: none;
}

.ad-panel-content img {
    width: 100%;
    display: block;
    border: none;
}

/* 배너 아이템 (여러 개일 경우) */
.ad-banner-item {
    position: relative;
    border-bottom: 1px solid #eee;
}

.ad-banner-item:last-child {
    border-bottom: none;
}

/* 오늘 하루 안보기 체크박스 */
.ad-panel-today {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 10px;
    text-align: center;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #eee;
    background: #f9f9f9;
    cursor: pointer;
    user-select: none;
}

.ad-panel-today:hover {
    background: #f0f0f0;
}

.ad-panel-today input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* 로딩 상태 */
.ad-panel-loading {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

/* 배너 없음 */
.ad-panel-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* =====================================================
   반응형 스타일
   ===================================================== */

/* 태블릿 */
@media (max-width: 1024px) {
    .ad-side-panel {
        width: 280px;
    }
}

/* 모바일 */
@media (max-width: 768px) {
    .ad-side-panel {
        width: 250px;
        max-height: 70vh;
    }

    .ad-panel-close {
        width: 28px;
        height: 28px;
        font-size: 18px;
        line-height: 26px;
    }

    .ad-panel-today {
        padding: 10px 8px;
        font-size: 11px;
    }
}

/* 작은 모바일 */
@media (max-width: 480px) {
    .ad-side-panel {
        width: 220px;
        max-height: 60vh;
    }
}
