/* ==========================================================================
   Platform Showcase Block (EGM Theme)
   Interactive trading platform tabs with media showcase & progress fill bar
   ========================================================================== */

/* Outer pin wrapper — no transform so GSAP position:fixed works correctly */
.platform-showcase__pin-outer {
    position: relative;
    width: 100%;
}

.platform-showcase {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-navy-blue);
    color: var(--color-white);
    overflow: hidden;
}

.platform-showcase__inner {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 100px 0;
}


.platform-showcase__container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Bottom Right Decorative Background Graphic using ::after pseudo-element */
.platform-showcase .platform-showcase__inner::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 1087px;
    height: 884px;
    background-image: url('showcase-dot.png');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    z-index: -1;
    pointer-events: none;
}

@media (min-width: 1660px) {
    .platform-showcase .platform-showcase__inner::after {
        background-image: url('showcase-dot-1920.png');
        width: 1368px;
        height: 1298px;
        bottom: -46%;
        right: -1%;
    }
    .platform-showcase__inner {
        padding-bottom: 150px;
    }
}

/* Section Main Heading */
.platform-showcase__heading {
    text-align: center;
    color: var(--color-white);
    margin: 0 0 60px 0;
}

/* Main Layout Grid Wrapper */
.platform-showcase__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: stretch;
    position: relative;
    min-height: 500px;
}

/* ==========================================================================
   Left Sidebar: Vertical Progress Fill Bar & Tab List
   ========================================================================== */
.platform-showcase__sidebar {
    position: relative;
    padding-left: 122px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
}

/* Progress Track Line */
.platform-showcase__progress-track {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    background: var(--color-black);
    overflow: hidden;
}

/* Progress Fill Indicator */
.platform-showcase__progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 33.33%;
    background: var(--color-white);
    transition: height 0.4s ease-in-out;
}

/* Tab List */
.platform-showcase__tab-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.platform-showcase__tab-item {
    position: relative;
    cursor: pointer;
}

/* Inactive Tab Title */
.platform-showcase__tab-title {
    font-family: var(--font-family);
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
    transition: color 0.3s ease;
}

.platform-showcase__tab-item:hover .platform-showcase__tab-title {
    color: rgba(255, 255, 255, 0.8);
}

/* Active Tab Title */
.platform-showcase__tab-item.is-active .platform-showcase__tab-title {
    color: var(--color-white);
}

/* Tab Body Content (Description + Button) */
.platform-showcase__tab-body {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    margin-top: 0;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, margin-top 0.35s ease;
}

.platform-showcase__tab-body-inner {
    overflow: hidden;
}

.platform-showcase__tab-item.is-active .platform-showcase__tab-body {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 14px;
}

.platform-showcase__tab-desc {
    color: var(--color-white);
    margin: 0 0 30px 0;
    max-width: 370px;
}

.platform-showcase__btn svg {
    transition: transform 0.25s ease;
}

.platform-showcase__btn:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   Right Display: Media Showcase Area & Nav Controls
   ========================================================================== */
.platform-showcase__media-area {
    position: relative;
    width: 100%;
    display: flex;
}

.platform-showcase__cards {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 600 / 500;
    border-radius: 20px;
    overflow: hidden;
    margin-left: auto;
}

/* Media Cards Stack */
.platform-showcase__card {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: .6s ease-in-out;
    z-index: 1;
}

.platform-showcase__card.is-active {
    position: absolute;
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Top-Left Badge Tag */
.platform-showcase__badge {
    position: absolute;
    top: 37px;
    left: 35px;
    z-index: 10;
    background-color: var(--color-pink);
    color: var(--color-white);
    padding: 7px 16px;
    border-radius: 20px;
}

/* Media Container (Image / Video) */
.platform-showcase__media-box {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.platform-showcase__media-box img,
.platform-showcase__media-box video {
    display: block;
    width: 100%;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

.platform-showcase__media-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #162840 0%, #0A1422 100%);
    border-radius: 20px;
}

/* Bottom-Right Arrow Navigation Controls */
.platform-showcase__nav-arrows {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    gap: 30px;
}

.platform-showcase__arrow {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    background: transparent;
}

.platform-showcase__arrow:hover {
    border-color: var(--color-white);
}

@media (max-width: 1024px) {
    .platform-showcase__sidebar {
        padding-left: 60px;
    }

    .platform-showcase__media-area {
        display: flex;
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
    .platform-showcase {
        height: auto !important;
        overflow: hidden;
        width: 101vw;
    }

    .platform-showcase__inner {
        padding: 60px 0;
    }

    .platform-showcase__heading {
        margin-bottom: 30px;
        font-size: var(--font-size-h1-r) !important;
        line-height: var(--line-height-h1-r) !important;
    }

    .platform-showcase__wrapper {
        display: flex;
        flex-direction: column;
        gap: 30px;
        min-height: auto;
    }

    .platform-showcase__media-area {
        order: 1;
        width: 100%;
    }

    .platform-showcase__sidebar {
        order: 2;
        padding-left: 0;
        min-height: auto;
        width: 100%;
    }

    .platform-showcase__progress-track {
        display: none;
    }

    .platform-showcase__tab-list {
        gap: 20px;
    }

    .platform-showcase__cards {
        max-width: 100%;
        aspect-ratio: 600 / 500;
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .platform-showcase .platform-showcase__inner{
        padding: 60px 0 70px;
    }

    .platform-showcase__badge {
        top: 20px;
        left: 20px;
        font-size: 14px;
        padding: 5px 14px;
    }

    .platform-showcase__nav-arrows {
        bottom: 27px;
        right: 27px;
    }

    .platform-showcase__arrow {
        width: 46px;
        height: 46px;
    }
    
    .platform-showcase__tab-title {
        font-size: 24px;
        line-height: 1.5;
    }

    .platform-showcase__tab-item.is-active .platform-showcase__tab-body {
        margin-top: 8px;
    }

    .platform-showcase__tab-desc {
        margin-bottom: 20px;
    }

    .platform-showcase .platform-showcase__inner::after {
        background-image: url('showcase-dot-mb.png');
        width: 100%;
    }
}
