/**
 * vSkul Responsive Sliding Banner CSS
 * Mobile-first design with Bootstrap/Tailwind compatibility
 * Brand colors: Navy #002B5B, Cyan #00CED1, Gold #FFD700
 */

/* ============================================
   BANNER CONTAINER & LAYOUT
   ============================================ */

.vskul-banner-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    margin: 0;
    padding: 0;
}

.vskul-banner-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #002B5B 0%, #003366 50%, #003d7a 100%);
    border-radius: 0;
}

/* Responsive height adjustments */
@media (min-width: 576px) {
    .vskul-banner-container {
        height: 350px;
    }
}

@media (min-width: 768px) {
    .vskul-banner-container {
        height: 400px;
        border-radius: 0;
    }
}

@media (min-width: 1024px) {
    .vskul-banner-container {
        height: 480px;
    }
}

/* ============================================
   SLIDE TRACK & SLIDES
   ============================================ */

.vskul-slides-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.vskul-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Slide content structure */
.vskul-slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .vskul-slide-content {
        padding: 40px;
    }
}

@media (min-width: 1024px) {
    .vskul-slide-content {
        padding: 60px;
    }
}

/* Slide text section */
.vskul-slide-text {
    flex: 1;
    z-index: 2;
    color: #ffffff;
    max-width: 100%;
}

@media (min-width: 768px) {
    .vskul-slide-text {
        max-width: 55%;
        padding-right: 30px;
    }
}

.vskul-slide-text h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 15px 0;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (min-width: 576px) {
    .vskul-slide-text h2 {
        font-size: 28px;
        margin: 0 0 18px 0;
    }
}

@media (min-width: 768px) {
    .vskul-slide-text h2 {
        font-size: 36px;
        margin: 0 0 20px 0;
    }
}

@media (min-width: 1024px) {
    .vskul-slide-text h2 {
        font-size: 44px;
    }
}

.vskul-slide-text p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

@media (min-width: 576px) {
    .vskul-slide-text p {
        font-size: 15px;
        margin: 0 0 24px 0;
    }
}

@media (min-width: 768px) {
    .vskul-slide-text p {
        font-size: 16px;
        line-height: 1.7;
        margin: 0 0 28px 0;
    }
}

@media (min-width: 1024px) {
    .vskul-slide-text p {
        font-size: 18px;
    }
}

/* Slide image section */
.vskul-slide-image {
    flex: 0 0 auto;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .vskul-slide-image {
        display: flex;
        flex: 0 0 40%;
        padding-left: 20px;
    }
}

.vskul-slide-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    
    /* Scale responsively without needing multiple sizes */
    min-width: 200px;
    max-width: 500px;
}

/* ============================================
   CTA BUTTONS
   ============================================ */

.vskul-slide-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .vskul-slide-cta {
        gap: 16px;
        flex-wrap: nowrap;
        margin-top: 24px;
    }
}

.vskul-slide-cta a {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .vskul-slide-cta a {
        padding: 12px 32px;
        font-size: 15px;
    }
}

.vskul-slide-cta .btn-primary {
    background: #00CED1;
    color: #002B5B;
}

.vskul-slide-cta .btn-primary:hover {
    background: #00b8b8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 206, 209, 0.3);
}

.vskul-slide-cta .btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.vskul-slide-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00CED1;
    color: #00CED1;
    transform: translateY(-2px);
}

/* ============================================
   NAVIGATION CONTROLS
   ============================================ */

/* Arrow buttons */
.vskul-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.vskul-banner-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.05);
}

.vskul-banner-arrow:active {
    transform: translateY(-50%) scale(0.98);
}

.vskul-banner-arrow.prev {
    left: 12px;
}

.vskul-banner-arrow.next {
    right: 12px;
}

@media (min-width: 768px) {
    .vskul-banner-arrow {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    .vskul-banner-arrow.prev {
        left: 20px;
    }

    .vskul-banner-arrow.next {
        right: 20px;
    }
}

/* Hide arrows on mobile */
@media (max-width: 576px) {
    .vskul-banner-arrow {
        display: none;
    }
}

/* ============================================
   DOTS NAVIGATION
   ============================================ */

.vskul-banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

@media (min-width: 768px) {
    .vskul-banner-dots {
        bottom: 30px;
        gap: 12px;
    }
}

.vskul-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .vskul-dot {
        width: 12px;
        height: 12px;
    }
}

.vskul-dot.active {
    background: #00CED1;
    border-color: #00CED1;
    width: 24px;
    border-radius: 6px;
}

@media (min-width: 768px) {
    .vskul-dot.active {
        width: 28px;
    }
}

.vskul-dot:hover {
    background: rgba(0, 206, 209, 0.6);
    border-color: #00CED1;
}

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */

.vskul-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 206, 209, 0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.vskul-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

/* ============================================
   BADGE & HIGHLIGHTS
   ============================================ */

.vskul-slide-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.9);
    color: #002B5B;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .vskul-slide-badge {
        padding: 8px 16px;
        font-size: 13px;
        margin-bottom: 16px;
    }
}

/* ============================================
   ANIMATION STATES
   ============================================ */

.vskul-slide-text.fade-in {
    animation: slideTextFadeIn 0.6s ease-out forwards !important;
    opacity: 1 !important;
}

@keyframes slideTextFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1 !important;
        transform: translateY(0);
    }
}

.vskul-slide-image.fade-in {
    animation: slideImageFadeIn 0.6s ease-out 0.2s forwards !important;
    opacity: 1 !important;
}

@keyframes slideImageFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1 !important;
        transform: scale(1);
    }
}

/* Ensure text/images are visible by default */
.vskul-slide-text,
.vskul-slide-image {
    opacity: 1;
}

/* ============================================
   ACCESSIBILITY & REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .vskul-slides-track {
        transition: transform 0.2s linear;
    }

    .vskul-banner-arrow,
    .vskul-dot {
        transition: none;
    }

    .vskul-slide-text.fade-in,
    .vskul-slide-image.fade-in {
        animation: none;
        opacity: 1;
    }
}

/* ============================================
   TOUCH/SWIPE SUPPORT
   ============================================ */

.vskul-banner-container.touch-active {
    cursor: grabbing;
}

.vskul-slides-track.is-dragging {
    transition: none;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .vskul-banner-arrow,
    .vskul-banner-dots {
        display: none !important;
    }

    .vskul-banner-container {
        height: auto;
        overflow: visible;
    }

    .vskul-slides-track {
        display: block;
        transform: none !important;
    }

    .vskul-slide {
        page-break-inside: avoid;
        flex: 1 1 auto;
    }
}