/* ==========================================================================
   Dock Component
   Left-side vertical dock with glassmorphic icons
   Electric cyan neon glowing SVGs
   ========================================================================== */

/* ========================================
   DOCK CONTAINER - Always visible on left
   ======================================== */

#dock {
    position: fixed !important;
    left: 16px !important;
    top: 50px !important;
    bottom: auto !important;
    transform: none !important;
    
    display: flex;
    flex-direction: column;
    z-index: var(--z-dock);
    
    /* Fade in animation */
    animation: dock-fade-in 0.3s ease-out;
}

@keyframes dock-fade-in {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   DOCK ITEMS CONTAINER
   ======================================== */

.dock-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    pointer-events: auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    
    /* Hide scrollbar but allow scroll */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dock-container::-webkit-scrollbar {
    display: none;
}

.dock-container::before {
    display: none !important;
}

/* ========================================
   DOCK ITEM
   Glassmorphic style matching cards
   ======================================== */

.dock-item {
    width: 48px !important;
    height: 48px !important;
    flex-shrink: 0;
    border-radius: var(--radius-lg, 12px) !important;
    
    /* Glass effect - MATCHING CARDS */
    background: rgba(15, 15, 15, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    position: relative;
    
    /* Smooth transitions */
    transition: 
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.dock-item:hover {
    border-color: rgba(0, 255, 255, 0.4) !important;
    transform: translateX(4px) scale(1.08) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 255, 255, 0.15) !important;
}

.dock-item:active {
    transform: translateX(4px) scale(0.98) !important;
}

/* ========================================
   DOCK ICON
   Electric Cyan Neon with glow effect
   ======================================== */

.dock-icon {
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #00ffff !important;
}

.dock-icon svg {
    width: 100% !important;
    height: 100% !important;
    stroke: #00ffff !important;
    transition: filter 0.15s ease;
    
    /* Electric cyan neon glow */
    filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.6)) !important;
}

.dock-item:hover .dock-icon svg {
    filter: 
        drop-shadow(0 0 6px rgba(0, 255, 255, 0.8))
        drop-shadow(0 0 12px rgba(0, 255, 255, 0.5)) !important;
}

/* ========================================
   DOCK TOOLTIP
   Glassmorphic tooltip on hover
   ======================================== */

.dock-label {
    position: absolute !important;
    left: calc(100% + 12px) !important;
    bottom: auto !important;
    top: 50% !important;
    transform: translateY(-50%) translateX(-4px) !important;
    
    /* Glass effect matching cards */
    background: rgba(15, 15, 15, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
    
    color: #ffffff !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    white-space: nowrap;
    
    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    
    transition: 
        opacity 0.15s ease,
        transform 0.15s ease;
}

.dock-item:hover .dock-label {
    opacity: 1 !important;
    transform: translateY(-50%) translateX(0) !important;
    transition-delay: 0.3s;
}

/* ========================================
   DOCK TRIGGER - Not needed for always-visible
   ======================================== */

#dock-trigger {
    display: none !important;
}

/* ========================================
   STAGGERED ENTRANCE ANIMATION
   ======================================== */

.dock-item {
    animation: dock-item-enter 0.3s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

@keyframes dock-item-enter {
    from {
        opacity: 0;
        transform: translateX(-20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.dock-item:nth-child(1) { animation-delay: 0.05s; }
.dock-item:nth-child(2) { animation-delay: 0.08s; }
.dock-item:nth-child(3) { animation-delay: 0.11s; }
.dock-item:nth-child(4) { animation-delay: 0.14s; }
.dock-item:nth-child(5) { animation-delay: 0.17s; }
.dock-item:nth-child(6) { animation-delay: 0.20s; }
.dock-item:nth-child(7) { animation-delay: 0.23s; }
.dock-item:nth-child(8) { animation-delay: 0.26s; }
.dock-item:nth-child(9) { animation-delay: 0.29s; }
.dock-item:nth-child(10) { animation-delay: 0.32s; }
.dock-item:nth-child(11) { animation-delay: 0.35s; }
.dock-item:nth-child(12) { animation-delay: 0.38s; }
.dock-item:nth-child(13) { animation-delay: 0.41s; }

/* ========================================
   ACTIVE/SELECTED STATE
   ======================================== */

.dock-item.active {
    border-color: rgba(0, 255, 255, 0.5) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 255, 255, 0.25) !important;
}

.dock-item.active .dock-icon svg {
    filter: 
        drop-shadow(0 0 8px rgba(0, 255, 255, 0.9))
        drop-shadow(0 0 16px rgba(0, 255, 255, 0.5)) !important;
}

/* Active indicator dot */
.dock-item.active::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ffff;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    #dock {
        left: 8px !important;
        top: 40px !important;
    }
    
    .dock-item {
        width: 40px !important;
        height: 40px !important;
    }
    
    .dock-icon {
        width: 20px !important;
        height: 20px !important;
    }
    
    .dock-container {
        gap: 6px !important;
    }
    
    .dock-label {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }
}

@media (max-width: 480px) {
    #dock {
        left: 4px !important;
    }
    
    .dock-item {
        width: 36px !important;
        height: 36px !important;
    }
    
    .dock-icon {
        width: 18px !important;
        height: 18px !important;
    }
}
