/* EN-KA Glass Dock — SPA Navigation */
body {
    padding-bottom: 110px !important;
}

.enka-dock-wrapper {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: calc(100% - 24px);
    max-width: 420px;
    pointer-events: none;
}

.enka-dock-wrapper * {
    pointer-events: auto;
}

.enka-dock-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.enka-dock-pill {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 9999px;
    padding: 6px 4px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.dark .enka-dock-pill {
    background: rgba(18, 10, 14, 0.88);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.enka-dock-items {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    z-index: 2;
    min-height: 52px;
}

/* Pill indicator — dock kenar oranına uyumlu kapsül */
.enka-dock-indicator {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 64px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.07);
    z-index: 1;
    touch-action: none;
    cursor: grab;
    will-change: left, width;
    transition:
        left 0.55s cubic-bezier(0.25, 0.9, 0.35, 1),
        width 0.55s cubic-bezier(0.25, 0.9, 0.35, 1);
}

.dark .enka-dock-indicator {
    background: rgba(255, 255, 255, 0.11);
}

.enka-dock-indicator.is-dragging {
    cursor: grabbing;
    transition: none;
}

.enka-dock-indicator.is-snapping {
    transition:
        left 0.6s cubic-bezier(0.22, 1.05, 0.36, 1),
        width 0.6s cubic-bezier(0.22, 1.05, 0.36, 1);
}

.enka-dock-indicator.edge-hit {
    opacity: 0.85;
}

.enka-dock-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 3;
    -webkit-tap-highlight-color: transparent;
}

.enka-dock-item-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 16px;
    transition: color 0.25s ease;
}

.dark .enka-dock-item-icon { color: #d1d5db; }

.enka-dock-item-label {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    transition: color 0.25s ease;
    line-height: 1;
}

.dark .enka-dock-item-label { color: #9ca3af; }

.enka-dock-item.active .enka-dock-item-icon { color: #111827; }
.enka-dock-item.active .enka-dock-item-label { color: #111827; }
.dark .enka-dock-item.active .enka-dock-item-icon,
.dark .enka-dock-item.active .enka-dock-item-label { color: #f9fafb; }

.enka-dock-enkai {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #111111;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.enka-dock-enkai:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.enka-dock-enkai:active { transform: scale(0.96); }
.enka-dock-enkai svg { width: 26px; height: 26px; }

/* Loading Spinner */
.enka-loading-spinner {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.enka-loading-spinner.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.enka-spinner-bg {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: enka-spinner-float 6s ease-in-out infinite;
}

@keyframes enka-spinner-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.enka-spinner-loader {
    position: absolute;
    width: 48px;
    height: 48px;
    border: 4px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: enka-spinner-rotate 0.8s linear infinite;
}

@keyframes enka-spinner-rotate {
    to { transform: rotate(360deg); }
}

/* Light mode: white background with black loader */
.enka-loading-spinner.light .enka-spinner-bg {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Dark mode: dark background with white loader */
.enka-loading-spinner.dark .enka-spinner-bg {
    background: rgba(18, 10, 14, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Reduce motion fallback */
@media (prefers-reduced-motion: reduce) {
    .enka-spinner-loader {
        animation: none;
    }
    .enka-spinner-bg {
        animation: none;
    }
}

/* Contact Overlay */
.enka-contact-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, backdrop-filter 0.4s ease, visibility 0.4s;
}

.enka-contact-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.enka-contact-title {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 56px 24px 20px;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    z-index: 10001;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) 0.1s;
}

.enka-contact-overlay.open .enka-contact-title {
    opacity: 1;
    transform: translateY(0);
}

.enka-contact-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease 0.15s, transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1) 0.15s, background 0.2s;
}

.enka-contact-overlay.open .enka-contact-close {
    opacity: 1;
    transform: scale(1);
}

.enka-contact-close:hover { background: rgba(255, 255, 255, 0.25); }

.enka-contact-actions {
    position: fixed;
    bottom: 90px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 10001;
}

.enka-contact-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 9999px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateX(40px) scale(0.9);
    transition:
        opacity 0.4s cubic-bezier(0.34, 1.2, 0.64, 1),
        transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1),
        box-shadow 0.2s ease;
}

.enka-contact-overlay.open .enka-contact-action {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.enka-contact-overlay.open .enka-contact-action:nth-child(1) { transition-delay: 0.12s; }
.enka-contact-overlay.open .enka-contact-action:nth-child(2) { transition-delay: 0.2s; }
.enka-contact-overlay.open .enka-contact-action:nth-child(3) { transition-delay: 0.28s; }
.enka-contact-overlay.open .enka-contact-action:nth-child(4) { transition-delay: 0.36s; }

.enka-contact-action:hover {
    transform: translateX(-4px) scale(1.03);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.enka-contact-action i { font-size: 18px; }
.enka-contact-action.wa { background: #25D366; }
.enka-contact-action.ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.enka-contact-action.map { background: #4285F4; }
.enka-contact-action.phone { background: rgba(255, 255, 255, 0.95); color: #1a2332; }

#spa-content { transition: opacity 0.25s ease; }
#spa-content.spa-loading { opacity: 0.4; pointer-events: none; }

@media (max-width: 380px) {
    .enka-dock-item-label { font-size: 6px; }
    .enka-dock-indicator { border-radius: 16px; }
    .enka-dock-enkai { width: 52px; height: 52px; }
}
