/**
 * Banner Responsivo - Syscel
 * Sistema de banners full-width com altura fixa e responsividade
 * Tamanho recomendado: 1920x400px
 */

/* ============================================
   BANNER CAROUSEL - SISTEMA RESPONSIVO
   ============================================ */

/* Banner Full Width */
.banner-full-width {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.banner-full-width .carousel-inner {
    border-radius: 0;
    overflow: hidden;
}

/* Container do Banner com altura fixa */
.banner-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px; /* Altura fixa para desktop */
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.85);
    transition: transform 0.5s ease;
}

.carousel-item:hover .banner-image-wrapper img {
    transform: scale(1.02);
}

/* ============================================
   CAPTION/OVERLAY DO BANNER
   ============================================ */

.banner-full-width .carousel-caption {
    position: absolute;
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    right: auto;
    width: auto;
    max-width: 700px;
    padding: 2rem 3rem;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    text-align: center;
    z-index: 10;
}

.banner-full-width .carousel-caption h2 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-full-width .carousel-caption p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.banner-full-width .carousel-caption .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.6rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.banner-full-width .carousel-caption .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* ============================================
   CONTROLES DO CAROUSEL
   ============================================ */

.banner-full-width .carousel-control-prev,
.banner-full-width .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    margin: 0 15px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.banner-full-width .carousel-control-prev:hover,
.banner-full-width .carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.4);
}

.banner-full-width .carousel-control-prev-icon,
.banner-full-width .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Indicadores do Carousel */
.banner-full-width .carousel-indicators {
    bottom: 15px;
    margin-bottom: 0;
}

.banner-full-width .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.banner-full-width .carousel-indicators button.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* ============================================
   RESPONSIVIDADE - TABLETS
   ============================================ */

@media (max-width: 1024px) {
    .banner-image-wrapper {
        height: 350px;
    }
    
    .banner-full-width .carousel-caption {
        max-width: 600px;
        padding: 1.5rem 2.5rem;
    }
    
    .banner-full-width .carousel-caption h2 {
        font-size: 1.8rem !important;
    }
    
    .banner-full-width .carousel-caption p {
        font-size: 1rem !important;
    }
}

/* ============================================
   RESPONSIVIDADE - MOBILE LANDSCAPE
   ============================================ */

@media (max-width: 768px) {
    .banner-image-wrapper {
        height: 300px;
    }
    
    .banner-full-width .carousel-caption {
        max-width: 85%;
        padding: 1.2rem 1.8rem;
    }
    
    .banner-full-width .carousel-caption h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.4rem;
    }
    
    .banner-full-width .carousel-caption p {
        font-size: 0.9rem !important;
        margin-bottom: 0.8rem;
    }
    
    .banner-full-width .carousel-caption .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .banner-full-width .carousel-control-prev,
    .banner-full-width .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }
    
    .banner-full-width .carousel-indicators {
        bottom: 10px;
    }
    
    .banner-full-width .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

/* ============================================
   RESPONSIVIDADE - MOBILE PORTRAIT
   ============================================ */

@media (max-width: 576px) {
    .banner-image-wrapper {
        height: 250px;
    }
    
    .banner-full-width .carousel-caption {
        max-width: 90%;
        padding: 1rem 1.5rem;
        border-radius: 12px;
    }
    
    .banner-full-width .carousel-caption h2 {
        font-size: 1.2rem !important;
        margin-bottom: 0.3rem;
    }
    
    .banner-full-width .carousel-caption p {
        font-size: 0.85rem !important;
        margin-bottom: 0.6rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .banner-full-width .carousel-caption .btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .banner-full-width .carousel-control-prev,
    .banner-full-width .carousel-control-next {
        width: 35px;
        height: 35px;
        margin: 0 8px;
    }
}

/* ============================================
   RESPONSIVIDADE - MOBILE PEQUENO
   ============================================ */

@media (max-width: 400px) {
    .banner-image-wrapper {
        height: 220px;
    }
    
    .banner-full-width .carousel-caption {
        padding: 0.8rem 1rem;
    }
    
    .banner-full-width .carousel-caption h2 {
        font-size: 1rem !important;
    }
    
    .banner-full-width .carousel-caption p {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 1;
    }
    
    .banner-full-width .carousel-caption .btn {
        padding: 0.35rem 1rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.carousel-item.active .carousel-caption {
    animation: fadeInUp 0.5s ease-out;
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .banner-image-wrapper img,
    .carousel-item.active .carousel-caption,
    .banner-full-width .carousel-control-prev,
    .banner-full-width .carousel-control-next,
    .banner-full-width .carousel-indicators button {
        transition: none;
        animation: none;
    }
    
    .carousel-item:hover .banner-image-wrapper img {
        transform: none;
    }
}

/* ============================================
   FALLBACK PARA CAROUSEL PADRÃO
   ============================================ */

.carousel-item {
    position: relative;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.55);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
