/* AuraSlide - Front-End Player Styles */

.as-slider-wrapper {
    --primary-color: #3b82f6;
    --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-duration: 0.6s;
    
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    font-family: var(--font-body);
    box-sizing: border-box;
}

.as-slider-wrapper * {
    box-sizing: border-box;
}

/* Slider Layout Modes - Fluid and Responsive via Aspect Ratio */
.as-layout-header-hero {
    height: 80vh;
    min-height: 480px;
}

.as-layout-standard-banner {
    width: 100%;
    aspect-ratio: 16 / 7;
    min-height: 300px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.as-layout-content-block {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* Responsive adjustments for mobile viewports */
@media (max-width: 768px) {
    .as-layout-header-hero {
        height: 60vh;
        min-height: 350px;
    }
    .as-layout-standard-banner {
        aspect-ratio: 4 / 3;
    }
    .as-layout-content-block {
        aspect-ratio: 4 / 3;
    }
}

/* Slides Container */
.as-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slide Base Class */
.as-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(20px, 6vw, 60px);
}

/* Isolated Background Image for Zoom (Ken Burns) effect */
.as-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 7s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.0);
}

/* Active Zoom */
.as-slide.as-active .as-slide-bg {
    transform: scale(1.08);
}

/* Slide Content Entrance Animations */
.as-slide-title, 
.as-slide-desc, 
.as-slide-actions {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.as-slide.as-active .as-slide-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.as-slide.as-active .as-slide-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.as-slide.as-active .as-slide-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* Transition Effects */
.as-slider-wrapper[data-effect="fade"] .as-slide {
    transition: opacity var(--transition-duration) cubic-bezier(0.4, 0, 0.2, 1), 
                visibility var(--transition-duration);
}

.as-slider-wrapper[data-effect="slide"] .as-slide {
    transition: transform var(--transition-duration) cubic-bezier(0.4, 0, 0.2, 1), 
                opacity var(--transition-duration) ease,
                visibility var(--transition-duration);
}

.as-slider-wrapper[data-effect="slide"] .as-slide.as-enter-right {
    transform: translateX(100%);
    opacity: 0;
    visibility: visible;
}

.as-slider-wrapper[data-effect="slide"] .as-slide.as-enter-left {
    transform: translateX(-100%);
    opacity: 0;
    visibility: visible;
}

.as-slider-wrapper[data-effect="slide"] .as-slide.as-active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.as-slider-wrapper[data-effect="slide"] .as-slide.as-exit-left {
    transform: translateX(-100%);
    opacity: 0;
    visibility: visible;
}

.as-slider-wrapper[data-effect="slide"] .as-slide.as-exit-right {
    transform: translateX(100%);
    opacity: 0;
    visibility: visible;
}

/* Transition Effect: Zoom Scale */
.as-slider-wrapper[data-effect="zoom"] .as-slide {
    transition: transform var(--transition-duration) cubic-bezier(0.16, 1, 0.3, 1), 
                opacity var(--transition-duration) ease,
                visibility var(--transition-duration);
}

.as-slider-wrapper[data-effect="zoom"] .as-slide.as-enter-right,
.as-slider-wrapper[data-effect="zoom"] .as-slide.as-enter-left {
    transform: scale(0.85);
    opacity: 0;
    visibility: visible;
}

.as-slider-wrapper[data-effect="zoom"] .as-slide.as-active {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.as-slider-wrapper[data-effect="zoom"] .as-slide.as-exit-left,
.as-slider-wrapper[data-effect="zoom"] .as-slide.as-exit-right {
    transform: scale(1.15);
    opacity: 0;
    visibility: visible;
}

.as-slide.as-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Visual Overlays & Theme Presets */
.as-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.as-slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
}

/* Card Positioning (Horizontal Margin Alignments) */
.as-slide-content.as-position-left {
    margin-left: 0;
    margin-right: auto;
}
.as-slide-content.as-position-center {
    margin-left: auto;
    margin-right: auto;
}
.as-slide-content.as-position-right {
    margin-left: auto;
    margin-right: 0;
}

.as-slide-card {
    width: 100%;
    padding: 40px;
    border-radius: 16px;
    text-align: left;
    transition: all 0.4s ease;
}

/* Text Alignments */
.as-slide-card.as-text-left {
    text-align: left;
}
.as-slide-card.as-text-center {
    text-align: center;
}
.as-slide-card.as-text-right {
    text-align: right;
}

/* --- THEME PRESET 1: Glass Dark --- */
.as-theme-glass-dark .as-slide-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.4) 100%);
}

.as-theme-glass-dark .as-slide-card {
    background: rgba(15, 17, 23, 0.65);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.as-theme-glass-dark .as-slide-title {
    color: #ffffff;
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.as-theme-glass-dark .as-slide-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(14px, 1.8vw, 17px);
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.as-theme-glass-dark .as-slide-cta-btn {
    display: inline-block;
    background: #ffffff;
    color: #0f1117;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(255,255,255,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.as-theme-glass-dark .as-slide-cta-btn:hover {
    transform: translateY(-2px);
    background: #f0f0f0;
    box-shadow: 0 12px 24px rgba(255,255,255,0.25);
}

/* --- THEME PRESET 2: Glass Light --- */
.as-theme-glass-light .as-slide-overlay {
    background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.15) 100%);
}

.as-theme-glass-light .as-slide-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(31, 38, 135, 0.08);
}

