/**
 * Vec Slider - Modern Slider with Design System Integration
 * Uses VEC Design System variables (see DESIGN_SYSTEM.md)
 */

/* ========================================
   SLIDER CONTAINER
   ======================================== */

.vec-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--color-background-alt);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.vec-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}


/* ========================================
   INDIVIDUAL SLIDES
   ======================================== */

.vec-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
}

.vec-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Overlay - color controlled by admin setting via inline style */
.vec-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


/* ========================================
   SLIDE CONTENT
   ======================================== */

.vec-slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    max-width: 900px;
    width: 90%;
    padding: var(--space-m);
}

.vec-slide-title {
    font-family: var(--font-family-heading);
    color: var(--color-background);
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-h1);
    margin: 0 0 var(--space-s) 0;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.8s ease-out 0.2s backwards;
}

.vec-slide-subtitle {
    font-family: var(--font-family-base);
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--font-size-body-large);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-body-large);
    margin: 0 0 var(--space-l) 0;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4);
    animation: slideInUp 0.8s ease-out 0.4s backwards;
}

.vec-slide-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    padding: var(--space-xs) var(--space-l);
    background-color: var(--color-primary);
    color: var(--color-background);
    text-decoration: none;
    font-family: var(--font-family-base);
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-body-large);
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 16px rgba(218, 41, 28, 0.3);
    transition: all var(--transition-base);
    animation: slideInUp 0.8s ease-out 0.6s backwards;
    border: 2px solid var(--color-primary);
}

.vec-slide-button:hover {
    background-color: var(--color-background);
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(218, 41, 28, 0.4);
}

.vec-slide-button:active {
    transform: translateY(-2px);
}

/* Slide animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================
   PROGRESS INDICATORS (Modern Dots)
   ======================================== */

.vec-slider-progress {
    position: absolute;
    bottom: var(--space-m);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-xs);
    z-index: 10;
    background: rgba(0, 0, 0, 0.25);
    padding: var(--space-2xs) var(--space-s);
    border-radius: var(--radius-pill);
    backdrop-filter: blur(8px);
}

.vec-progress-item {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
}

.vec-progress-item:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.vec-progress-item.active,
.vec-progress-item.completed {
    background-color: var(--color-background, #fff);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

.vec-progress-bar {
    display: none;
}


/* ========================================
   NAVIGATION ARROWS
   ======================================== */

.vec-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-background);
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.vec-slider-arrow:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(218, 41, 28, 0.4);
}

.vec-slider-arrow:focus {
    outline: none;
}

.vec-slider-arrow:focus:not(:hover) {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.vec-slider-arrow:active {
    transform: translateY(-50%) scale(1.05);
}

.vec-slider-prev {
    left: var(--space-m);
}

.vec-slider-next {
    right: var(--space-m);
}

.vec-slider-arrow svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}


/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .vec-slider {
        height: 450px !important;
        border-radius: var(--radius-md);
    }

    .vec-slide-title {
        font-size: var(--font-size-h2);
        line-height: var(--line-height-h2);
    }

    .vec-slide-subtitle {
        font-size: var(--font-size-body);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .vec-slider {
        height: 400px !important;
        border-radius: var(--radius-sm);
    }

    .vec-slide-content {
        width: 85%;
        padding: var(--space-s);
    }

    .vec-slide-title {
        font-size: 2rem;
        margin-bottom: var(--space-2xs);
    }

    .vec-slide-subtitle {
        font-size: var(--font-size-body-small);
        margin-bottom: var(--space-m);
    }

    .vec-slide-button {
        padding: var(--space-2xs) var(--space-m);
        font-size: var(--font-size-body-small);
    }

    .vec-slider-arrow {
        width: 56px;
        height: 56px;
    }

    .vec-slider-arrow svg {
        width: 28px;
        height: 28px;
    }

    .vec-slider-prev {
        left: var(--space-xs);
    }

    .vec-slider-next {
        right: var(--space-xs);
    }

    .vec-progress-item {
        width: 8px;
        height: 8px;
    }

    .vec-slider-progress {
        bottom: var(--space-s);
        padding: var(--space-2xs) var(--space-xs);
        gap: var(--space-2xs);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .vec-slider {
        height: 320px !important;
    }

    .vec-slide-content {
        width: 90%;
    }

    .vec-slide-title {
        font-size: 1.5rem;
    }

    .vec-slide-subtitle {
        font-size: var(--font-size-caption);
        margin-bottom: var(--space-s);
    }

    .vec-slide-button {
        padding: var(--space-2xs) var(--space-s);
        font-size: var(--font-size-caption);
    }

    .vec-slider-arrow {
        width: 56px;
        height: 56px;
    }

    .vec-slider-arrow svg {
        width: 28px;
        height: 28px;
    }

    .vec-progress-item {
        width: 7px;
        height: 7px;
    }
}
