/* ============================================
   Hero Slider CSS
   ============================================ */

.hero-slider-modern {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: inherit !important;
    opacity: 0;
    transition: none;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.hero-slide.prev {
    z-index: 0;
}

.hero-slide:hover {
    text-decoration: none !important;
    color: inherit !important;
}

.hero-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide video.hero-slide-img {
    object-fit: cover;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.2) 100%);
}

.hero-slide-video {
    position: absolute;
    inset: 0;
}

.hero-slide-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.hero-slide-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e, #e74c3c);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.hero-slide-content h1 {
    font-size: 2.2rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero-slide-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
    font-weight: 300;
}

/* Text Background */
.text-bg-wrapper {
    display: inline-block;
    border-radius: 8px;
}

.text-bg-wrapper h1,
.text-bg-wrapper p {
    margin: 0;
}

/* Badge */
.slide-badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* ============================================
   Transition Effects (JS-driven via element.animate)
   ============================================ */

.hero-slider-fade .hero-slide { }
.hero-slider-slide-left .hero-slide { }
.hero-slider-slide-right .hero-slide { }
.hero-slider-slide-up .hero-slide { }
.hero-slider-zoom .hero-slide { }
.hero-slider-crossfade .hero-slide { }

/* ============================================
   Arrow Styles - 5 Variants
   ============================================ */

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-arrow-prev { left: 15px; }
.slider-arrow-next { right: 15px; }

.slider-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* Style 1: Circle */
.arrow-style1 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 16px;
}
.arrow-style1:hover {
    background: rgba(0,0,0,0.6);
}

/* Style 2: Square */
.arrow-style2 {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 16px;
}
.arrow-style2:hover {
    background: rgba(0,0,0,0.6);
}

/* Style 3: Pill */
.arrow-style3 {
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 14px;
    gap: 6px;
}
.arrow-style3:hover {
    background: rgba(0,0,0,0.6);
}
.arrow-style3.slider-arrow-prev { left: 10px; }
.arrow-style3.slider-arrow-next { right: 10px; }

/* Style 4: Minimal (just icon) */
.arrow-style4 {
    width: 30px;
    height: 30px;
    background: transparent;
    color: #fff;
    font-size: 24px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.arrow-style4:hover {
    color: rgba(255,255,255,0.8);
}

/* Style 5: Large fancy */
.arrow-style5 {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
}
.arrow-style5:hover {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 6px 30px rgba(0,0,0,0.4);
}

/* ============================================
   Dot Styles
   ============================================ */

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-dot {
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.hero-dot:hover {
    opacity: 0.8;
}

/* Default dots (circle) */
.dot-style-default .hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}
.dot-style-default .hero-dot.active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}

/* Rounded dots */
.dot-style-rounded .hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}
.dot-style-rounded .hero-dot.active {
    background: #fff;
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}

/* Square dots */
.dot-style-square .hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    background: rgba(255,255,255,0.4);
}
.dot-style-square .hero-dot.active {
    background: #fff;
}

/* Pill dots */
.dot-style-pill .hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.4);
}
.dot-style-pill .hero-dot.active {
    width: 24px;
    background: #fff;
}

/* ============================================
   Progress Bar
   ============================================ */

/* ============================================
   Text Animation Effects
   ============================================ */

