/**
 * Custom styles dla Swiper.js slider na stronie głównej
 * Fotoferia.pl - nowoczesny, responsywny design
 */

/* ================================================================
   CONTAINER GŁÓWNY
   ================================================================ */

.spotlight-swiper-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.spotlight-swiper {
    width: 100% !important;
    height: 500px !important;
    max-height: 500px !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #000;
    margin-bottom: 20px !important;
}

/* ================================================================
   SLAJDY
   ================================================================ */

.spotlight-swiper .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.spotlight-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.spotlight-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Obrazki zawsze widoczne */
.spotlight-swiper .swiper-slide img {
    opacity: 1;
}

/* ================================================================
   CAPTION (PODPIS POD ZDJĘCIEM)
   ================================================================ */

.spotlight-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    color: #fff;
    padding: 30px 20px 20px;
    z-index: 10;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.spotlight-caption h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.spotlight-caption p {
    margin: 0;
    font-size: 14px;
    color: #e1e1e1;
    line-height: 1.5;
}

/* Ukryj caption na małych ekranach jeśli jest pusty */
.spotlight-caption:empty {
    display: none;
}

/* ================================================================
   NAVIGATION (STRZAŁKI)
   ================================================================ */

.spotlight-swiper .swiper-button-next,
.spotlight-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(106, 16, 16, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.spotlight-swiper .swiper-button-next:after,
.spotlight-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.spotlight-swiper .swiper-button-next:hover,
.spotlight-swiper .swiper-button-prev:hover {
    background: rgba(135, 22, 16, 0.95);
    transform: scale(1.1);
}

/* ================================================================
   PAGINATION (KROPKI)
   ================================================================ */

.spotlight-swiper .swiper-pagination {
    bottom: 15px;
}

.spotlight-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.spotlight-swiper .swiper-pagination-bullet-active {
    background: #6a1010;
    width: 30px;
    border-radius: 6px;
}

.spotlight-swiper .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ================================================================
   RESPONSIVE - TABLET
   ================================================================ */

@media screen and (max-width: 1024px) {
    .spotlight-swiper {
        height: 400px !important;
        max-height: 400px !important;
    }
    
    .spotlight-caption h3 {
        font-size: 20px;
    }
    
    .spotlight-swiper .swiper-button-next,
    .spotlight-swiper .swiper-button-prev {
        width: 45px;
        height: 45px;
    }
    
    .spotlight-swiper .swiper-button-next:after,
    .spotlight-swiper .swiper-button-prev:after {
        font-size: 18px;
    }
}

/* ================================================================
   RESPONSIVE - MOBILE
   ================================================================ */

@media screen and (max-width: 768px) {
    .spotlight-swiper-wrapper {
        padding: 0 10px;
        margin: 15px auto;
    }
    
    .spotlight-swiper {
        height: 300px !important;
        max-height: 300px !important;
        border-radius: 8px;
    }
    
    .spotlight-caption {
        padding: 20px 15px 15px;
    }
    
    .spotlight-caption h3 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .spotlight-caption p {
        font-size: 13px;
    }
    
    /* Ukryj strzałki na mobile */
    .spotlight-swiper .swiper-button-next,
    .spotlight-swiper .swiper-button-prev {
        display: none;
    }
    
    /* Kropki mniejsze na mobile */
    .spotlight-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
    
    .spotlight-swiper .swiper-pagination-bullet-active {
        width: 20px;
    }
}

/* ================================================================
   RESPONSIVE - SMALL MOBILE
   ================================================================ */

@media screen and (max-width: 480px) {
    .spotlight-swiper {
        height: 250px !important;
        max-height: 250px !important;
        border-radius: 6px;
    }
    
    .spotlight-caption {
        padding: 15px 12px 12px;
    }
    
    .spotlight-caption h3 {
        font-size: 16px;
    }
    
    .spotlight-caption p {
        font-size: 12px;
    }
}

/* ================================================================
   DARK THEME COMPATIBILITY (dla skórki classic)
   ================================================================ */

body.dark-theme .spotlight-swiper,
.skin-classic .spotlight-swiper {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

body.dark-theme .spotlight-caption,
.skin-classic .spotlight-caption {
    background: linear-gradient(to top, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0.8) 50%, transparent 100%);
}

/* ================================================================
   LOADING STATE
   ================================================================ */

.spotlight-swiper.loading {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spotlight-swiper.loading:before {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid rgba(106, 16, 16, 0.3);
    border-top-color: #6a1010;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================================================
   HOVER EFFECTS (Desktop only)
   ================================================================ */

@media (hover: hover) and (pointer: fine) {
    .spotlight-swiper .swiper-slide {
        cursor: pointer;
    }
    
    .spotlight-swiper .swiper-slide img {
        transition: transform 0.5s ease;
    }
    
    .spotlight-swiper .swiper-slide:hover img {
        transform: scale(1.05);
    }
    
    .spotlight-swiper:hover .spotlight-caption {
        transform: translateY(0);
    }
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */

.spotlight-swiper:focus-within {
    outline: 2px solid #6a1010;
    outline-offset: 4px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .spotlight-swiper .swiper-button-next,
    .spotlight-swiper .swiper-button-prev {
        background: rgba(106, 16, 16, 1);
        border: 2px solid #fff;
    }
    
    .spotlight-swiper .swiper-pagination-bullet {
        border: 2px solid #fff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .spotlight-swiper,
    .spotlight-swiper .swiper-slide,
    .spotlight-swiper .swiper-slide img,
    .spotlight-swiper .swiper-button-next,
    .spotlight-swiper .swiper-button-prev,
    .spotlight-caption {
        transition: none !important;
        animation: none !important;
    }
}

/* ================================================================
   PRINT MODE
   ================================================================ */

@media print {
    .spotlight-swiper .swiper-button-next,
    .spotlight-swiper .swiper-button-prev,
    .spotlight-swiper .swiper-pagination {
        display: none !important;
    }
    
    .spotlight-swiper {
        height: auto !important;
    }
}






