/**
 * Showcase World Slider - World Athletics Style
 * Full-width cinematic slider with progress bar navigation
 */

/* ===========================
   Variables & Base Styles
   =========================== */
.showcase-world {
    --accent-color: #ff6b00;
    --text-color: #ffffff;
    --overlay-gradient: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    --slider-height: 100vh;
    --height-offset: 0px;

    position: relative;
    width: 100%;
    height: calc(var(--slider-height) - var(--height-offset));
    min-height: 500px;
    overflow: hidden;
}

/* ===========================
   Slider Container
   =========================== */
.showcase-world__slider {
    width: 100%;
    height: 100%;
}

.showcase-world__slider .swiper-wrapper {
    height: 100%;
}

/* ===========================
   Individual Slide
   =========================== */
.showcase-world__slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Background Image */
.showcase-world__slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 6s ease-out;
}

/* Subtle zoom effect on active slide */
.showcase-world__slide.swiper-slide-active .showcase-world__slide-bg {
    transform: scale(1.05);
}

/* Clickable Slide Link */
.showcase-world__slide-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Gradient Overlay (Bottom - default) */
.showcase-world__slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-gradient);
    pointer-events: none;
}

/* Top Gradient Overlay (::before) */
.showcase-world__slide-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ===========================
   Slide Content
   =========================== */
.showcase-world__slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 0 140px;
    box-sizing: border-box;
    z-index: 10;
}

.showcase-world__slide-inner {
    max-width: 700px;
}

