/* Hero Carousel Styles */

.hero-section {
    position: relative;
    height: calc(100vh - 72px);
    overflow: hidden;
    width: 100vw;
    margin: 0;
    padding: 0;
    left: 0;
    right: 0;
}

.hero-carousel {
    position: relative;
    width: 100vw;
    height: 100%;
    margin: 0;
    padding: 0;
    left: 0;
    right: 0;
}

.carousel-container {
    position: relative;
    width: 100vw;
    height: 100%;
    margin: 0;
    padding: 0;
    left: 0;
    right: 0;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    opacity: 0;
}

.carousel-slide.active {
    transform: translateX(0);
    opacity: 1;
}

.carousel-slide.prev {
    transform: translateX(-100%);
    opacity: 1;
}

.carousel-slide.next {
    transform: translateX(100%);
    opacity: 1;
}

.carousel-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* Navigation Controls */
.carousel-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

/* Play/Pause Button - Center 1/2 area */
.carousel-play-pause {
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 100%;
    background: none;
    border: none;
    color: white;
    font-size: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    padding: 0;
    pointer-events: auto;
}


.hero-carousel:hover .carousel-play-pause {
    opacity: 0.9;
}

.carousel-play-pause:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.2);
}

.carousel-play-pause i {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation Arrow Buttons - 1/4 tappable areas */
.carousel-prev {
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    height: 100%;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    padding: 0;
    pointer-events: auto;
}

.carousel-next {
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    height: 100%;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    padding: 0;
    pointer-events: auto;
}

.hero-carousel:hover .carousel-prev,
.hero-carousel:hover .carousel-next {
    opacity: 0.9;
}

.carousel-prev:hover,
.carousel-next:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.2);
}

.carousel-prev:active,
.carousel-next:active {
    transform: scale(0.95);
}

.carousel-prev i,
.carousel-next i {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    stroke-width: 2;
}

/* Focus states for accessibility */
.carousel-prev:focus,
.carousel-next:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
    opacity: 1;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .carousel-prev,
    .carousel-next {
        opacity: 0.7;
        animation: pulse 2s infinite;
    }
    
    .carousel-prev:active,
    .carousel-next:active {
        background-color: rgba(0, 0, 0, 0.4);
        transform: scale(0.95);
        animation: none;
    }
}

/* Subtle pulse animation for touch devices */
@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.9;
    }
}

/* Ensure minimum touch target size for accessibility */
@media (max-width: 768px) {
    .carousel-prev,
    .carousel-next {
        min-width: 48px;
        min-height: 48px;
    }
}

/* Info Overlay */
.carousel-info {
    position: absolute;
    bottom: 32px;
    left: 32px;
    right: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: white;
    z-index: 20;
    pointer-events: none;
}

.carousel-title-container {
    flex: 1;
}

.carousel-subtitle {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.75;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.carousel-title {
    font-size: 16px;
    font-weight: 300;
    opacity: 0.9;
    margin: 0;
}

.carousel-counter {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.75;
    letter-spacing: 0.05em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        width: 100vw;
        margin: 0;
        padding: 0;
        left: 0;
        right: 0;
    }
    
    .hero-carousel {
        width: 100vw;
        margin: 0;
        padding: 0;
        left: 0;
        right: 0;
    }
    
    .carousel-container {
        width: 100vw;
        margin: 0;
        padding: 0;
        left: 0;
        right: 0;
    }
    
    .carousel-info {
        bottom: 16px;
        left: 16px;
        right: 16px;
    }
    
    .carousel-subtitle,
    .carousel-title,
    .carousel-counter {
        font-size: 12px;
    }
    
    .carousel-play-pause i {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    /* Mobile navigation buttons */
    .carousel-prev i,
    .carousel-next i {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 100vh;
        width: 100vw;
        margin: 0;
        padding: 0;
        left: 0;
        right: 0;
    }
    
    .hero-carousel {
        width: 100vw;
        margin: 0;
        padding: 0;
        left: 0;
        right: 0;
    }
    
    .carousel-container {
        width: 100vw;
        margin: 0;
        padding: 0;
        left: 0;
        right: 0;
    }
    
    .carousel-info {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }
    
    .carousel-subtitle,
    .carousel-title,
    .carousel-counter {
        font-size: 11px;
    }
    
    .carousel-play-pause i {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    /* Small mobile navigation buttons */
    .carousel-prev i,
    .carousel-next i {
        width: 40px;
        height: 40px;
    }
}

/* Loading states */
.carousel-slide video,
.carousel-slide img {
    transition: opacity 0.3s ease;
}

.carousel-slide video[data-loading="true"],
.carousel-slide img[data-loading="true"] {
    opacity: 0.5;
}

/* Video specific styles */
.carousel-slide video {
    background-color: #000;
}

/* Smooth transitions for slide changes */
.carousel-container {
    will-change: transform;
}

.carousel-slide {
    will-change: opacity;
}

/* Focus states for accessibility */
.carousel-play-pause:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Index page specific styles - Full area tappable for play/pause */
.index-carousel .carousel-play-pause {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    color: white;
    font-size: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    padding: 0;
    pointer-events: auto;
    z-index: 15;
}

.index-carousel:hover .carousel-play-pause {
    opacity: 0.9;
}

.index-carousel .carousel-play-pause:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
}

.index-carousel .carousel-play-pause i {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.index-carousel .carousel-play-pause:hover i {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

/* Mobile responsive for index carousel */
@media (max-width: 768px) {
    .index-carousel .carousel-play-pause i {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .index-carousel .carousel-play-pause i {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}