/**
 * 코라이브 표준 광고 슬롯(Zone) 퍼블리싱 스타일시트
 * theme/kolive_new/css/ad.zone.css
 */

.kol-ad-zone-container {
    position: relative;
    width: 100%;
    /* margin: 1.25rem 0; */
    margin: 0.75rem 0;
    clear: both;
}

/* 좌측 상단 선명한 광고 코드 뱃지 (개발 및 관리용) */
.kol-ad-slot-tag {
    position: absolute;
    top: -0.63rem;
    left: 0.75rem;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    gap: 0.31rem;
    background: #0f172a;
    color: #facc15;
    border: 1.5px solid #facc15;
    font-size: 0.72rem;
    font-weight: 800;
    font-family: 'Consolas', 'Courier New', monospace, sans-serif;
    padding: 0.19rem 0.63rem;
    border-radius: 0.38rem;
    box-shadow: 0 0.19rem 0.5rem rgba(0, 0, 0, 0.35);
    letter-spacing: 0.5px;
    pointer-events: none;
    line-height: 1.2;
}

.kol-ad-zone-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 2px 0.5rem rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.kol-ad-zone-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.38rem 1rem rgba(0,0,0,0.08);
}

/* 1. 배너형 광고 (클린 라이트 스폰서 카드 - 히어로 영역과 명확히 구분) */
.kol-ad-banner-dark {
    background: #f8fafc;
    color: #1e293b;
    padding: 1rem 1.5rem;
    border: 1px solid #e2e8f0;
}

/* 문맥형 텍스트/배너 광고 전용 클래스 */
.kol-context-ad.text-ad {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.63rem;
    padding: 0.75rem 1.13rem;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 0.38rem rgba(0,0,0,0.03);
}
.kol-context-ad.text-ad .ad-left-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.kol-context-ad.text-ad .ad-tag-badge {
    background: #2563eb;
    color: #ffffff;
    font-size: 0.63rem;
    font-weight: 700;
    padding: 0.13rem 0.38rem;
    border-radius: 0.25rem;
}
.kol-context-ad.text-ad .ad-network-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.63rem;
    font-weight: 700;
    padding: 0.13rem 0.38rem;
    border-radius: 0.25rem;
}
.kol-context-ad.text-ad .ad-title-link {
    font-size: 0.81rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
}
.kol-context-ad.text-ad .ad-btn-detail {
    background: #2563eb;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.38rem 0.88rem;
    border-radius: 0.38rem;
    text-decoration: none;
    transition: background 0.15s ease;
}
.kol-context-ad.text-ad .ad-btn-detail:hover {
    background: #1d4ed8;
}

.kol-context-ad.banner-ad {
    margin: 1rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 1rem 1.25rem;
    box-shadow: 0 0.25rem 0.88rem rgba(15,23,42,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.kol-context-ad.banner-ad .ad-banner-body {
    flex: 1;
    min-width: 15rem;
}
.kol-context-ad.banner-ad .ad-banner-meta {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    margin-bottom: 0.38rem;
}
.kol-context-ad.banner-ad .ad-sponsor-badge {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    font-size: 0.63rem;
    font-weight: 700;
    padding: 0.13rem 0.38rem;
    border-radius: 0.25rem;
}
.kol-context-ad.banner-ad .ad-net-badge {
    background: #0284c7;
    color: #ffffff;
    font-size: 0.63rem;
    font-weight: 700;
    padding: 0.13rem 0.38rem;
    border-radius: 0.25rem;
}
.kol-context-ad.banner-ad .ad-cat-rec {
    font-size: 0.69rem;
    color: #94a3b8;
}
.kol-context-ad.banner-ad .ad-banner-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
}
.kol-context-ad.banner-ad .ad-banner-desc {
    font-size: 0.75rem;
    color: #cbd5e1;
}
.kol-context-ad.banner-ad .ad-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    background: #38bdf8;
    color: #0f172a;
    font-size: 0.81rem;
    font-weight: 800;
    padding: 0.63rem 1.13rem;
    border-radius: 1.5rem;
    text-decoration: none;
    box-shadow: 0 2px 0.5rem rgba(56,189,248,0.3);
    transition: all 0.15s ease;
}
.kol-context-ad.banner-ad .ad-banner-btn:hover {
    background: #7dd3fc;
}

