/**
 * Sareldo Light Menu - Frontend Stylesheet
 * 3 Theme Styles, 8 Positions, Dynamic Island & Glowing Dot Active Indicator
 */

/* =========================================================================
   BASE WRAPPER & POSITIONING (8 POSITIONS)
   ========================================================================= */
.slmenu-wrapper {
    position: fixed;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.slmenu-wrapper * {
    box-sizing: border-box;
}

/* 1. Bottom Center (Standard Dock) */
.slmenu-pos-bottom-center {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
}

/* 2. Bottom Left */
.slmenu-pos-bottom-left {
    bottom: 24px;
    left: 24px;
}

/* 3. Bottom Right */
.slmenu-pos-bottom-right {
    bottom: 24px;
    right: 24px;
}

/* 4. Top Center (Dynamic Island Top) */
.slmenu-pos-top-center {
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
}

/* 5. Top Left */
.slmenu-pos-top-left {
    top: 24px;
    left: 24px;
}

/* 6. Top Right */
.slmenu-pos-top-right {
    top: 24px;
    right: 24px;
}

/* 7. Left Center (Vertical Dock) */
.slmenu-pos-left-center {
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
}

/* 8. Right Center (Vertical Dock) */
.slmenu-pos-right-center {
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
}

/* =========================================================================
   DOCK CONTAINER & LIST
   ========================================================================= */
.slmenu-dock-container {
    padding: 8px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 95vw;
}

.slmenu-vertical .slmenu-dock-container {
    padding: 12px 8px;
    border-radius: 36px;
}

.slmenu-list {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.slmenu-vertical .slmenu-list {
    flex-direction: column;
    gap: 8px;
}

.slmenu-item {
    margin: 0;
    padding: 0;
    position: relative;
}

/* =========================================================================
   ITEM LINK BUTTON (APP DOCK STYLE)
   ========================================================================= */
.slmenu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    text-decoration: none;
    position: relative;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.slmenu-icons-only .slmenu-link {
    width: 48px;
    height: 48px;
}

.slmenu-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.slmenu-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.1;
    display: block;
}

.slmenu-icons-only .slmenu-icon {
    width: 20px;
    height: 20px;
}

.slmenu-label {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-top: 3px;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.2s ease;
}

/* Hover Zoom & Micro-Interaction */
.slmenu-link:hover .slmenu-icon-wrap {
    transform: scale(1.12);
}

.slmenu-link:active {
    transform: scale(0.94);
}

/* =========================================================================
   LEUCHTENDER AKTIV-PUNKT (GLOWING DOT PULSE)
   ========================================================================= */
.slmenu-glow-dot {
    position: absolute;
    top: 5px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.slmenu-item-active .slmenu-glow-dot {
    opacity: 1;
    transform: scale(1);
    animation: slmenuPulse 2.4s infinite ease-in-out;
}

@keyframes slmenuPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.22);
    }
    100% {
        transform: scale(1);
    }
}

/* =========================================================================
   THEME 1: AKTUELLES DESIGN (DARK GLASS - SARELDO.WORK)
   ========================================================================= */
.slmenu-theme-dark .slmenu-dock-container {
    background: rgba(22, 24, 34, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 2px 10px rgba(0, 0, 0, 0.4);
}

.slmenu-theme-dark .slmenu-link {
    color: #94a3b8;
}

.slmenu-theme-dark .slmenu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.slmenu-theme-dark .slmenu-item-active .slmenu-link {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.slmenu-theme-dark .slmenu-glow-dot {
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8, 0 0 18px rgba(56, 189, 248, 0.85);
}

/* =========================================================================
   THEME 2: HELL (CLEAN FROSTED LIGHT GLASS)
   ========================================================================= */
.slmenu-theme-light .slmenu-dock-container {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.slmenu-theme-light .slmenu-link {
    color: #475569;
}

.slmenu-theme-light .slmenu-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

.slmenu-theme-light .slmenu-item-active .slmenu-link {
    background: rgba(0, 0, 0, 0.07);
    color: #0284c7;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06);
}

.slmenu-theme-light .slmenu-glow-dot {
    background: #0284c7;
    box-shadow: 0 0 9px rgba(2, 132, 199, 0.95), 0 0 16px rgba(2, 132, 199, 0.6);
}

/* =========================================================================
   THEME 3: MODERN SCHLICHT (DYNAMIC ISLAND MINIMAL)
   ========================================================================= */
.slmenu-theme-minimal .slmenu-dock-container {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.8);
}

.slmenu-theme-minimal .slmenu-link {
    color: #71717a;
}

.slmenu-theme-minimal .slmenu-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fafafa;
}

.slmenu-theme-minimal .slmenu-item-active .slmenu-link {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.slmenu-theme-minimal .slmenu-glow-dot {
    background: #10b981;
    box-shadow: 0 0 10px #10b981, 0 0 18px rgba(16, 185, 129, 0.8);
}

/* =========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================= */
@media (max-width: 640px) {
    .slmenu-pos-bottom-center,
    .slmenu-pos-bottom-left,
    .slmenu-pos-bottom-right {
        bottom: 16px;
    }

    .slmenu-pos-top-center,
    .slmenu-pos-top-left,
    .slmenu-pos-top-right {
        top: 16px;
    }

    /* Mobile Compact Mode */
    .slmenu-mobile-compact .slmenu-dock-container {
        padding: 5px 8px;
        gap: 2px;
    }

    .slmenu-mobile-compact .slmenu-link {
        width: 44px;
        height: 44px;
    }

    .slmenu-mobile-compact .slmenu-icon {
        width: 16px;
        height: 16px;
    }

    .slmenu-mobile-compact .slmenu-label {
        font-size: 8px;
        margin-top: 2px;
    }

    .slmenu-mobile-compact .slmenu-glow-dot {
        top: 4px;
        right: 6px;
        width: 6px;
        height: 6px;
    }

    /* Mobile Icons Only Mode */
    .slmenu-mobile-icons_only .slmenu-label {
        display: none !important;
    }

    .slmenu-mobile-icons_only .slmenu-link {
        width: 42px;
        height: 42px;
    }

    .slmenu-mobile-icons_only .slmenu-icon {
        width: 19px;
        height: 19px;
    }

    /* Mobile Hide Mode */
    .slmenu-mobile-hide {
        display: none !important;
    }

    /* On narrow screens, keep horizontal docks centered horizontally */
    .slmenu-pos-bottom-left,
    .slmenu-pos-bottom-right {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .slmenu-pos-top-left,
    .slmenu-pos-top-right {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}