.as-theme-glass-light .as-slide-title {
    color: #111827;
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.as-theme-glass-light .as-slide-desc {
    color: #4b5563;
    font-size: clamp(14px, 1.8vw, 17px);
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.as-theme-glass-light .as-slide-cta-btn {
    display: inline-block;
    background: #111827;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.as-theme-glass-light .as-slide-cta-btn:hover {
    transform: translateY(-2px);
    background: #1f2937;
    box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

/* --- THEME PRESET 3: Minimal Light --- */
.as-theme-minimal-light .as-slide-overlay {
    background: rgba(255, 255, 255, 0.2);
}

.as-theme-minimal-light .as-slide-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    max-width: 550px;
}

.as-theme-minimal-light .as-slide-title {
    color: #111827;
    font-size: clamp(22px, 3.5vw, 36px);
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.as-theme-minimal-light .as-slide-desc {
    color: #6b7280;
    font-size: clamp(13px, 1.6vw, 16px);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.as-theme-minimal-light .as-slide-cta-btn {
    display: inline-block;
    border: 2px solid #111827;
    color: #111827;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.as-theme-minimal-light .as-slide-cta-btn:hover {
    background: #111827;
    color: #ffffff;
}

/* --- THEME PRESET 4: Neo Brutalism --- */
.as-theme-neo-brutalism .as-slide-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.as-theme-neo-brutalism .as-slide-card {
    background: #ffff00; /* Bright yellow */
    border: 4px solid #000000;
    border-radius: 0;
    box-shadow: 10px 10px 0px #000000;
    max-width: 600px;
}

.as-theme-neo-brutalism .as-slide-title {
    color: #000000;
    font-size: clamp(24px, 4.2vw, 40px);
    font-weight: 900;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.as-theme-neo-brutalism .as-slide-desc {
    color: #000000;
    font-size: clamp(14px, 1.8vw, 17px);
    font-weight: 600;
    margin: 0 0 25px 0;
    line-height: 1.4;
}

.as-theme-neo-brutalism .as-slide-cta-btn {
    display: inline-block;
    background: #00ffff; /* Cyber cyan */
    color: #000000;
    font-weight: 800;
    padding: 12px 28px;
    border: 3px solid #000000;
    border-radius: 0;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    box-shadow: 4px 4px 0px #000000;
    transition: all 0.15s ease;
}

.as-theme-neo-brutalism .as-slide-cta-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000000;
    background: #ff00ff; /* Pink highlight */
}

.as-theme-neo-brutalism .as-slide-cta-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000000;
}

/* --- THEME PRESET 5: Gradient Vibrant --- */
.as-theme-gradient-vibrant .as-slide-overlay {
    background: linear-gradient(135deg, rgba(127, 0, 255, 0.75) 0%, rgba(225, 0, 255, 0.4) 100%);
    animation: asMeshGradient 12s ease infinite alternate;
    background-size: 150% 150%;
}

@keyframes asMeshGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.as-theme-gradient-vibrant .as-slide-card {
    background: transparent;
    padding: 0;
    text-align: center;
}

.as-theme-gradient-vibrant .as-slide-title {
    color: #ffffff;
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 900;
    margin: 0 0 15px 0;
    line-height: 1.15;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.as-theme-gradient-vibrant .as-slide-desc {
    color: #ffffff;
    font-size: clamp(15px, 2vw, 20px);
    margin: 0 0 30px 0;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.as-theme-gradient-vibrant .as-slide-cta-btn {
    display: inline-block;
    background: #00ffff;
    color: #000000;
    font-weight: 800;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 15px;
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.4);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
}

.as-theme-gradient-vibrant .as-slide-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 255, 255, 0.6);
}

/* Nav Buttons */
.as-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.as-slider-wrapper:hover .as-nav-btn {
    opacity: 1;
}

.as-prev-btn {
    left: 20px;
}

.as-next-btn {
    right: 20px;
}

.as-nav-btn:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-50%) scale(1.05);
}

/* Theme specifics for nav buttons */
.as-theme-glass-light .as-nav-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #111827;
}

.as-theme-glass-light .as-nav-btn:hover {
    background: #111827;
    color: #ffffff;
}

.as-theme-minimal-light .as-nav-btn {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #111827;
    border-radius: 4px;
    width: 40px;
    height: 40px;
}

.as-theme-minimal-light .as-nav-btn:hover {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.as-theme-neo-brutalism .as-nav-btn {
    background: #00ffff;
    border: 3px solid #000000;
    color: #000000;
    border-radius: 0;
    box-shadow: 3px 3px 0px #000000;
    width: 48px;
    height: 48px;
    opacity: 1;
}

.as-theme-neo-brutalism .as-nav-btn:hover {
    background: #ffff00;
    transform: translateY(-50%) translate(-1px, -1px);
    box-shadow: 4px 4px 0px #000000;
}

/* Dots Pagination */
.as-dots-container {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.as-dot {
    position: relative;
    width: 14px;
    height: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.as-dot-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.as-dot.as-active .as-dot-circle {
    background: #ffffff;
    transform: scale(1.2);
}

.as-theme-glass-light .as-dot-circle {
    background: rgba(0, 0, 0, 0.25);
}

.as-theme-glass-light .as-dot.as-active .as-dot-circle {
    background: #111827;
}

.as-theme-minimal-light .as-dot-circle {
    background: #d1d5db;
    border-radius: 2px;
    width: 6px;
    height: 6px;
}

.as-theme-minimal-light .as-dot.as-active .as-dot-circle {
    background: #111827;
    width: 16px;
    border-radius: 2px;
}

.as-theme-neo-brutalism .as-dot-circle {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 0;
    width: 12px;
    height: 12px;
}

.as-theme-neo-brutalism .as-dot.as-active .as-dot-circle {
    background: #ffff00;
    transform: scale(1.1);
}

/* Autoplay active progress bar anim option */
.as-dot-fill {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0;
}

/* Error message styling */
.as-error-msg {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
    padding: 20px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    margin: 20px 0;
}
