/**
 * home_banner.css
 * 메인 배너 슬라이드, 작은 배너
 */

/* ========================================
   메인 배너 슬라이드 (브라우저 100%)
======================================== */
.main-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-light);
    margin-bottom: var(--spacing-xl);
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 500px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

/* 좌우 화살표 버튼 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.banner-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.banner-arrow-prev {
    left: var(--spacing-lg);
}

.banner-arrow-next {
    right: var(--spacing-lg);
}

.banner-arrow svg {
    width: 24px;
    height: 24px;
}

/* 하단 dot 인디케이터 */
.banner-dots {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* ========================================
   작은 배너 (3개)
======================================== */
.small-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.small-banner {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 3 / 1;
    background-color: var(--bg-light);
}

.small-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.small-banner:hover img {
    transform: scale(1.05);
}

.small-banner a {
    display: block;
    width: 100%;
    height: 100%;
}

/* ========================================
   반응형 - 태블릿 (768px ~ 1199px)
======================================== */
@media (max-width: 1199px) {
    .banner-slider {
        height: 400px;
    }
    
    .banner-arrow {
        width: 40px;
        height: 40px;
    }
    
    .banner-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .small-banners {
        gap: var(--spacing-md);
    }
}

/* ========================================
   반응형 - 모바일 (767px 이하)
======================================== */
@media (max-width: 767px) {
    .banner-slider {
        height: 250px;
    }
    
    .banner-arrow {
        width: 35px;
        height: 35px;
    }
    
    .banner-arrow-prev {
        left: var(--spacing-sm);
    }
    
    .banner-arrow-next {
        right: var(--spacing-sm);
    }
    
    .banner-arrow svg {
        width: 16px;
        height: 16px;
    }
    
    .banner-dots {
        bottom: var(--spacing-sm);
    }
    
    .banner-dot {
        width: 8px;
        height: 8px;
    }
    
    .banner-dot.active {
        width: 20px;
    }
    
    /* 작은 배너 1줄로 */
    .small-banners {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
}