/**
 * Custom Hero Slider Styles
 * 
 * Styles for the custom hero slider component using Swiper
 */

/* Slider Container */
.custom-hero-slider {
    position: relative;
    width: 100vw;
    height: 100vh; /* Full viewport height */
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    background-color: var(--lubinik-hero-primary-bg-color);
}

/* Swiper Container */
.custom-hero-slider .swiper {
    width: 100%;
    height: 100%;
}

/* Slides */
.custom-hero-slider .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Slide Image */
.custom-hero-slider .slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.custom-hero-slider .slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Slide Overlay */
.custom-hero-slider .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--lubinik-hero-slide-overlay-bg-color);
    z-index: 2;
}

/* Slide Content */
.custom-hero-slider .slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    color: var(--lubinik-hero-primary-text-color);
    max-width: var(--lubinik-container-width);
    width: 90%;
    padding: 30px 40px;
    background-color: var(--lubinik-hero-slide-content-bg-color);
    border-radius: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

/* Slide Logo Container - Left side of content */
.custom-hero-slider .slide-logo-container {
    margin-right: 2rem;
    width: auto;
    text-align: center;
    flex-shrink: 0;
}

/* Slide content text container */
.custom-hero-slider .slide-text-container {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-hero-slider .slide-description,
.custom-hero-slider .slide-secondary-content,
.custom-hero-slider .slide-title {
    text-align: center;
    width: 100%;
}

/* Slide Description */
.custom-hero-slider .slide-description {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    text-shadow: 0 2px 4px var(--lubinik-hero-primary-text-shadow);
    line-height: 1.2;
}

/* Slide Button */
.custom-hero-slider .btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 1rem;
    cursor: pointer;
}

/* Button Styles */
.custom-hero-slider .btn-primary {
    background-color: var(--lubinik-hero-button-primary-bg-color);
    color: var(--lubinik-hero-button-primary-text-color);
    border: 2px solid var(--lubinik-hero-button-primary-border-color);
}

.custom-hero-slider .btn-secondary {
    background-color: var(--lubinik-hero-button-secondary-bg-color);
    color: var(--lubinik-hero-button-secondary-text-color);
    border: 2px solid var(--lubinik-hero-button-secondary-border-color);
}

.custom-hero-slider .btn-outline {
    background-color: transparent;
    color: var(--lubinik-hero-button-outline-text-color);
    border: 2px solid var(--lubinik-hero-button-outline-border-color);
}

.custom-hero-slider .btn-white {
    background-color: var(--lubinik-hero-button-white-bg-color);
    color: var(--lubinik-hero-button-white-text-color);
    border: 2px solid var(--lubinik-hero-button-white-border-color);
}

/* Button Hover States */
.custom-hero-slider .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px var(--lubinik-shadow-color-light);
}

.custom-hero-slider .btn-primary:hover {
    background-color: var(--lubinik-hero-button-primary-hover-bg-color);
    color: var(--lubinik-hero-button-primary-hover-text-color) !important;
    border: 2px solid var(--lubinik-hero-button-primary-hover-border-color)  !important;
    opacity: 0.9;
}

.custom-hero-slider .btn-secondary:hover {
    background-color: var(--lubinik-hero-button-secondary-hover-bg-color);
    color: var(--lubinik-hero-button-secondary-hover-text-color) !important;
    border: 2px solid var(--lubinik-hero-button-secondary-hover-border-color)  !important;
    opacity: 0.9;
}

.custom-hero-slider .btn-outline:hover {
    background-color: var(--lubinik-hero-button-outline-hover-bg-color);
    color: var(--lubinik-hero-button-outline-hover-text-color) !important;
    border: 2px solid var(--lubinik-hero-button-outline-hover-border-color)  !important;
}

.custom-hero-slider .btn-white:hover {
    background-color: var(--lubinik-hero-button-white-hover-bg-color);
    color: var(--lubinik-hero-button-white-hover-text-color) !important;
    border: 2px solid var(--lubinik-hero-button-white-hover-border-color)  !important;
    opacity: 0.9;
}

/* Secondary Content */
.custom-hero-slider .slide-secondary-content {
    margin-top: 2rem;
    font-size: 1rem;
}

/* Completely unique class name to avoid conflicts */
.slider-hero-logo-large {
    width: var(--lubinik-logo-max-size-hero) !important;
    height: auto !important;
    max-width: var(--lubinik-logo-max-size-hero) !important;
    max-height: none !important;
    min-height: 0 !important;
    min-width: 0 !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    opacity: 0.85; /* Slight transparency */
}

/* Ensure this rule overrides any other logo rules */
body .custom-hero-slider .slide-logo-container .slider-hero-logo-large {
    max-height: unset !important;
    max-width: var(--lubinik-logo-max-size-hero) !important;
}

/* Hide logo on mobile */
@media (max-width: 768px) {
    .custom-hero-slider .slide-logo-container {
        display: none;
    }
    
    .custom-hero-slider .slide-content {
        flex-direction: column;
    }
    
    .custom-hero-slider .slide-text-container {
        text-align: center;
    }
}

/* Navigation Arrows */
.custom-hero-slider .swiper-button-next,
.custom-hero-slider .swiper-button-prev {
    color: var(--lubinik-hero-slider-prev-text-color);
    background-color: var(--lubinik-hero-slider-prev-bg-color);
    width: var(--lubinik-hero-slider-arrow-size);
    height: var(--lubinik-hero-slider-arrow-size);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.custom-hero-slider .swiper-button-prev:hover {
    background-color: var(--lubinik-hero-slider-prev-hover-bg-color);
}

.custom-hero-slider .swiper-button-next:hover {
    background-color: var(--lubinik-hero-slider-next-hover-bg-color);
}

.custom-hero-slider .swiper-button-next:after,
.custom-hero-slider .swiper-button-prev:after {
    font-size: var(--lubinik-font-size-md);
}

/* Pagination Dots */
.custom-hero-slider .swiper-pagination {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.custom-hero-slider .swiper-pagination-bullet {
    width: var(--lubinik-hero-slider-dot-size);
    height: var(--lubinik-hero-slider-dot-size);
    background-color: var(--lubinik-hero-slider-dot-color);
    opacity: 0.7;
    margin: 0 5px;
    cursor: pointer;
}

.custom-hero-slider .swiper-pagination-bullet-active {
    background-color: var(--lubinik-hero-slider-dot-active-color);
    opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .custom-hero-slider .slide-description {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .custom-hero-slider {
        height: 80vh;
    }
    
    .custom-hero-slider .slide-description {
        font-size: 1.75rem;
    }
    
    .custom-hero-slider .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Improve mobile image display */
    .custom-hero-slider .slide-image img {
        object-position: center; /* Center the image */
    }
    
    /* Make navigation more touchable */
    .custom-hero-slider .swiper-pagination-bullet {
        width: 14px;
        height: 14px;
        margin: 0 8px;
    }
    
    .custom-hero-slider .swiper-button-next,
    .custom-hero-slider .swiper-button-prev {
        width: var(--lubinik-hero-slider-arrow-size-mobile);
        height: var(--lubinik-hero-slider-arrow-size-mobile);
    }
}

@media (max-width: 576px) {
    .custom-hero-slider {
        height: 70vh;
    }
    
    .custom-hero-slider .slide-description {
        font-size: 1.5rem;
    }
    
    .custom-hero-slider .slide-content {
        padding: 1.5rem;
        width: 95%;
    }
}
