/* ============================================
   MAC-STYLE DOCK NAVIGATION
   Excellence Academy - Modern Navigation
   ============================================ */

/* Hide traditional navbar completely - using new mobile dropdown */
.traditional-navbar {
    display: none !important;
}

/* Mac Dock Container - Enhanced Professional Style */
.mac-dock {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1030;
    padding: 10px 20px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 28px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mac-dock:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
    transform: translateX(-50%) translateY(-6px);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.15),
        0 12px 32px rgba(0, 0, 0, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* Dock Items - Professional Enhanced */
.dock-item {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #444;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    will-change: transform;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dock-item:hover {
    transform: translateY(-12px) scale(1.25);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.15) 100%
    );
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 16px 32px rgba(37, 99, 235, 0.15),
        0 12px 24px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #2563eb;
}

/* Active dock item - Enhanced */
.dock-item.active {
    background: linear-gradient(
        145deg,
        rgba(37, 99, 235, 0.25) 0%,
        rgba(37, 99, 235, 0.15) 100%
    );
    border-color: rgba(37, 99, 235, 0.4);
    color: #2563eb;
    box-shadow: 
        0 6px 16px rgba(37, 99, 235, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dock-item.active::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 12px rgba(37, 99, 235, 0.8),
        0 0 24px rgba(37, 99, 235, 0.4);
}

/* Dock item icons - Enhanced */
.dock-item i {
    font-size: 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.dock-item:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.3));
}

.dock-item.active i {
    filter: drop-shadow(0 3px 6px rgba(37, 99, 235, 0.4));
}

/* Special brand item - Premium Design */
.dock-brand {
    width: 60px;
    height: 60px;
    border-radius: 22px;
    background: linear-gradient(145deg, #2563eb 0%, #1e40af 100%);
    border: 2px solid rgba(255, 255, 255, 0.35);
    margin-right: 16px;
    position: relative;
    transform: translateY(0) scale(1);
    will-change: transform;
    box-shadow: 
        0 8px 24px rgba(37, 99, 235, 0.3),
        0 4px 12px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.dock-brand:hover {
    transform: translateY(-16px) scale(1.3);
    box-shadow: 
        0 20px 40px rgba(37, 99, 235, 0.4),
        0 12px 24px rgba(37, 99, 235, 0.3),
        0 8px 16px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.dock-brand i {
    color: white;
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.dock-brand:hover i {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.dock-brand::after {
    content: 'Excellence Academy';
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.dock-brand:hover::after {
    opacity: 1;
}

/* Action buttons - Professional Style */
.dock-actions {
    display: flex;
    gap: 10px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1.5px solid rgba(255, 255, 255, 0.25);
}

.dock-action {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(
        145deg,
        rgba(37, 99, 235, 0.12) 0%,
        rgba(37, 99, 235, 0.08) 100%
    );
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    transform: translateY(0) scale(1);
    will-change: transform;
    box-shadow: 
        0 3px 10px rgba(37, 99, 235, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dock-action:hover {
    transform: translateY(-8px) scale(1.15);
    background: linear-gradient(
        145deg,
        rgba(37, 99, 235, 0.2) 0%,
        rgba(37, 99, 235, 0.12) 100%
    );
    border-color: rgba(37, 99, 235, 0.4);
    color: #2563eb;
    box-shadow: 
        0 12px 24px rgba(37, 99, 235, 0.25),
        0 6px 12px rgba(37, 99, 235, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dock-action.primary {
    background: linear-gradient(145deg, #2563eb 0%, #1e40af 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: white;
    box-shadow: 
        0 6px 16px rgba(37, 99, 235, 0.3),
        0 3px 8px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dock-action.primary:hover {
    color: white;
    box-shadow: 
        0 16px 32px rgba(37, 99, 235, 0.4),
        0 10px 20px rgba(37, 99, 235, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.dock-action i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.dock-action.primary i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* Enhanced Tooltip system - Navigation Items */
.dock-item:not(.dock-brand)::after {
    content: attr(data-tooltip) !important;
    position: absolute !important;
    bottom: -40px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    background: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 99999 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    display: block !important;
}

.dock-item:not(.dock-brand):hover::after {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* Tooltips for action buttons */
.dock-action::after {
    content: attr(data-tooltip) !important;
    position: absolute !important;
    bottom: -40px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    background: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 99999 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    display: block !important;
}

.dock-action:hover::after {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* Tooltip for brand logo */
.dock-brand::after {
    content: attr(data-tooltip) !important;
    position: absolute !important;
    bottom: -40px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    background: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 99999 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    display: block !important;
}

.dock-brand:hover::after {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* Removed duplicate proximity effect section */

/* Mobile responsiveness */
@media (max-width: 991.98px) {
    .mac-dock {
        display: none;
    }
    
    .traditional-navbar {
        display: block !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mac-dock {
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .mac-dock {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .mac-dock:hover {
        background: rgba(0, 0, 0, 0.4);
    }
    
    .dock-item {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    .dock-item:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: #667eea;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mac-dock,
    .dock-item,
    .dock-brand,
    .dock-action {
        transition: none;
    }
    
    .dock-item:hover {
        transform: none;
    }
    
    .dock-brand:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
.dock-item:focus,
.dock-action:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Animation for dock entrance */
@keyframes dockEntrance {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.mac-dock {
    animation: dockEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Breathing effect for brand */
@keyframes breathe {
    0%, 100% { 
        box-shadow: 
            0 8px 24px rgba(102, 126, 234, 0.2),
            0 4px 12px rgba(102, 126, 234, 0.1);
    }
    50% { 
        box-shadow: 
            0 12px 32px rgba(102, 126, 234, 0.3),
            0 6px 16px rgba(102, 126, 234, 0.2);
    }
}

.dock-brand {
    animation: breathe 4s ease-in-out infinite;
}

/* Removed sibling proximity effect - interferes with hover */

/* Dock separator */
.dock-separator {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
}

/* Enhanced active indicator */
.dock-item.active::before {
    box-shadow: 
        0 0 8px rgba(102, 126, 234, 0.6),
        0 0 16px rgba(102, 126, 234, 0.4),
        0 0 24px rgba(102, 126, 234, 0.2);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from {
        box-shadow: 
            0 0 8px rgba(102, 126, 234, 0.6),
            0 0 16px rgba(102, 126, 234, 0.4);
    }
    to {
        box-shadow: 
            0 0 12px rgba(102, 126, 234, 0.8),
            0 0 24px rgba(102, 126, 234, 0.6);
    }
}

/* Notification badges */
.dock-item .notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    animation: badge-appear 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes badge-appear {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}
