/* ========================================
   광고 배너 스타일
   ======================================== */

/* 기본 배너 컨테이너 */
.ad-banner-container {
    width: 100%;
    margin: 1rem auto;
    padding: 0 1rem;
    max-width: 800px;
}

/* ========================================
   타입 1: 텍스트 링크형 (최소 방해)
   ======================================== */

.text-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    min-height: 44px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    border-radius: 0.5rem;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 0.5rem;
}

.text-ad:hover {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    border-color: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.text-ad i {
    font-size: 0.85rem;
    color: #f59e0b;
}

/* ========================================
   타입 2: 인라인 배너 (추천)
   ======================================== */

.inline-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    min-height: 60px;
    background: white;
    border: 2px solid #f59e0b;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.15);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.inline-banner:hover {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
    transform: translateY(-2px);
}

.banner-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-radius: 50%;
}

.banner-text {
    flex: 1;
    font-size: 0.8rem;
    color: #374151;
    line-height: 1.4;
}

.banner-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.15rem;
}

.banner-btn {
    flex-shrink: 0;
    padding: 0.65rem 1rem;
    min-height: 44px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    border: none;
    border-radius: 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-btn:hover {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    transform: scale(1.05);
}

/* ========================================
   타입 3: 카드형 배너
   ======================================== */

.card-banner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem;
    min-height: 64px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #f59e0b;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.15);
}

.card-banner:hover {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.25);
    transform: translateY(-2px);
}

.card-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-content {
    flex: 1;
}

.card-content h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.card-content p {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

.card-banner .fa-chevron-right {
    flex-shrink: 0;
    font-size: 1rem;
    color: #f59e0b;
}

/* ========================================
   타입 4: 이미지 배너
   ======================================== */

.image-banner {
    position: relative;
    display: block;
    width: 100%;
    min-height: 80px;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.image-banner:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.image-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.banner-overlay span {
    font-size: 0.85rem;
    font-weight: 700;
}

.banner-overlay button {
    padding: 0.55rem 0.9rem;
    min-height: 44px;
    background: white;
    color: #111827;
    border: none;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay button:hover {
    background: #f59e0b;
    color: white;
    transform: scale(1.05);
}

/* ========================================
   타입 5: 스폰서 배지형 (초미니)
   ======================================== */

.sponsor-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid #fed7aa;
    border-radius: 1rem;
    font-size: 0.7rem;
    color: #92400e;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sponsor-badge:hover {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    border-color: #f59e0b;
    transform: scale(1.02);
}

.sponsor-badge i {
    font-size: 0.75rem;
    color: #f59e0b;
}

/* ========================================
   반응형: 데스크탑
   ======================================== */

@media (min-width: 768px) {
    .ad-banner-container {
        margin: 1.5rem auto;
    }
    
    .inline-banner {
        padding: 1rem 1.25rem;
    }
    
    .banner-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.75rem;
    }
    
    .banner-text {
        font-size: 0.9rem;
    }
    
    .banner-text strong {
        font-size: 0.95rem;
    }
    
    .card-banner {
        padding: 1.25rem 1.5rem;
    }
    
    .card-content h4 {
        font-size: 1rem;
    }
    
    .card-content p {
        font-size: 0.8rem;
    }
    
    .image-banner {
        min-height: 120px;
    }
}

/* ========================================
   특수: 사이드바 배너 (데스크탑 전용)
   ======================================== */

.sidebar-banner {
    display: none;
}

@media (min-width: 1024px) {
    .sidebar-banner {
        display: block;
        position: sticky;
        top: 100px;
        width: 160px;
        margin-left: 2rem;
    }
    
    .sidebar-banner a {
        display: block;
        margin-bottom: 1rem;
        border-radius: 0.75rem;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }
    
    .sidebar-banner a:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
    }
    
    .sidebar-banner img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* ========================================
   애니메이션
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ad-banner-container {
    animation: fadeInUp 0.4s ease-out;
}

/* 지연 애니메이션 (순차 등장) */
.ad-banner-container:nth-of-type(1) {
    animation-delay: 0s;
}

.ad-banner-container:nth-of-type(2) {
    animation-delay: 0.1s;
}

.ad-banner-container:nth-of-type(3) {
    animation-delay: 0.2s;
}

/* ========================================
   접근성
   ======================================== */

.ad-banner-container [href]:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* 스크린 리더용 레이블 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
