/**
 * BeBeKing 2026 - 메인 페이지 CSS
 * 기획서 기반 Mobile-First 디자인
 */

/* ==========================================================================
   메인 레이아웃
   ========================================================================== */
.bbk-main {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
}

/* ==========================================================================
   메인 슬라이드 배너
   ========================================================================== */
.bbk-main-slide {
    position: relative;
}

.bbk-main-slide__swiper {
    width: 100%;
    height: 280px;
}

.bbk-main-slide__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.bbk-main-slide__content {
    max-width: 320px;
}

.bbk-main-slide__subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.bbk-main-slide__title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin-bottom: 8px;
}

.bbk-main-slide__desc {
    font-size: 13px;
    color: #888;
}

.bbk-main-slide__indicator {
    position: absolute;
    bottom: 16px;
    right: 20px;
    font-size: 12px;
    color: #999;
    z-index: 10;
    background: rgba(255,255,255,0.8);
    padding: 4px 10px;
    border-radius: 12px;
}

.bbk-main-slide__current {
    font-weight: 600;
    color: #333;
}

/* Swiper Pagination */
.bbk-main-slide .swiper-pagination {
    bottom: 16px !important;
}

.bbk-main-slide .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ddd;
    opacity: 1;
}

.bbk-main-slide .swiper-pagination-bullet-active {
    background: var(--color-primary);
}

/* ==========================================================================
   탭 메뉴 (4버튼)
   ========================================================================== */
.bbk-tab-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 16px;
    background: #fff;
}

.bbk-tab-menu__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    background: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.bbk-tab-menu__item:hover {
    background: #eee;
}

.bbk-tab-menu__item--highlight {
    background: var(--color-primary);
}

.bbk-tab-menu__item--highlight:hover {
    background: #e87a99;
}

.bbk-tab-menu__item--highlight .bbk-tab-menu__text {
    color: #fff;
}

.bbk-tab-menu__text {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-align: center;
    word-break: keep-all;
}

/* ==========================================================================
   조회수 급상승 섹션
   ========================================================================== */
.bbk-trending {
    padding: 24px 16px;
    background: #fff;
}

.bbk-trending__title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bbk-trending__title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--color-primary);
    border-radius: 2px;
}

.bbk-trending__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bbk-trending__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.bbk-trending__item:hover {
    background: #f0f0f0;
}

.bbk-trending__rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.bbk-trending__content {
    flex: 1;
    min-width: 0;
}

.bbk-trending__text {
    font-size: 14px;
    color: #333;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbk-trending__empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* ==========================================================================
   액션 버튼 영역
   ========================================================================== */
.bbk-action-buttons {
    padding: 0 16px 16px;
    background: #fff;
}

.bbk-btn--outline {
    display: block;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.bbk-btn--outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.bbk-btn--full {
    width: 100%;
}

/* ==========================================================================
   제휴/광고 문의
   ========================================================================== */
.bbk-inquiry {
    padding: 0 16px 24px;
    background: #fff;
    text-align: center;
}

.bbk-btn--inquiry {
    display: inline-block;
    padding: 12px 32px;
    background: #404040;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 24px;
    text-decoration: none;
    transition: background 0.2s;
}

.bbk-btn--inquiry:hover {
    background: #333;
}

/* ==========================================================================
   육아 능력 테스트 배너
   ========================================================================== */
.bbk-test-banner {
    margin: 0 16px 24px;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-radius: 12px;
    overflow: hidden;
}

.bbk-test-banner__link {
    display: block;
    padding: 24px 20px;
    text-decoration: none;
}

.bbk-test-banner__subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.bbk-test-banner__title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.bbk-test-banner__title strong {
    font-size: 20px;
    font-weight: 700;
    color: #1976D2;
}

/* ==========================================================================
   반응형 (태블릿 이상)
   ========================================================================== */
@media (min-width: 768px) {
    .bbk-main-slide__swiper {
        height: 320px;
    }

    .bbk-main-slide__title {
        font-size: 28px;
    }

    .bbk-tab-menu__text {
        font-size: 13px;
    }
}
