/* ═══════════════════════════════════════════════════════════════════════════
   CHANNEL EDEN - NAVIGATION STYLES
   System Dock & Corner Navigation
   Premium Glassmorphism & 3D Interactions
   ═══════════════════════════════════════════════════════════════════════════ */

/* ==========================================================================
   SYSTEM DOCK (Bottom Center)
   ========================================================================== */
.system-dock-container {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    opacity: 0;
    animation: dockFadeUp 0.8s var(--ease-out-expo) 1s forwards;
    /* Hidden on landing page initially, controlled by JS if needed */
}

.system-dock {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(10, 10, 10, 0.6); /* Darker glass for better contrast */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.4s var(--ease-out-expo);
}

.system-dock:hover {
    background: rgba(15, 15, 15, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Dock Item */
.dock-item {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5); /* Muted by default */
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
}

.dock-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08); /* Subtle highlight */
    transform: scale(1.1) translateY(-4px); /* Magnetic lift */
}

.dock-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dock-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff;
}

.dock-icon {
    font-size: 20px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* OS Item Special Styling - Primary destination */
.dock-item[data-channel="os"] {
    color: #fff;
    margin-left: 4px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0 12px 12px 0;
    width: auto;
    padding-right: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.dock-item[data-channel="os"]:hover {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.dock-item[data-channel="os"] .dock-icon {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}


/* 3D Tooltip */
.dock-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.8);
    background: rgba(10, 10, 10, 0.6);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    z-index: 9001;
}

.dock-item:hover .dock-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Separator Line */
.dock-separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
}

/* ==========================================================================
   LANDING PAGE CORNER NAV (Static/Fixed)
   ========================================================================== */
.corner-nav {
    position: fixed;
    z-index: 2000;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0;
    animation: fadeInCorner 1s ease-out 2s forwards;
    mix-blend-mode: difference; /* Ensure visibility on black and white */
    color: #fff;
}

.corner-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px;
    position: relative;
    cursor: pointer;
}

.corner-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.corner-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 10px;
    right: 10px;
    height: 1px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.corner-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

#nav-tl { top: 40px; left: 40px; }
#nav-tr { top: 40px; right: 40px; text-align: right; }
#nav-bl { bottom: 40px; left: 40px; }
#nav-br { bottom: 40px; right: 40px; text-align: right; }

/* Special styling for OS corner link (top-left, primary destination) */
#nav-tl .corner-link {
    color: #fff;
    font-weight: 600;
}

#nav-tl .corner-link::before {
    content: '●';
    font-size: 8px;
    margin-right: 8px;
    color: #fff;
    vertical-align: middle;
    opacity: 0.5;
    transition: all 0.3s ease;
    display: inline-block;
    animation: osPulse 2s infinite;
}

#nav-tl .corner-link:hover::before {
    opacity: 1;
    text-shadow: 0 0 10px #fff;
}

@keyframes osPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Animations */
@keyframes dockFadeUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeInCorner {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .system-dock {
        padding: 8px 12px;
        gap: 4px;
        background: rgba(10, 10, 10, 0.8); /* Less transparency on mobile */
    }
    
    .dock-item {
        width: 36px;
        height: 36px;
    }
    
    .dock-icon {
        font-size: 18px;
    }
    
    .dock-tooltip {
        display: none; /* No tooltips on touch */
    }
    
    .corner-nav {
        font-size: 0.65rem;
    }
    
    #nav-tl { top: 20px; left: 20px; }
    #nav-tr { top: 20px; right: 20px; }
    #nav-bl { bottom: 20px; left: 20px; }
    #nav-br { bottom: 20px; right: 20px; }
}
