/**
 * Modern Hero Carousel Styles - Lisenziya.az
 * Mobile-First Responsive Design
 * Date: 2026-01-18
 */

/* ========== HERO CAROUSEL CONTAINER ========== */
.lz-hero-carousel {
    position: relative;
    width: 100%;
    min-height: 250px;
    background: #1a1a2e;
    overflow: hidden;
    z-index: 1;
    margin: 0;
    padding: 0;
    display: block;
    clear: both;
}

.lz-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

/* ========== SVG LOGO OVERLAY ========== */
.lz-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    opacity: 0.08;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.lz-logo-overlay svg {
    width: 400px;
    height: auto;
    max-width: 90vw;
}

.lz-hero-carousel:hover .lz-logo-overlay {
    opacity: 0.12;
}

/* ========== CAROUSEL WRAPPER ========== */
.lz-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lz-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== CAROUSEL SLIDES ========== */
.lz-carousel-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.lz-slide-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.lz-slide-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* ========== SLIDE CONTENT ========== */
.lz-slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
}

.lz-slide-text {
    flex: 1;
    max-width: 600px;
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.lz-carousel-slide:not(.lz-slide-active) .lz-slide-text {
    opacity: 0;
    transform: translateX(-30px);
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lz-slide-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 20px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.lz-slide-description {
    font-family: 'Barlow', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin: 0 0 40px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ========== SLIDE BUTTON ========== */
.lz-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50px;
    color: #ffffff;
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.lz-slide-btn:hover {
    background: rgba(255,255,255,0.95);
    color: #667eea;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.lz-slide-btn svg {
    transition: transform 0.3s ease;
}

.lz-slide-btn:hover svg {
    transform: translateX(4px);
}

/* ========== SLIDE IMAGE ========== */
.lz-slide-image {
    flex: 0 0 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.lz-carousel-slide:not(.lz-slide-active) .lz-slide-image {
    opacity: 0;
    transform: translateX(30px);
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lz-image-placeholder {
    width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

.lz-image-placeholder svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ========== CAROUSEL CONTROLS ========== */
.lz-carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.lz-carousel-prev,
.lz-carousel-next {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    pointer-events: all;
}

.lz-carousel-prev:hover,
.lz-carousel-next:hover {
    background: rgba(255,255,255,0.95);
    border-color: #ffffff;
    color: #667eea;
    transform: scale(1.1);
}

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

.lz-carousel-prev {
    margin-left: -28px;
}

.lz-carousel-next {
    margin-right: -28px;
}

/* ========== CAROUSEL INDICATORS ========== */
.lz-carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.lz-indicator {
    width: 12px;
    height: 12px;
    padding: 0;
    background: rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lz-indicator:hover {
    background: rgba(255,255,255,0.5);
    transform: scale(1.2);
}

.lz-indicator-active {
    width: 40px;
    border-radius: 6px;
    background: rgba(255,255,255,0.9);
    border-color: #ffffff;
}

/* ========== RESPONSIVE - TABLET ========== */
@media screen and (max-width: 1024px) {
    .lz-hero-carousel {
        min-height: 450px;
        margin-top: 0;
    }

    .lz-carousel-slide {
        min-height: 450px;
        padding: 60px 20px;
    }

    .lz-slide-content {
        gap: 40px;
    }

    .lz-slide-title {
        font-size: 40px;
    }

    .lz-slide-description {
        font-size: 18px;
    }

    .lz-slide-image {
        flex: 0 0 280px;
    }

    .lz-logo-overlay svg {
        width: 500px;
    }

    .lz-carousel-prev,
    .lz-carousel-next {
        width: 48px;
        height: 48px;
    }
}

/* ========== RESPONSIVE - MOBILE ========== */
@media screen and (max-width: 768px) {
    .lz-hero-carousel {
        min-height: 280px;
        margin-top: 0;
        position: relative;
        z-index: 1;
    }

    .lz-carousel-slide {
        min-height: 280px;
        padding: 25px 15px 50px 15px;
    }

    .lz-slide-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .lz-slide-text {
        max-width: 100%;
    }

    .lz-slide-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .lz-slide-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .lz-slide-btn {
        padding: 14px 28px;
        font-size: 16px;
    }

    .lz-slide-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 240px;
        order: -1;
    }

    .lz-logo-overlay svg {
        width: 350px;
    }

    .lz-carousel-controls {
        padding: 0 10px;
    }

    .lz-carousel-prev,
    .lz-carousel-next {
        width: 44px;
        height: 44px;
    }

    .lz-carousel-prev {
        margin-left: 0;
    }

    .lz-carousel-next {
        margin-right: 0;
    }

    .lz-carousel-indicators {
        bottom: 20px;
        gap: 8px;
    }

    .lz-indicator {
        width: 10px;
        height: 10px;
    }

    .lz-indicator-active {
        width: 32px;
    }
}

/* ========== RESPONSIVE - SMALL MOBILE ========== */
@media screen and (max-width: 480px) {
    .lz-hero-carousel {
        min-height: 260px;
    }

    .lz-carousel-slide {
        min-height: 260px;
        padding: 20px 15px 45px 15px;
    }

    .lz-slide-title {
        font-size: 26px;
    }

    .lz-slide-description {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .lz-slide-btn {
        padding: 12px 24px;
        font-size: 15px;
        gap: 8px;
    }

    .lz-slide-btn svg {
        width: 16px;
        height: 16px;
    }

    .lz-slide-image {
        max-width: 200px;
    }

    .lz-logo-overlay svg {
        width: 280px;
    }

    .lz-carousel-prev,
    .lz-carousel-next {
        width: 40px;
        height: 40px;
    }

    .lz-carousel-prev svg,
    .lz-carousel-next svg {
        width: 20px;
        height: 20px;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    .lz-carousel-track,
    .lz-slide-text,
    .lz-slide-image,
    .lz-slide-btn,
    .lz-carousel-prev,
    .lz-carousel-next,
    .lz-indicator {
        animation: none;
        transition: none;
    }

    .lz-slide-background::after {
        animation: none;
    }

    .lz-image-placeholder {
        animation: none;
    }
}

/* Focus states for keyboard navigation */
.lz-carousel-prev:focus,
.lz-carousel-next:focus,
.lz-indicator:focus,
.lz-slide-btn:focus {
    outline: 3px solid rgba(255,255,255,0.8);
    outline-offset: 4px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .lz-slide-title {
        text-shadow: none;
    }

    .lz-slide-description {
        text-shadow: none;
    }

    .lz-carousel-prev,
    .lz-carousel-next {
        border-width: 3px;
    }

    .lz-indicator {
        border-width: 3px;
    }
}

/* ========== LOADING STATE ========== */
.lz-hero-carousel.lz-loading {
    min-height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.lz-hero-carousel.lz-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: carouselSpin 0.8s linear infinite;
    z-index: 100;
}

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

/* ========== PRINT STYLES ========== */
@media print {
    .lz-hero-carousel {
        min-height: auto;
        page-break-inside: avoid;
    }

    .lz-carousel-controls,
    .lz-carousel-indicators {
        display: none;
    }

    .lz-carousel-slide {
        page-break-inside: avoid;
    }
}
