/* ==========================================================================
   AKİA Homepage Hero Slider Click Affordance Indicator
   Glassmorphic interaction affordance showing banner clickability
   Dual Mode:
   - Desktop (>= 992px): Appears dynamically where the cursor stops (Option B)
   - Mobile & Tablet (< 992px): Statically docked in the bottom-right corner
   ========================================================================== */

/* Slide link and image wrapper */
.ltn__hero-slide-link {
    display: block;
    position: relative;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    width: 100%;
    outline: none;
}

.ltn__hero-slide-link:focus-visible {
    outline: 3px solid #8ed200;
    outline-offset: -3px;
}

.ltn__hero-slide-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
}

.ltn__hero-slide-img-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

/* Floating indicator container */
.akia-slider-affordance {
    position: absolute;
    bottom: 30px;
    right: 48px;
    z-index: 5;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Glassmorphism panel */
.akia-affordance-glass {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px 9px 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(16, 44, 30, 0.62) 0%, rgba(10, 30, 20, 0.78) 100%);
    -webkit-backdrop-filter: blur(14px) saturate(170%);
    backdrop-filter: blur(14px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.22),
        0 2px 6px rgba(0, 0, 0, 0.12),
        inset 0 1px 1px rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    animation: akiaAffordanceFloat 4s ease-in-out infinite 0.8s;
}

/* Hover highlight on slide link */
.ltn__hero-slide-link:hover .akia-affordance-glass {
    background: linear-gradient(135deg, rgba(22, 60, 42, 0.82) 0%, rgba(14, 42, 28, 0.92) 100%);
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.32),
        0 0 22px rgba(142, 210, 0, 0.35),
        inset 0 1px 2px rgba(255, 255, 255, 0.65);
    transform: translateY(-2px) scale(1.02);
}

.ltn__hero-slide-link:hover .akia-affordance-hand {
    transform: scale(1.1) translateY(-1px);
    color: #a4e61c;
}

/* Icon & ripple wrapper */
.akia-affordance-icon-wrap {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* SVG Hand pointer */
.akia-affordance-hand {
    position: relative;
    z-index: 2;
    color: #ffffff;
    transition: transform 0.25s ease, color 0.25s ease;
    transform-origin: 10px 4px;
}

/* Pulsing ripple wave rings */
.akia-affordance-ripple {
    position: absolute;
    top: 2px;
    left: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(142, 210, 0, 0.8) 0%, rgba(142, 210, 0, 0) 70%);
    border: 1px solid rgba(142, 210, 0, 0.7);
    pointer-events: none;
    opacity: 0;
    transform: scale(0.4);
    z-index: 1;
}

/* Text */
.akia-affordance-text {
    display: inline-block;
    white-space: nowrap;
}

.akia-affordance-text-full {
    display: inline;
}

.akia-affordance-text-short {
    display: none;
}

