/* ===========================================
   Ads Styles - 광고 관련 스타일
   =========================================== */

/* Ad Sidebars (데스크톱 좌우 고정) */
.ad-sidebar {
    width: 200px;
    min-width: 200px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ad-sidebar.left {
    border-right: 1px solid #e0e0e0;
}

.ad-sidebar.right {
    border-left: 1px solid #e0e0e0;
}

.ad-placeholder {
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* ===========================================
   Mobile Horizontal Ad (가로 배너)
   =========================================== */

/* Inline 버전 (콘텐츠 사이 삽입) */
.ad-mobile-horizontal {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    background: transparent;
}

/* Fixed 버전 (화면 하단 고정) */
.ad-mobile-horizontal--fixed {
    display: none;
    position: fixed;
    bottom: var(--mobile-tab-bar-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-primary);
    justify-content: center;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

/* ===========================================
   Media Queries
   =========================================== */

/* 모바일: 사이드바 광고 숨김 */
@media (max-width: 768px) {
    .ad-sidebar {
        display: none;
    }

    /* Inline 모바일 광고 표시 */
    .ad-mobile-horizontal {
        display: flex;
    }

    /* Fixed 모바일 하단 광고 표시 */
    .ad-mobile-horizontal--fixed {
        display: flex;
    }
}

/* ===========================================
   Dark Mode
   =========================================== */

.ad-sidebar {
    background: var(--bg-primary);
    border-color: var(--border-primary);
}

.ad-placeholder {
    background: var(--bg-secondary);
    border-color: var(--border-secondary);
    color: var(--text-tertiary);
}

.ad-mobile-horizontal--fixed {
    background: var(--bg-primary);
    border-color: var(--border-primary);
}
