/**
 * Hero Slider Pro - Frontend Styles
 */

/* Container Styles */
.hsp-slider-container {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    background: #000;
    padding: 0;
    display: block !important;
    visibility: visible !important;
    margin-top: -80px; /* Header yüksekliği kadar yukarı çek */
    z-index: 1;
}

.hsp-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: block !important;
    visibility: visible !important;
}


/* Auto-sizing slider container */
.hsp-slider-container[data-auto-size="true"] {
    width: 100% !important;
    height: 100% !important;
}

.hsp-slider-container[data-auto-size="true"] .hsp-slider {
    width: 100% !important;
    height: 100% !important;
    min-height: 300px;
    aspect-ratio: 16/9;
}

.hsp-slider-container[data-auto-size="true"] .hsp-slide {
    aspect-ratio: 16/9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hsp-slider-container[data-auto-size="true"] .hsp-slider {
        aspect-ratio: 4/3;
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .hsp-slider-container[data-auto-size="true"] .hsp-slider {
        aspect-ratio: 1/1;
        min-height: 200px;
    }
}

/* Height-based sizing */
.hsp-slider[data-height="auto"] {
    height: auto;
    min-height: 400px;
}

.hsp-slider[data-height="100vh"] {
    height: 100vh;
    max-height: 1000px;
}

.hsp-slider[data-height="60vh"] {
    height: 60vh;
    min-height: 300px;
}


/* Full cover slider */
.hsp-slider-container.full-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1;
}

.hsp-slider-container.full-cover .hsp-slider {
    width: 100vw !important;
    height: 100vh !important;
}

.hsp-slider-container.full-cover .hsp-slide {
    height: 100vh;
}

/* Push content down for full cover slider */
body.has-full-cover-slider .header-solid {
    position: relative;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
}

body.has-full-cover-slider .section-banner-area-start {
    margin-top: 100vh;
}

body.has-full-cover-slider .site-content {
    margin-top: 100vh;
}

/* Push content down for regular slider */
body.has-hero-slider .site-content {
    margin-top: calc(100vh - 80px); /* Slider yüksekliği - header yüksekliği */
}

body.has-hero-slider .header-solid {
    position: relative;
    z-index: 1000;
}

/* Specific pixel heights (only when not auto-sizing) */
.hsp-slider[data-height="1000px"]:not([data-auto-size="true"]) {
    height: 100vh !important;
}

.hsp-slider[data-height="800px"]:not([data-auto-size="true"]) {
    height: 80vh !important;
}

.hsp-slider[data-height="600px"]:not([data-auto-size="true"]) {
    height: 60vh !important;
}

.hsp-slider[data-height="400px"]:not([data-auto-size="true"]) {
    height: 40vh !important;
}


/* Width-based sizing */
.hsp-slider[data-width="auto"] {
    width: 100%;
    max-width: none;
}

.hsp-slider[data-width="100%"] {
    width: 100%;
}

/* Slide Styles */
.hsp-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hsp-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hsp-image-bg,
.hsp-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hsp-image-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    display: block !important;
    visibility: visible !important;
    width: 100%;
    height: 100%;
}


.hsp-video-bg video,
.hsp-video-bg iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

/* Overlay Styles */
.hsp-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.hsp-overlay-dark .hsp-slide-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.hsp-overlay-light .hsp-slide-overlay {
    background: rgba(255, 255, 255, 0.3);
}

.hsp-overlay-gradient .hsp-slide-overlay {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.hsp-overlay-pattern .hsp-slide-overlay {
    background: rgba(0, 0, 0, 0.4);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.1) 2px,
        rgba(255, 255, 255, 0.1) 4px
    );
}

/* Content Styles */
.hsp-slide-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.hsp-slide-content-inner {
    text-align: center;
    color: white;
    max-width: 800px;
    width: 100%;
}

/* Text Position Variations */
.hsp-text-left .hsp-slide-content {
    justify-content: flex-start;
}

.hsp-text-left .hsp-slide-content-inner {
    text-align: left;
}

.hsp-text-right .hsp-slide-content {
    justify-content: flex-end;
}

.hsp-text-right .hsp-slide-content-inner {
    text-align: right;
}

.hsp-text-top-left .hsp-slide-content {
    align-items: flex-start;
    justify-content: flex-start;
}

.hsp-text-top-center .hsp-slide-content {
    align-items: flex-start;
    justify-content: center;
}

.hsp-text-top-right .hsp-slide-content {
    align-items: flex-start;
    justify-content: flex-end;
}

.hsp-text-top-right .hsp-slide-content-inner {
    text-align: right;
}

.hsp-text-bottom-left .hsp-slide-content {
    align-items: flex-end;
    justify-content: flex-start;
}

