/**
 * Public styles for Sleek Slider
 */

/* Reset */
.sleek-slider-container,
.sleek-slider-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Main Container */
.sleek-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    max-width: 100%;
    font-family: sans-serif;
}

.sleek-slider-wrapper {
    position: relative;
    height: 100%;
    min-height: 600px;
}

/* Main Slider Area */
.sleek-slider-main {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    min-height: inherit;
}

.sleek-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Overlay for slides */
.sleek-slider-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.sleek-slider-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

/* Content Area */
.sleek-slider-content {
    padding: 50px;
    max-width: 600px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    margin-left: 50px;
}

.sleek-slider-subheading,
.sleek-slider-heading,
.sleek-slider-description,
.sleek-slider-button {
    opacity: 0;
    transform: translateY(20px);
}

.sleek-slider-subheading {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.sleek-slider-heading {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.sleek-slider-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.sleek-slider-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}

.sleek-slider-slide.active .sleek-slider-subheading,
.sleek-slider-slide.active .sleek-slider-heading,
.sleek-slider-slide.active .sleek-slider-description,
.sleek-slider-slide.active .sleek-slider-button {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation Area */
/* Desktop: Vertical navigation on the right */
.sleek-slider-nav {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    background-color: #333; /* Fallback, overridden by PHP settings */
    display: flex;
    flex-direction: column;
    z-index: 20;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 12px; /* Space for vertical scrollbar */

    scrollbar-width: thin;
    scrollbar-color: #a48a78 rgba(255,255,255,0.1);
}

.sleek-slider-nav::-webkit-scrollbar {
    width: 8px;
}
.sleek-slider-nav::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}
.sleek-slider-nav::-webkit-scrollbar-thumb {
    background-color: #a48a78;
    border-radius: 10px;
}
.sleek-slider-nav::-webkit-scrollbar-thumb:hover {
    background-color: #8c7363;
}

.sleek-slider-nav-item {
    padding: 15px 20px; /* Default padding */
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* For desktop vertical items */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border-left: 4px solid transparent; /* For desktop active state */
    border-top: 4px solid transparent;  /* For mobile active state (initially transparent) */
    /* For mobile active state (bottom) - initially transparent */
    /* We will use border-bottom for the mobile active indicator */
}

.sleek-slider-nav-item:last-child {
    border-bottom-style: none; /* For desktop vertical items: no border on last */
}

.sleek-slider-nav-item:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sleek-slider-nav-item.active {
    color: #fff; /* Overridden by PHP for text color */
    background-color: rgba(255, 255, 255, 0.2) !important; /* Desktop active item background */
    border-left-color: #fff; /* Desktop active indicator, overridden by PHP */
}

.sleek-slider-nav-title {
    font-size: 16px;
    font-weight: 600;
    display: block;
    white-space: nowrap;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .sleek-slider-wrapper {
        min-height: 400px;
    }
    .sleek-slider-main {
        min-height: inherit;
        padding-bottom: 80px; /* Space for the nav bar */
    }

    /* Mobile/Tablet: Horizontal navigation at the bottom */
    .sleek-slider-nav {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        transform: none;
        top: auto;
        right: auto;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        border-radius: 0;
        max-height: none;
        box-shadow: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        border-left-style: none; /* Reset from desktop */
        padding: 0; /* Reset container padding, item padding will handle spacing */

        scrollbar-width: thin;
        scrollbar-color: #a48a78 rgba(0,0,0,0.05);
    }

    .sleek-slider-nav::-webkit-scrollbar {
        height: 8px;
        width: auto;
    }
    .sleek-slider-nav::-webkit-scrollbar-track {
        background: rgba(0,0,0,0.05);
        border-radius: 10px;
    }
    .sleek-slider-nav::-webkit-scrollbar-thumb {
        background-color: #a48a78;
        border-radius: 10px;
    }
    .sleek-slider-nav::-webkit-scrollbar-thumb:hover {
        background-color: #8c7363;
    }

    .sleek-slider-nav-item {
        flex: 0 0 auto;
        /* Adjust padding to control space around text and for the bottom border */
        padding: 15px 15px 10px 15px; /* top right BOTTOM left - bottom padding makes space for border */
        border-style: solid; /* Ensure border style is set for all sides initially */
        border-width: 0; /* Reset all borders first */
        border-right-width: 1px; /* Separator line */
        border-right-color: rgba(255, 255, 255, 0.1);
        border-bottom-width: 4px; /* Space for active indicator */
        border-bottom-color: transparent; /* Default: no bottom line */
        /* Reset other borders from desktop */
        border-left-style: none;
        border-top-style: none;
        background-color: transparent !important; /* Crucial: No background color for items on mobile */
                                                  /* to prevent the "brown bar" effect. */
    }
    .sleek-slider-nav-item:last-child {
        border-right-style: none;
    }

    .sleek-slider-nav-item.active {
        /* Text color is handled by PHP */
        background-color: transparent !important; /* CRUCIAL: Ensure no background on active item */
        border-left-color: transparent !important; /* Turn off desktop's left border */
        border-top-color: transparent !important;  /* Turn off any top border */
        border-bottom-color: #fff !important; /* WHITE active indicator line AT THE BOTTOM */
                                            /* PHP should override this with $settings['active_nav_color'] */
    }
    /* PHP should generate this for active item's border color:
       #sleek-slider-{$slider_id} .sleek-slider-nav-item.active {
           color: {$settings['active_nav_color']};
           @media (max-width: 992px) {
               border-bottom-color: {$settings['active_nav_color']} !important;
           }
           @media (min-width: 992.02px) {
                border-left-color: {$settings['active_nav_color']} !important;
           }
       }
    */

    .sleek-slider-content {
        margin-left: 20px;
        margin-right: 20px;
        padding: 40px 20px;
    }
}

@media screen and (max-width: 768px) {
    .sleek-slider-wrapper {
        min-height: 350px;
    }
    
    	.sleek-slider-heading{
		font-size: 35px !important;
	}
	.sleek-slider-subheading {
    font-size: 16px !important;
}
    .sleek-slider-main {
        min-height: inherit;
        padding-bottom: 70px;
    }
    .sleek-slider-content {
        padding: 30px 15px;
        margin-left: 15px;
        margin-right: 15px;
        max-width: none;
    }
    .sleek-slider-description {
        font-size: 16px;
    }
     .sleek-slider-nav-item {
        padding: 12px 15px 8px 15px; /* top right BOTTOM left */
    }
}

@media screen and (max-width: 576px) {
    .sleek-slider-wrapper {
        min-height: 300px;
    }
    
    .sleek-slider-heading{
		font-size: 35px !important;
	}
		.sleek-slider-subheading{
    font-size: 16px !important;
	}
     .sleek-slider-main {
        min-height: inherit;
        padding-bottom: 65px;
    }
    .sleek-slider-button {
        padding: 10px 20px;
        font-size: 13px;
    }
    .sleek-slider-nav-item {
        padding: 10px 12px 6px 12px; /* top right BOTTOM left */
    }
    .sleek-slider-nav-title {
        font-size: 14px;
    }
}