/**
 * Mega Boost 4-Step Banner Widget Styles
 * 
 * @requires variables.css
 */

/* Main Banner Container */
.megaboost-steps-banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

/* Individual Background Images (full banner coverage) */
.megaboost-step-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity var(--mbe-duration-slowest) var(--mbe-ease-in-out);
    z-index: 1;
}

.megaboost-step-bg.active {
    opacity: 1;
    z-index: 2;
}

/* Overlay */
.megaboost-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    background-color: transparent;
}

/* Banner Title - top centered */
.megaboost-banner-title-wrapper {
    position: absolute;
    top: var(--mbe-spacing-10);
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    pointer-events: none;
    text-align: center;
}

.megaboost-banner-title {
    font-size: var(--mbe-font-size-6xl);
    font-weight: var(--mbe-font-weight-bold);
    color: var(--mbe-color-white);
    margin: 0 0 5px 0;
    line-height: var(--mbe-line-height-tight);
}

.megaboost-banner-subtitle {
    font-size: var(--mbe-font-size-lg);
    font-weight: var(--mbe-font-weight-normal);
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 30px 0;
    line-height: 1.4;
}

/* Steps Container - full height */
.megaboost-steps-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 10;
}

/* Individual Step Item - full height */
.megaboost-step-item {
    flex: 1;
    padding: var(--mbe-spacing-10) 30px;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

a.megaboost-step-item,
a.megaboost-step-item:hover,
a.megaboost-step-item:focus {
    text-decoration: none;
    color: inherit;
}

/* Step divider lines */
.megaboost-step-item::before {
    content: '';
    position: absolute;
    bottom: 30px;
    top: auto;
    right: 0;
    width: 1px;
    height: 60%;
    background-color: rgba(255, 255, 255, 0.3);
}

.megaboost-step-item:last-child::before {
    display: none;
}

/* Step Number */
.megaboost-step-number {
    font-size: 80px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
    margin-bottom: 10px;
    transition: color var(--mbe-duration-slow) var(--mbe-ease-out);
}

.megaboost-step-item.active .megaboost-step-number {
    color: rgba(255, 255, 255, 0.25);
}

/* Step Content - wrapper for animation */
.megaboost-step-content {
    display: flex;
    flex-direction: column;
    transition: transform var(--mbe-duration-slow) var(--mbe-ease-out);
}

/* Step Header - contains number and title */
.megaboost-step-header {
    display: flex;
    flex-direction: column;
}

/* Step Title */
.megaboost-step-title {
    font-size: var(--mbe-font-size-xl);
    font-weight: var(--mbe-font-weight-semibold);
    color: var(--mbe-color-white);
    line-height: 1.4;
    text-decoration: none;
    display: block;
    pointer-events: none;
}

/* Step Description - hidden by default */
.megaboost-step-description {
    font-size: var(--mbe-font-size-base);
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--mbe-line-height-normal);
    margin-top: 10px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity var(--mbe-duration-slow) var(--mbe-ease-out), max-height var(--mbe-duration-slow) var(--mbe-ease-out);
    pointer-events: none;
}

/* Show description on hover */
.megaboost-step-item:hover .megaboost-step-description {
    opacity: 1;
    max-height: 200px;
}

/* Slide content up on hover */
.megaboost-step-item:hover .megaboost-step-content {
    transform: translateY(calc(-1 * var(--mbe-spacing-5)));
}

/* Active step styling */
.megaboost-step-item.active .megaboost-step-title {
    color: var(--mbe-color-white);
}

/* No overlay on hover - background change only */

/* Responsive Design */
@media (max-width: 992px) {
    .megaboost-step-item {
        padding: 30px var(--mbe-spacing-5);
    }
    
    .megaboost-step-number {
        font-size: 60px;
    }
    
    .megaboost-step-title {
        font-size: var(--mbe-font-size-lg);
    }
}

@media (max-width: 768px) {
    .megaboost-steps-banner {
        height: auto;
        min-height: 500px;
        position: relative;
    }
    
    .megaboost-banner-title-wrapper {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 30px var(--mbe-spacing-5) var(--mbe-spacing-5) var(--mbe-spacing-5);
        z-index: 15;
    }
    
    .megaboost-banner-title {
        font-size: var(--mbe-font-size-4xl);
    }
    
    .megaboost-banner-subtitle {
        font-size: var(--mbe-font-size-base);
        margin-bottom: 0;
    }
    
    .megaboost-step-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .megaboost-steps-container {
        display: flex;
        flex-direction: column;
        position: relative;
        z-index: 10;
        height: auto;
    }
    
    .megaboost-step-item {
        padding: 15px var(--mbe-spacing-5);
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: auto;
    }
    
    .megaboost-step-item::before {
        top: auto;
        bottom: 0;
        left: 10%;
        right: 10%;
        width: 80%;
        height: 1px;
    }
    
    .megaboost-step-item:last-child::before {
        display: none;
    }
    
    .megaboost-step-number {
        font-size: 40px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .megaboost-step-title {
        font-size: var(--mbe-font-size-lg);
    }
    
    .megaboost-step-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .megaboost-step-header {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    
    /* Description - hidden by default, shown when mobile-open */
    .megaboost-step-description {
        display: block;
        width: 100%;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin-top: 0;
        text-align: center;
        transition: max-height var(--mbe-duration-slow) var(--mbe-ease-out), opacity var(--mbe-duration-slow) var(--mbe-ease-out), margin-top var(--mbe-duration-slow) var(--mbe-ease-out);
    }
    
    .megaboost-step-item.mobile-open .megaboost-step-description {
        max-height: 300px;
        opacity: 1;
        margin-top: 10px;
    }
    
    .megaboost-step-item:hover .megaboost-step-content {
        transform: none;
    }
}

@media (max-width: 480px) {
    .megaboost-step-number {
        font-size: var(--mbe-font-size-6xl);
    }
    
    .megaboost-step-title {
        font-size: var(--mbe-font-size-base);
    }
}

/* Elementor Editor Styles */
.elementor-editor-active .megaboost-steps-banner {
    min-height: 400px;
}


/* Accessibility - Focus states */
.megaboost-step-item:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: -2px;
}

a.megaboost-step-title:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}
