/**
 * AW-Slider Frontend Styles
 * Version: 1.0.0
 */

/* ===== BASE SLIDER STYLES ===== */
.aw-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.aw-swiper {
    width: 100%;
    height: 100%;
}

/* Height Classes */
.aw-slider-dynamic-height {
    height: calc(100vh - var(--aw-header-height, 80px));
    min-height: 400px;
}

.aw-slider-full-height {
    height: 100vh;
}

.aw-slider-auto-height {
    height: auto;
    min-height: 400px;
}

.aw-slider-custom-height {
    /* Height set via inline styles */
}

/* ===== SLIDE BASE STYLES ===== */
.aw-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    overflow: hidden;
}

.aw-slide-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.aw-slide-inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Content Layouts */
.aw-slide-content-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.aw-slide-content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 768px) {
    .aw-slide-content-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .aw-slide-text {
        order: 1;
    }
    
    .aw-slide-visual,
    .aw-slide-image {
        order: 2;
    }
}

/* ===== TEXT ELEMENTS ===== */
.aw-slide-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.aw-slide-subtitle-accent {
    color: #a78bfa;
}

.aw-slide-subtitle-video {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

.aw-slide-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    color: white;
}

.aw-slide-title-large {
    font-size: 64px;
}

.aw-slide-title-video {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    color: white;
}

.aw-slide-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.aw-slide-description-large {
    font-size: 18px;
    max-width: 700px;
}

.aw-slide-description-video {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.95);
}

/* Mobile Typography */
@media (max-width: 768px) {
    .aw-slide-subtitle {
        font-size: 14px;
    }
    
    .aw-slide-title {
        font-size: 32px;
    }
    
    .aw-slide-title-large {
        font-size: 40px;
    }
    
    .aw-slide-description {
        font-size: 14px;
    }
    
    .aw-slide-content {
        padding: 0 20px;
    }
}

/* ===== BUTTONS ===== */
.aw-slide-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.aw-slide-buttons-center {
    justify-content: center;
}

.aw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.aw-btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.3);
}

.aw-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(139, 92, 246, 0.4);
    color: white;
    text-decoration: none;
}

.aw-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.aw-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

@media (max-width: 640px) {
    .aw-slide-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .aw-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== OVERLAYS ===== */
.aw-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.aw-slide-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
}

/* ===== MEDIA ELEMENTS ===== */
.aw-slide-media {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.aw-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aw-slide-placeholder {
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.aw-placeholder-svg {
    width: 100%;
    height: 100%;
    max-width: 300px;
    max-height: 300px;
}

/* Video Background */
.aw-slide-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.aw-slide-video-iframe {
    pointer-events: none;
}

/* ===== ILLUSTRATIONS ===== */
.aw-slide-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.aw-slide-illustration {
    max-width: 400px;
    width: 100%;
}

.aw-illustration-animated {
    width: 100%;
    height: auto;
}

.aw-illustration-svg {
    width: 100%;
    height: auto;
    max-height: 400px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* ===== SWIPER NAVIGATION ===== */
.aw-swiper .swiper-button-next,
.aw-swiper .swiper-button-prev {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.aw-swiper .swiper-button-next:hover,
.aw-swiper .swiper-button-prev:hover {
    background: rgba(139, 92, 246, 0.8);
    border-color: rgba(139, 92, 246, 1);
    transform: scale(1.1);
}

.aw-swiper .swiper-button-next::after,
.aw-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 600;
}

.aw-swiper .swiper-pagination {
    bottom: 30px;
}

.aw-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.aw-swiper .swiper-pagination-bullet-active {
    background: #8b5cf6;
    transform: scale(1.3);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .aw-swiper .swiper-button-next,
    .aw-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }
    
    .aw-swiper .swiper-button-next::after,
    .aw-swiper .swiper-button-prev::after {
        font-size: 14px;
    }
    
    .aw-swiper .swiper-pagination {
        bottom: 20px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aw-slide-inner {
    animation: fadeInUp 0.8s ease-out;
}

/* Delayed animations for elements */
.aw-slide-subtitle {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.aw-slide-title {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.aw-slide-description {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.aw-slide-buttons {
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .aw-slide-inner,
    .aw-slide-subtitle,
    .aw-slide-title,
    .aw-slide-description,
    .aw-slide-buttons {
        animation: none;
    }
    
    .aw-btn {
        transition: none;
    }
}

/* ===== NO SLIDES STATE ===== */
.aw-slider-no-slides {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: #9ca3af;
    font-size: 18px;
    text-align: center;
    border-radius: 8px;
}

/* ===== UTILITY CLASSES ===== */
.aw-gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.aw-text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ===== PRINT STYLES ===== */
@media print {
    .aw-slider-wrapper,
    .aw-swiper,
    .aw-slide {
        position: static !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .aw-slide-video-bg,
    .aw-slide-overlay,
    .aw-slide-video-overlay {
        display: none;
    }
}