/* Category Label */
.showcase-world__category {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 16px;
    background-color: var(--accent-color);
    color: var(--text-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 4px;
}

/* Title */
.showcase-world__title {
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.12;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Read More Link */
.showcase-world__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.showcase-world__link:hover {
    color: var(--accent-color);
}

.showcase-world__link svg {
    transition: transform 0.3s ease;
}

.showcase-world__link:hover svg {
    transform: translateX(5px);
}

/* ===========================
   Progress Bar Navigation
   =========================== */
.showcase-world__progress-nav {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    gap: 12px;
    z-index: 20;
}

.showcase-world__progress-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    text-align: left;
}

.showcase-world__progress-bar::before {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.showcase-world__progress-bar:hover::before {
    background-color: rgba(255, 255, 255, 0.5);
}

.showcase-world__progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 0;
    transition: width 0.1s linear;
}

/* Progress Title */
.showcase-world__progress-title {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.showcase-world__progress-bar:hover .showcase-world__progress-title,
.showcase-world__progress-bar.is-active .showcase-world__progress-title {
    color: var(--text-color);
}

/* Active progress bar animation */
.showcase-world__progress-bar.is-active .showcase-world__progress-fill {
    animation: progressFill var(--progress-duration, 5000ms) linear forwards;
}

/* Completed progress bars */
.showcase-world__progress-bar.is-completed .showcase-world__progress-fill {
    width: 100%;
}

@keyframes progressFill {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* ===========================
   Slide Animations
   =========================== */
.showcase-world__category,
.showcase-world__title,
.showcase-world__link {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.showcase-world__slide.swiper-slide-active .showcase-world__category {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.showcase-world__slide.swiper-slide-active .showcase-world__title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.showcase-world__slide.swiper-slide-active .showcase-world__link {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* ===========================
   Responsive Styles
   =========================== */
@media (max-width: 1200px) {
    .showcase-world__slide-content {
        padding: 40px 60px 100px;
    }

    .showcase-world__progress-nav {
        left: 60px;
        right: 60px;
    }

    .showcase-world__title {
        font-size: 40px;
    }
}

/* ===========================
   Mobile Content Area (Below Slider)
   =========================== */
.showcase-world__mobile-content {
    display: none;
}

@media (max-width: 1400px) {

    /* Aspect Ratio Variants - Tablet */
    .showcase-world[data-mobile-ratio="1-1"] {
        aspect-ratio: 1 / 1;
    }

    .showcase-world[data-mobile-ratio="3-2"] {
        aspect-ratio: 3 / 2;
    }

    .showcase-world[data-mobile-ratio="4-3"] {
        aspect-ratio: 4 / 3;
    }

    .showcase-world[data-mobile-ratio="16-9"] {
        aspect-ratio: 16 / 9;
    }

    .showcase-world[data-mobile-ratio="9-16"] .showcase-world__slider {
        aspect-ratio: 9 / 16;
        max-height: 600px;
    }

    .showcase-world {
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .showcase-world__slider {
        aspect-ratio: 1 / 1;
        min-height: 320px;
        max-height: 480px;
        position: relative;
        overflow: hidden;
    }

    .showcase-world[data-mobile-ratio="1-1"] .showcase-world__slider {
        aspect-ratio: 1 / 1;
    }

    .showcase-world[data-mobile-ratio="3-2"] .showcase-world__slider {
        aspect-ratio: 3 / 2;
    }

    .showcase-world[data-mobile-ratio="4-3"] .showcase-world__slider {
        aspect-ratio: 4 / 3;
    }

    .showcase-world[data-mobile-ratio="16-9"] .showcase-world__slider {
        aspect-ratio: 16 / 9;
    }

    .showcase-world__slide-content {
        padding: 30px 30px 80px;
    }

    .showcase-world__slide-inner {
        max-width: 100%;
    }

    .showcase-world__progress-nav {
        left: 30px;
        right: 30px;
        bottom: 30px;
    }

    .showcase-world__category {
        font-size: 10px;
        padding: 4px 12px;
    }

    .showcase-world__title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .showcase-world__link {
        font-size: 14px;
    }

    /* Text Below Mode - Tablet */
    .showcase-world--text-below {
        overflow: visible;
    }

    .showcase-world--text-below .showcase-world__slide-content {
        display: none;
    }

    .showcase-world--text-below .showcase-world__progress-nav {
        display: none;
    }

    .showcase-world--text-below .showcase-world__mobile-content {
        display: block;
        background-color: var(--mobile-content-bg, #1a1a2e);
        padding: var(--mobile-content-padding, 20px);
    }

    /* Mobil Progress Bar'lar */
    .showcase-world__mobile-progress {
        display: flex;
        gap: 8px;
        margin-bottom: 20px;
    }

    .showcase-world__mobile-progress-bar {
        flex: 1;
        height: 2px;
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 0;
        overflow: hidden;
        cursor: pointer;
        border: none;
        padding: 0;
    }

    .showcase-world__mobile-progress-fill {
        display: block;
        height: 100%;
        width: 0;
        background-color: var(--mobile-accent-color, var(--accent-color));
        transition: width 0.1s linear;
    }

    .showcase-world__mobile-progress-bar.is-active .showcase-world__mobile-progress-fill {
        animation: progressFill var(--progress-duration, 5000ms) linear forwards;
    }

    .showcase-world__mobile-progress-bar.is-completed .showcase-world__mobile-progress-fill {
        width: 100%;
    }

    .showcase-world__mobile-link {
        display: block;
        text-decoration: none;
        color: inherit;
    }

    .showcase-world__mobile-category {
        display: inline-block;
        padding: 4px 12px;
        margin-bottom: 12px;
        background-color: var(--mobile-accent-color, var(--mobile-category-color, var(--accent-color)));
        color: #ffffff;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        border-radius: 4px;
    }

    .showcase-world__mobile-title {
        margin: 0 0 12px 0;
        color: var(--mobile-title-color, #ffffff);
        font-size: 22px;
        font-weight: 700;
        line-height: 1.3;
    }

    .showcase-world__mobile-read-more {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--mobile-link-color, #ffffff);
        font-size: 14px;
        font-weight: 600;
    }

    .showcase-world__mobile-read-more svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .showcase-world__slider {
        min-height: 280px;
        max-height: 400px;
    }

    /* Aspect Ratio Variants - Mobile (on slider) */
    .showcase-world[data-mobile-ratio="1-1"] .showcase-world__slider {
        aspect-ratio: 1 / 1;
    }

    .showcase-world[data-mobile-ratio="3-2"] .showcase-world__slider {
        aspect-ratio: 3 / 2;
    }

    .showcase-world[data-mobile-ratio="4-3"] .showcase-world__slider {
        aspect-ratio: 4 / 3;
    }

    .showcase-world[data-mobile-ratio="16-9"] .showcase-world__slider {
        aspect-ratio: 16 / 9;
    }

    .showcase-world[data-mobile-ratio="9-16"] .showcase-world__slider {
        aspect-ratio: 9 / 16;
        max-height: 500px;
    }

    .showcase-world__slide-content {
        padding: 20px 20px 70px;
    }

    .showcase-world__progress-nav {
        left: 20px;
        right: 20px;
        bottom: 20px;
        gap: 4px;
    }

    .showcase-world__title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .showcase-world__progress-bar::before {
        height: 3px;
    }

    .showcase-world__progress-fill {
        height: 3px;
    }

    .showcase-world__progress-title {
        display: none;
    }

    /* Text Below Mode - Mobile */
    .showcase-world__mobile-title {
        font-size: 18px;
    }

    .showcase-world__mobile-category {
        font-size: 9px;
        padding: 3px 10px;
    }

    .showcase-world__mobile-read-more {
        font-size: 13px;
    }
}