/* 기본 광고 플레이스홀더 */
.kol-ad-placeholder-box {
    min-height: 5.63rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    text-align: center;
    color: #64748b;
}
.kol-ad-placeholder-box .badge-ad {
    background: #64748b;
    color: #ffffff;
    font-size: 0.63rem;
    font-weight: 700;
    padding: 0.13rem 0.38rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}
.kol-ad-placeholder-box .ad-holder-title {
    font-size: 0.81rem;
    font-weight: 700;
    color: #475569;
}


.kol-ad-banner-dark {
    flex-wrap: wrap;
    gap: 1rem;
}

.kol-ad-banner-dark .kol-ad-badge-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.38rem;
}

.kol-ad-badge-sp {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.63rem;
    font-weight: 800;
    padding: 0.13rem 0.38rem;
    border-radius: 0.25rem;
    letter-spacing: 0.03rem;
}

.kol-ad-badge-net {
    background: #0284c7;
    color: #ffffff;
    font-size: 0.63rem;
    font-weight: 800;
    padding: 0.13rem 0.38rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.kol-ad-banner-dark .kol-ad-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
}

.kol-ad-banner-dark .kol-ad-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
}

.kol-ad-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    background: #38bdf8;
    color: #0f172a;
    font-size: 0.81rem;
    font-weight: 800;
    padding: 0.63rem 1.25rem;
    border-radius: 1.5rem;
    text-decoration: none;
    box-shadow: 0 2px 0.5rem rgba(56,189,248,0.3);
    white-space: nowrap;
}

.kol-ad-btn-action:hover {
    background: #7dd3fc;
}

/* 2. 네이티브 / 텍스트형 광고 */
.kol-ad-text-slim {
    background: #f8fafc;
    padding: 0.75rem 1.25rem;
}

.kol-ad-text-slim .kol-ad-title {
    font-size: 0.81rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* 3. 사이드바 스퀘어 배너 */
.kol-ad-sidebar-square {
    flex-direction: column;
    padding: 1rem;
    text-align: center;
    background: #ffffff;
}

.kol-ad-sidebar-square img {
    width: 100%;
    max-height: 15.63rem;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.63rem;
}

/* 1-1. 이미지 배너 전용 */
.kol-ad-img-link {
    display: block;
    padding: 0;
    border: none;
    background: transparent;
    width: 100%;
}

.kol-ad-img-banner {
    width: 100%;
    max-height: 8.75rem;
    object-fit: cover;
    border-radius: 0.75rem;
    display: block;
    box-shadow: 0 2px 0.5rem rgba(0, 0, 0, 0.05);
}

.kol-ad-body {
    flex: 1;
    min-width: 15rem;
}

.kol-ad-slot-name {
    font-size: 0.69rem;
    color: #94a3b8;
}

/* 4. 기본 디폴트 공익/파트너십 배너 */
.kol-ad-default-spot {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 1rem 1.38rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.kol-ad-default-left {
    display: flex;
    align-items: center;
    gap: 0.88rem;
}

.kol-ad-default-icon {
    font-size: 1.6rem;
    background: #eff6ff;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.63rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kol-ad-default-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.kol-ad-highlight {
    color: #2563eb;
}

.kol-ad-default-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0.19rem 0 0 0;
}

.kol-ad-default-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kol-ad-btn-apply {
    background: #2563eb;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.kol-ad-btn-apply:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.kol-ad-btn-center {
    background: #f1f5f9;
    color: #475569;
    padding: 0.5rem 0.88rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.kol-ad-btn-center:hover {
    background: #e2e8f0;
    color: #1e293b;
}