/* Keyframe animations */
@keyframes akiaAffordanceEnter {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes akiaAffordanceFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes akiaHandTap {
    0%, 100% {
        transform: scale(1) translateY(0) rotate(0deg);
    }
    20% {
        transform: scale(0.88) translateY(2px) rotate(-4deg);
    }
    35% {
        transform: scale(1) translateY(0) rotate(0deg);
    }
    55% {
        transform: scale(0.88) translateY(2px) rotate(-4deg);
    }
    70% {
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

@keyframes akiaTapRipple {
    0% {
        transform: scale(0.4);
        opacity: 0.85;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* ==========================================================================
   Desktop / Web: Option B (Appears dynamically where the cursor stops)
   Active on screens >= 992px with fine mouse pointer
   ========================================================================== */
@media (min-width: 992px) and (hover: hover) {
    .akia-slider-affordance {
        position: absolute;
        bottom: auto;
        right: auto;
        left: 0;
        top: 0;
        z-index: 10;
        opacity: 0;
        transform: scale(0.86) translateY(4px);
        pointer-events: none;
        transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: transform, opacity, left, top;
        animation: none !important;
    }

    /* Blooming visible state triggered by JS when cursor stops */
    .akia-slider-affordance.is-cursor-visible {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    /* Trigger tap animation on appearance at cursor coordinates */
    .akia-slider-affordance.is-cursor-visible .akia-affordance-hand {
        animation: akiaHandTap 1.6s cubic-bezier(0.25, 1, 0.5, 1) 0.05s both;
    }

    .akia-slider-affordance.is-cursor-visible .akia-affordance-ripple-1 {
        animation: akiaTapRipple 1.1s ease-out 0.15s both;
    }

    .akia-slider-affordance.is-cursor-visible .akia-affordance-ripple-2 {
        animation: akiaTapRipple 1.1s ease-out 0.65s both;
    }
}

/* ==========================================================================
   Mobile / Tablet (< 992px or touch devices):
   Statically docked at the bottom-right corner
   ========================================================================== */
@media (max-width: 991px), (hover: none) {
    .slick-current .akia-slider-affordance,
    .slick-active .akia-slider-affordance,
    .akia-slider-affordance.is-active {
        opacity: 1;
        transform: translateY(0) scale(1);
        animation: akiaAffordanceEnter 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
    }

    .slick-current .akia-affordance-hand,
    .slick-active .akia-affordance-hand,
    .akia-slider-affordance.is-active .akia-affordance-hand {
        animation: akiaHandTap 1.6s cubic-bezier(0.25, 1, 0.5, 1) 0.35s both;
    }

    .slick-current .akia-affordance-ripple-1,
    .slick-active .akia-affordance-ripple-1,
    .akia-slider-affordance.is-active .akia-affordance-ripple-1 {
        animation: akiaTapRipple 1.1s ease-out 0.45s both;
    }

    .slick-current .akia-affordance-ripple-2,
    .slick-active .akia-affordance-ripple-2,
    .akia-slider-affordance.is-active .akia-affordance-ripple-2 {
        animation: akiaTapRipple 1.1s ease-out 0.95s both;
    }
}

/* Medium devices (tablets 768px - 991px) */
@media (max-width: 991px) {
    .akia-slider-affordance {
        position: absolute !important;
        bottom: 16px !important;
        right: 20px !important;
        left: auto !important;
        top: auto !important;
        max-width: calc(100% - 40px);
    }
    .akia-affordance-glass {
        padding: 8px 15px 8px 12px;
        font-size: 12.5px;
        gap: 8px;
    }
}

/* Small devices (tablets portrait / large phones) */
@media (max-width: 767px) {
    .akia-slider-affordance {
        bottom: 14px !important;
        right: 16px !important;
        max-width: calc(100% - 32px);
    }
    .akia-affordance-glass {
        padding: 7px 13px 7px 10px;
        font-size: 11.5px;
        gap: 7px;
    }
    .akia-affordance-icon-wrap {
        width: 20px;
        height: 20px;
    }
    .akia-affordance-hand {
        width: 17px;
        height: 17px;
    }
}

/* Mobile phones (< 576px) */
@media (max-width: 575px) {
    .akia-affordance-text-full {
        display: none;
    }
    .akia-affordance-text-short {
        display: inline;
    }
    .akia-slider-affordance {
        bottom: 10px !important;
        right: 10px !important;
        max-width: calc(100% - 20px);
    }
    .akia-affordance-glass {
        padding: 6px 11px 6px 8px;
        font-size: 11px;
        gap: 6px;
        box-shadow: 
            0 4px 14px rgba(0, 0, 0, 0.25),
            0 1px 3px rgba(0, 0, 0, 0.15),
            inset 0 1px 1px rgba(255, 255, 255, 0.5);
    }
    .akia-affordance-icon-wrap {
        width: 18px;
        height: 18px;
    }
    .akia-affordance-hand {
        width: 15px;
        height: 15px;
    }
}

/* Extra small devices (narrow phones < 360px) */
@media (max-width: 360px) {
    .akia-slider-affordance {
        bottom: 8px !important;
        right: 8px !important;
        max-width: calc(100% - 16px);
    }
    .akia-affordance-glass {
        padding: 5px 9px 5px 7px;
        font-size: 10.5px;
        gap: 5px;
    }
}

/* ==========================================================================
   Accessibility: Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .akia-slider-affordance,
    .akia-affordance-glass,
    .akia-affordance-hand,
    .akia-affordance-ripple {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
