/* banner.css - Ронин стиль для карусели (полностью адаптивный) */

/* ============================================
   ОСНОВНЫЕ СТИЛИ КАРУСЕЛИ
   ============================================ */

.banner-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: #1a1a1a;
}

.banner-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Слайды */
.banner-slides {
    display: flex;
    will-change: transform;
}

.banner-slide {
    flex: 0 0 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.banner-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    filter: brightness(0.85) contrast(1.05);
    transition: filter 0.5s, transform 0.5s;
}

.banner-slide:hover img {
    filter: brightness(0.95) contrast(1.1);
    transform: scale(1.02);
}

/* Подпись к баннеру */
.banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #e8d5b5;
    padding: 50px 30px 30px;
    text-align: center;
    font-family: 'Noto Serif JP', 'Inter', serif;
    transform: translateY(0);
    transition: transform 0.3s;
}

.banner-slide:hover .banner-caption {
    transform: translateY(-5px);
}

.banner-caption-title {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-caption-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0.8;
    font-weight: 300;
}

/* Навигационные кнопки */
.banner-prev, .banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    color: #e8d5b5;
    border: 1px solid rgba(200, 180, 140, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.banner-prev:hover, .banner-next:hover {
    background: rgba(196, 167, 125, 0.85);
    border-color: #e8d5b5;
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

/* Точки навигации */
.banner-dots {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.banner-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot:hover {
    background: rgba(196, 167, 125, 0.8);
    transform: scale(1.2);
}

.banner-dot.active {
    background: #c4a77d;
    width: 24px;
    border-radius: 5px;
}

/* ============================================
   WOW АНИМАЦИИ
   ============================================ */

@keyframes bannerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bannerSlideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes bannerSlideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes bannerZoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.banner-wow-fadeIn {
    animation: bannerFadeIn 0.8s ease-out;
}

.banner-wow-slideInLeft {
    animation: bannerSlideInLeft 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.banner-wow-slideInRight {
    animation: bannerSlideInRight 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.banner-wow-zoomIn {
    animation: bannerZoomIn 0.6s cubic-bezier(0.2, 0.8, 0.4, 1);
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

/* Планшеты */
@media (max-width: 1024px) {
    .banner-slide img {
        height: 400px;
    }
    
    .banner-caption-title {
        font-size: 24px;
    }
    
    .banner-caption-subtitle {
        font-size: 12px;
    }
    
    .banner-caption {
        padding: 40px 25px 25px;
    }
    
    .banner-prev, .banner-next {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .banner-carousel-container {
        border-radius: 16px;
    }
    
    .banner-slide img {
        height: 320px;
    }
    
    .banner-caption-title {
        font-size: 18px;
        letter-spacing: 2px;
    }
    
    .banner-caption-subtitle {
        font-size: 10px;
        letter-spacing: 1px;
    }
    
    .banner-caption {
        padding: 30px 20px 20px;
    }
    
    .banner-prev, .banner-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .banner-prev {
        left: 12px;
    }
    
    .banner-next {
        right: 12px;
    }
    
    .banner-dots {
        bottom: 15px;
    }
    
    .banner-dot {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
    
    .banner-dot.active {
        width: 18px;
    }
}

/* Маленькие телефоны */
@media (max-width: 480px) {
    .banner-slide img {
        height: 250px;
    }
    
    .banner-caption-title {
        font-size: 14px;
        letter-spacing: 1px;
        margin-bottom: 4px;
    }
    
    .banner-caption-subtitle {
        font-size: 9px;
    }
    
    .banner-caption {
        padding: 20px 15px 12px;
    }
    
    .banner-prev, .banner-next {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .banner-prev {
        left: 8px;
    }
    
    .banner-next {
        right: 8px;
    }
    
    .banner-dots {
        bottom: 10px;
    }
    
    .banner-dot {
        width: 6px;
        height: 6px;
        margin: 0 3px;
    }
    
    .banner-dot.active {
        width: 14px;
    }
}

/* Touch-устройства - увеличиваем зону нажатия */
@media (hover: none) and (pointer: coarse) {
    .banner-prev, .banner-next {
        min-width: 44px;
        min-height: 44px;
        opacity: 0.8;
    }
    
    .banner-dot {
        min-width: 10px;
        min-height: 10px;
        margin: 0 6px;
    }
}

/* Альбомная ориентация на мобильных */
@media (max-width: 896px) and (orientation: landscape) {
    .banner-slide img {
        height: 280px;
    }
    
    .banner-caption-title {
        font-size: 16px;
    }
    
    .banner-caption {
        padding: 20px 20px 15px;
    }
}

/* ============================================
   ПОДДЕРЖКА ТЕМНОЙ ТЕМЫ
   ============================================ */

@media (prefers-color-scheme: dark) {
    .banner-carousel-container {
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    }
}

/* ============================================
   АНИМАЦИЯ ЗАГРУЗКИ
   ============================================ */

.banner-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(200, 180, 140, 0.2);
    border-top-color: #c4a77d;
    border-radius: 50%;
    animation: bannerSpin 0.8s linear infinite;
}

@keyframes bannerSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================
   ПЛЕЙСХОЛДЕР ПРИ ЗАГРУЗКЕ
   ============================================ */

.banner-carousel-container:empty {
    min-height: 400px;
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.8), rgba(15, 15, 15, 0.9));
    border-radius: 20px;
    position: relative;
}

.banner-carousel-container:empty::after {
    content: '⚔️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: #c4a77d;
    animation: bannerPulse 1.5s ease-in-out infinite;
}

@keyframes bannerPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* ============================================
   ОПТИМИЗАЦИЯ ПРОИЗВОДИТЕЛЬНОСТИ
   ============================================ */

.banner-slides,
.banner-slide img {
    will-change: transform;
}

.banner-slide {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}