/**
 * Slider Styles - Sistema POLICON
 * Estilos para o sistema de slider dinâmico
 */

/* Hero Slider Container */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
    background: #000;
}

.hero-slider .carousel {
    height: 100%;
}

.hero-slider .carousel-inner {
    height: 100%;
}

.hero-slider .carousel-item {
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slider .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 123, 255, 0.8) 0%,
        rgba(0, 86, 179, 0.6) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

.hero-slider .carousel-item.active::before {
    animation: overlayFadeIn 1s ease-in-out;
}

/* Slide Content */
.slide-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.slide-content .container {
    max-width: 800px;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.slide-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
}

.slide-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    line-height: 1.6;
}

.slide-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    border: 2px solid transparent;
}

.slide-button:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.slide-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}

/* Animation Classes */
.carousel-item.active .slide-title {
    animation: slideInUp 1s ease-out 0.2s both;
}

.carousel-item.active .slide-subtitle {
    animation: slideInUp 1s ease-out 0.4s both;
}

.carousel-item.active .slide-description {
    animation: slideInUp 1s ease-out 0.6s both;
}

.carousel-item.active .slide-button {
    animation: slideInUp 1s ease-out 0.8s both;
}

/* Carousel Controls */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-slider .carousel-control-prev {
    left: 30px;
}

.hero-slider .carousel-control-next {
    right: 30px;
}

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
}

/* Carousel Indicators */
.hero-slider .carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
}

.hero-slider .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.hero-slider .carousel-indicators .active {
    background: #007bff;
    border-color: #007bff;
    transform: scale(1.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: white;
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 5px;
}

.scroll-indicator span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .slide-title {
        font-size: 3rem;
    }
    
    .slide-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 991.98px) {
    .hero-slider {
        height: 80vh;
        min-height: 500px;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-subtitle {
        font-size: 1.2rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .hero-slider .carousel-control-prev {
        left: 20px;
    }
    
    .hero-slider .carousel-control-next {
        right: 20px;
    }
}

@media (max-width: 767.98px) {
    .hero-slider {
        height: 70vh;
        min-height: 400px;
    }
    
    .slide-content {
        padding: 0 15px;
    }
    
    .slide-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .slide-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .slide-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .slide-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-slider .carousel-control-prev {
        left: 15px;
    }
    
    .hero-slider .carousel-control-next {
        right: 15px;
    }
    
    .hero-slider .carousel-indicators {
        bottom: 20px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
}

@media (max-width: 575.98px) {
    .hero-slider {
        height: 60vh;
        min-height: 350px;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
        display: none; /* Hide description on very small screens */
    }
    
    .slide-button {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Loading State */
.slider-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.slider-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.slider-loading .loading-text {
    font-size: 1.2rem;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.slider-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    min-height: 600px;
    background: #f8f9fa;
    color: #6c757d;
    text-align: center;
}

.slider-error i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #dc3545;
}

.slider-error h3 {
    margin-bottom: 10px;
    color: #495057;
}

.slider-error p {
    margin-bottom: 0;
}

/* Accessibility */
.hero-slider .carousel-control-prev:focus,
.hero-slider .carousel-control-next:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.hero-slider .carousel-indicators [data-bs-target]:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.slide-button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .carousel-item.active .slide-title,
    .carousel-item.active .slide-subtitle,
    .carousel-item.active .slide-description,
    .carousel-item.active .slide-button {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .hero-slider .carousel-control-prev:hover,
    .hero-slider .carousel-control-next:hover {
        transform: translateY(-50%);
    }
    
    .slide-button:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .hero-slider {
        height: auto;
        min-height: auto;
        max-height: none;
        page-break-inside: avoid;
    }
    
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next,
    .hero-slider .carousel-indicators,
    .scroll-indicator {
        display: none;
    }
    
    .carousel-item {
        display: block !important;
        height: auto;
        margin-bottom: 2rem;
    }
    
    .carousel-item::before {
        display: none;
    }
    
    .slide-content {
        position: static;
        transform: none;
        color: #000;
        text-align: left;
        padding: 2rem;
    }
    
    .slide-title,
    .slide-subtitle,
    .slide-description {
        text-shadow: none;
        color: #000;
    }
    
    .slide-button {
        display: none;
    }
}