.hsp-text-bottom-center .hsp-slide-content {
    align-items: flex-end;
    justify-content: center;
}

.hsp-text-bottom-right .hsp-slide-content {
    align-items: flex-end;
    justify-content: flex-end;
}

/* Typography */
.hsp-slide-subtitle {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 15px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hsp-slide-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.hsp-slide-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Button Styles */
.hsp-slide-button {
    margin-top: 20px;
}

.hsp-btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
}

.hsp-btn-primary {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.hsp-btn-primary:hover {
    background: transparent;
    color: #007cba;
    border-color: #007cba;
    text-decoration: none;
}

/* Navigation Styles */
.hsp-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hsp-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hsp-nav-arrow::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-bottom: none;
    border-left: none;
    transform: rotate(45deg);
}

.swiper-button-prev::after {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.swiper-button-next::after {
    transform: rotate(45deg);
    margin-right: 3px;
}

.swiper-button-prev {
    left: 20px;
}

.swiper-button-next {
    right: 20px;
}

/* Pagination Styles */
.hsp-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.2);
}

/* Thumbnails */
.hsp-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    backdrop-filter: blur(10px);
}

.hsp-thumbnail {
    width: 60px;
    height: 40px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hsp-thumbnail:hover,
.hsp-thumbnail.active {
    border-color: white;
    transform: scale(1.1);
}

.hsp-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animation Effects */
.animated {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animated.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Ken Burns Effect */
.hsp-slide.hsp-effect-ken_burns .hsp-image-bg {
    animation: kenBurns 10s ease-in-out infinite alternate !important;
    transform-origin: center center !important;
    transform: scale(1) !important;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) !important;
    }
    100% {
        transform: scale(1.1) !important;
    }
}

/* Image Effects */
.hsp-slider-container .hsp-slide.hsp-effect-zoom_in .hsp-image-bg {
    animation: zoomIn 8s ease-in-out infinite alternate !important;
    transform-origin: center center !important;
    transform: scale(1) !important;
    /* Ensure no other transforms interfere */
    will-change: transform !important;
}

.hsp-slide.hsp-effect-zoom_out .hsp-image-bg {
    animation: zoomOut 8s ease-in-out infinite alternate !important;
    transform-origin: center center !important;
    transform: scale(1.2) !important;
}

.hsp-slide.hsp-effect-pan_left .hsp-image-bg {
    animation: panLeft 12s ease-in-out infinite alternate !important;
}

.hsp-slide.hsp-effect-pan_right .hsp-image-bg {
    animation: panRight 12s ease-in-out infinite alternate !important;
}

.hsp-slide.hsp-effect-pan_up .hsp-image-bg {
    animation: panUp 12s ease-in-out infinite alternate !important;
}

.hsp-slide.hsp-effect-pan_down .hsp-image-bg {
    animation: panDown 12s ease-in-out infinite alternate !important;
}

.hsp-slide.hsp-effect-rotate_left .hsp-image-bg {
    animation: rotateLeft 15s linear infinite !important;
}

.hsp-slide.hsp-effect-rotate_right .hsp-image-bg {
    animation: rotateRight 15s linear infinite !important;
}

.hsp-slide.hsp-effect-blur_in .hsp-image-bg {
    animation: blurIn 3s ease-in-out infinite alternate !important;
}

.hsp-slide.hsp-effect-blur_out .hsp-image-bg {
    animation: blurOut 3s ease-in-out infinite alternate !important;
}

.hsp-slide.hsp-effect-brightness_up .hsp-image-bg {
    animation: brightnessUp 4s ease-in-out infinite alternate !important;
}

.hsp-slide.hsp-effect-brightness_down .hsp-image-bg {
    animation: brightnessDown 4s ease-in-out infinite alternate !important;
}

.hsp-slide.hsp-effect-grayscale .hsp-image-bg {
    animation: grayscale 6s ease-in-out infinite alternate !important;
}

.hsp-slide.hsp-effect-sepia .hsp-image-bg {
    animation: sepia 6s ease-in-out infinite alternate !important;
}

.hsp-slide.hsp-effect-fade_in .hsp-image-bg {
    animation: fadeInImage 4s ease-in-out infinite alternate !important;
}

.hsp-slide.hsp-effect-fade_out .hsp-image-bg {
    animation: fadeOutImage 4s ease-in-out infinite alternate !important;
}

.hsp-slide.hsp-effect-slide_up .hsp-image-bg {
    animation: slideUp 8s ease-in-out infinite alternate !important;
}

.hsp-slide.hsp-effect-slide_down .hsp-image-bg {
    animation: slideDown 8s ease-in-out infinite alternate !important;
}

.hsp-slide.hsp-effect-slide_left .hsp-image-bg {
    animation: slideLeft 8s ease-in-out infinite alternate !important;
}

