/**
 * Slider Controls Styles
 * 슬라이더 컨트롤 공용 스타일 (다른 플러그인에서도 사용 가능)
 */

/* ===== 컨트롤 컨테이너 ===== */
.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
    z-index: 1001;
}

/* ===== 컨트롤 버튼 기본 스타일 ===== */
.control-btn {
    width: 37.5px;
    height: 37.5px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    font-size: 0.9em;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 3px 11.25px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4.5px 15px rgba(0, 0, 0, 0.3);
}

.control-btn:before {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro', 'dashicons';
    font-weight: 900;
    font-size: 13.5px;
}

/* ===== 재생/일시정지 버튼 ===== */
.control-btn.btn-play:before {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro', 'dashicons';
}

.control-btn.btn-pause:before {
    content: '\f04c';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro', 'dashicons';
}

/* ===== 이전/다음 버튼 ===== */
.control-btn.btn-prev:before {
    content: '\f053';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro', 'dashicons';
}

.control-btn.btn-next:before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro', 'dashicons';
}

/* ===== Dashicons 폴백 ===== */
.control-btn.btn-play.fallback:before {
    content: '\f522';
    font-family: 'dashicons';
}

.control-btn.btn-pause.fallback:before {
    content: '\f523';
    font-family: 'dashicons';
}

.control-btn.btn-prev.fallback:before {
    content: '\f341';
    font-family: 'dashicons';
}

.control-btn.btn-next.fallback:before {
    content: '\f345';
    font-family: 'dashicons';
}

/* ===== Pagination ===== */
.slider-pagination {
    margin-left: 1.5rem;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.slider-pagination .swiper-pagination-bullet {
    position: relative;
    background: rgba(255, 255, 255, 0.3);
    width: 45px;
    height: 3px;
    border-radius: 1.5px;
    margin: 0 0.375rem;
    transition: all 0.3s ease;
    opacity: 1;
    cursor: pointer;
    overflow: hidden;
}

.slider-pagination .swiper-pagination-bullet .bullet-number {
    position: absolute;
    right: 100%;
    top: 50%;
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.375rem;
    transform: translateY(-50%);
    color: #ffffff !important;
    font-size: 0.75em !important;
    font-weight: 700 !important;
    z-index: 1001 !important;
    text-shadow: 1.5px 1.5px 3px rgba(0, 0, 0, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-align: center;
    line-height: 1;
    font-family: 'Noto Sans KR', sans-serif;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 50% !important;
}

.slider-pagination .swiper-pagination-bullet .progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background-color: #ffffff !important;
    background: #ffffff !important;
    transition: none;
    border-radius: 1.5px;
    z-index: 999 !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    box-shadow: 0 0 2.25px rgba(255, 255, 255, 0.8) !important;
    pointer-events: none;
}

.swiper-pagination-bullet-active .progress-fill {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.swiper-pagination-bullet:not(.swiper-pagination-bullet-active) .progress-fill {
    width: 0% !important;
    transition: none !important;
}

.slider-pagination .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scaleY(1.5);
}

/* ===== 반응형: 태블릿 (1020px 이하) ===== */
@media (max-width: 1020px) {
    .slider-controls {
        left: auto;
        right: 2rem;
        transform: none;
        padding-left: 0;
        padding-right: 0;
        width: auto;
        max-width: none;
        justify-content: flex-end;
    }

    .slider-pagination {
        display: none;
    }
}

/* ===== 반응형: 모바일 (768px 이하) ===== */
@media (max-width: 768px) {
    .slider-controls {
        display: none !important;
    }

    .slider-pagination {
        display: none !important;
    }

    .control-btn {
        width: 32px;
        height: 32px;
        margin-right: 0.5rem;
    }

    .control-btn:last-child {
        margin-right: 0;
    }

    .control-btn:before {
        font-size: 14px;
    }
}

/* ===== 반응형: 작은 모바일 (480px 이하) ===== */
@media (max-width: 480px) {
    .slider-controls {
        right: 1rem;
    }

    .control-btn {
        width: 30px;
        height: 30px;
        margin-right: 0.4rem;
    }

    .control-btn:before {
        font-size: 12px;
    }
}