.hero-slide-content .text-effect {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.active .text-effect {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.hero-slide.active .text-effect-fadeInUp {
    animation: sliderFadeInUp 0.8s ease forwards;
}

.hero-slide.active .text-effect-fadeInLeft {
    animation: sliderFadeInLeft 0.8s ease forwards;
}

.hero-slide.active .text-effect-fadeInRight {
    animation: sliderFadeInRight 0.8s ease forwards;
}

.hero-slide.active .text-effect-zoomIn {
    animation: sliderZoomIn 0.8s ease forwards;
}

.hero-slide.active .text-effect-slideInUp {
    animation: sliderSlideInUp 0.8s ease forwards;
}

.hero-slide.active .text-effect-slideInLeft {
    animation: sliderSlideInLeft 0.8s ease forwards;
}

.hero-slide.active .text-effect-bounceIn {
    animation: sliderBounceIn 0.9s ease forwards;
}

@keyframes sliderFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes sliderFadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes sliderFadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes sliderZoomIn {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes sliderSlideInUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes sliderSlideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes sliderBounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Text effect delays for staggered animation */
.hero-slide-content .text-effect-delay-1 { animation-delay: 0.1s; }
.hero-slide-content .text-effect-delay-2 { animation-delay: 0.2s; }
.hero-slide-content .text-effect-delay-3 { animation-delay: 0.3s; }
.hero-slide-content .text-effect-delay-4 { animation-delay: 0.4s; }

/* ============================================
   Parallax Effect
   ============================================ */

.hero-slider-parallax .hero-slide-img {
    transition: transform 0.1s linear;
}

.hero-slider-parallax .hero-slide.active .hero-slide-img {
    animation: parallaxScroll 8s ease-in-out infinite alternate;
}

@keyframes parallaxScroll {
    from { transform: scale(1.1) translateY(-5px); }
    to { transform: scale(1.1) translateY(5px); }
}

/* ============================================
   Blur Effect
   ============================================ */

.hero-slide-blur .hero-slide-img {
    filter: blur(3px);
    transform: scale(1.05);
}

/* Video Mute Button */
.video-mute-btn {
    position: absolute;
    bottom: 60px;
    right: 20px;
    z-index: 6;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.video-mute-btn:hover {
    background: rgba(0,0,0,0.7);
}

@media (max-width: 576px) {
    .video-mute-btn {
        bottom: 45px;
        right: 12px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* ============================================
   Swipe Hint
   ============================================ */

.swipe-hint {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: swipePulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes swipePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* ============================================
   Responsive - Otomatik Sığdırma
   ============================================ */

.hero-slider-modern {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.hero-slide-img,
.hero-slide video.hero-slide-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    object-fit: cover;
    font-family: 'object-fit: cover';
}

.hero-slider-wrapper {
    width: 100%;
    max-width: 100%;
}

.hero-slide {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .hero-slide-content { max-width: 90%; }
    .hero-slide-content h1 { font-size: 1.5rem; }
    .hero-slide-content p { font-size: 0.9rem; }
    .hero-slide-content .btn { font-size: 0.9rem; padding: 8px 20px; }
    .slider-arrow { display: flex; }
    .arrow-style5 { width: 38px; height: 38px; font-size: 16px; }
    .slide-badge { font-size: 0.65rem; padding: 3px 10px; }
    .text-bg-wrapper { padding: 8px 16px !important; }
}

@media (max-width: 576px) {
    .hero-slide-content { max-width: 95%; }
    .hero-slide-content h1 { font-size: 1.1rem; }
    .hero-slide-content p { font-size: 0.75rem; margin-bottom: 8px; }
    .hero-slide-content .btn { font-size: 0.8rem; padding: 6px 16px; margin-top: 4px !important; }
    .hero-dots { bottom: 8px; gap: 5px; }
    .hero-dot { width: 8px; height: 8px; }
    .dot-style-default .hero-dot.active { width: 20px; }
    .slider-arrow-prev { left: 5px; }
    .slider-arrow-next { right: 5px; }
    .arrow-style1, .arrow-style2 { width: 30px; height: 30px; font-size: 12px; }
    .arrow-style3 { padding: 4px 10px; font-size: 11px; }
    .arrow-style4 { font-size: 18px; }
    .arrow-style5 { width: 28px; height: 28px; font-size: 12px; }
    .slide-badge { font-size: 0.6rem; padding: 2px 8px; margin-bottom: 6px; }
    .text-bg-wrapper { padding: 6px 12px !important; border-radius: 6px !important; }
    .hero-slider-modern,
    .hero-slider-wrapper,
    .hero-slide { height: auto !important; aspect-ratio: 16/9; }
    .hero-slide-img,
    .hero-slide video.hero-slide-img { height: 100% !important; }
}

@media (max-width: 400px) {
    .hero-slide-content h1 { font-size: 0.95rem; }
    .hero-slide-content p { font-size: 0.7rem; }
    .hero-dots { bottom: 5px; gap: 4px; }
    .hero-dot { width: 6px; height: 6px; }
    .dot-style-default .hero-dot.active { width: 16px; }
}

/* ============================================
   Print
   ============================================ */
@media print {
    .hero-slider-modern { display: none; }
}