.hsp-slide.hsp-effect-slide_right .hsp-image-bg {
    animation: slideRight 8s ease-in-out infinite alternate !important;
}

/* Keyframe animations for image effects */
@keyframes zoomIn {
    0% {
        transform: scale(1) !important;
        -webkit-transform: scale(1) !important;
        -moz-transform: scale(1) !important;
        -ms-transform: scale(1) !important;
    }
    100% {
        transform: scale(1.2) !important;
        -webkit-transform: scale(1.2) !important;
        -moz-transform: scale(1.2) !important;
        -ms-transform: scale(1.2) !important;
    }
}

@keyframes zoomOut {
    0% { transform: scale(1.2) !important; }
    100% { transform: scale(1) !important; }
}

@keyframes panLeft {
    0% { transform: translateX(0) !important; }
    100% { transform: translateX(-20%) !important; }
}

@keyframes panRight {
    0% { transform: translateX(0) !important; }
    100% { transform: translateX(20%) !important; }
}

@keyframes panUp {
    0% { transform: translateY(0) !important; }
    100% { transform: translateY(-20%) !important; }
}

@keyframes panDown {
    0% { transform: translateY(0) !important; }
    100% { transform: translateY(20%) !important; }
}

@keyframes rotateLeft {
    0% { transform: rotate(0deg) !important; }
    100% { transform: rotate(-5deg) !important; }
}

@keyframes rotateRight {
    0% { transform: rotate(0deg) !important; }
    100% { transform: rotate(5deg) !important; }
}

@keyframes blurIn {
    0% { filter: blur(0px) !important; }
    100% { filter: blur(2px) !important; }
}

@keyframes blurOut {
    0% { filter: blur(2px) !important; }
    100% { filter: blur(0px) !important; }
}

@keyframes brightnessUp {
    0% { filter: brightness(1) !important; }
    100% { filter: brightness(1.3) !important; }
}

@keyframes brightnessDown {
    0% { filter: brightness(1.3) !important; }
    100% { filter: brightness(1) !important; }
}

@keyframes grayscale {
    0% { filter: grayscale(0%) !important; }
    100% { filter: grayscale(100%) !important; }
}

@keyframes sepia {
    0% { filter: sepia(0%) !important; }
    100% { filter: sepia(100%) !important; }
}

@keyframes fadeInImage {
    0% { opacity: 1 !important; }
    100% { opacity: 0.7 !important; }
}

@keyframes fadeOutImage {
    0% { opacity: 0.7 !important; }
    100% { opacity: 1 !important; }
}

@keyframes slideUp {
    0% { transform: translateY(0) !important; }
    100% { transform: translateY(-10%) !important; }
}

@keyframes slideDown {
    0% { transform: translateY(0) !important; }
    100% { transform: translateY(10%) !important; }
}

@keyframes slideLeft {
    0% { transform: translateX(0) !important; }
    100% { transform: translateX(-10%) !important; }
}

@keyframes slideRight {
    0% { transform: translateX(0) !important; }
    100% { transform: translateX(10%) !important; }
}

/* Parallax Effect */
.hsp-effect-parallax .hsp-image-bg {
    transform: translateZ(0);
    will-change: transform;
}

/* Blur Effect */
.hsp-effect-blur .swiper-slide:not(.swiper-slide-active) .hsp-image-bg img {
    filter: blur(5px);
    transition: filter 0.5s ease;
}

.hsp-effect-blur .swiper-slide-active .hsp-image-bg img {
    filter: blur(0);
}

/* Zoom Effect */
.hsp-effect-zoom .hsp-image-bg {
    transition: transform 0.5s ease;
}

.hsp-effect-zoom .swiper-slide:not(.swiper-slide-active) .hsp-image-bg {
    transform: scale(1.1);
}

.hsp-effect-zoom .swiper-slide-active .hsp-image-bg {
    transform: scale(1);
}

/* Loading Styles */
.swiper-lazy-preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hsp-slide-content {
        padding: 20px 15px;
    }
    
    .hsp-slide-title {
        font-size: 32px;
    }
    
    .hsp-slide-subtitle {
        font-size: 14px;
    }
    
    .hsp-slide-description {
        font-size: 16px;
    }
    
    .hsp-nav-arrow {
        width: 40px;
        height: 40px;
    }
    
    .swiper-button-prev {
        left: 10px;
    }
    
    .swiper-button-next {
        right: 10px;
    }
    
    .hsp-pagination {
        bottom: 15px;
    }
    
    .hsp-thumbnails {
        display: none;
    }
}

@media (max-width: 480px) {
    .hsp-slide-title {
        font-size: 24px;
    }
    
    .hsp-slide-subtitle {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .hsp-slide-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .hsp-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}
