/**
 * Dock Component Styles
 * MacOS-style animated dock with magnification effect
 */

.dock-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    width: fit-content;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

[data-theme="dark"] .dock-container {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .dock-container {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.dock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
    position: relative;
    transform-origin: bottom center;
    flex-shrink: 0;
}

.dock-icon svg {
    width: 100%;
    height: 100%;
    padding: 8px;
}

.dock-icon:hover {
    color: var(--accent-color);
    background: rgba(251, 133, 0, 0.1);
}

/* Tooltip */
.dock-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1000;
}

.dock-icon::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.dock-icon:hover::before,
.dock-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Separator */
.dock-separator {
    width: 1px;
    height: 32px;
    background: var(--border-color);
    margin: 0 4px;
    flex-shrink: 0;
}

/* Active state */
.dock-icon.active {
    color: var(--accent-color);
    background: rgba(251, 133, 0, 0.15);
}

.dock-icon.active::before {
    background: var(--accent-color);
}

.dock-icon.active::after {
    border-top-color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .dock-container {
        gap: 8px;
        padding: 10px 12px;
        border-radius: 16px;
    }
    
    .dock-icon {
        width: 36px;
        height: 36px;
    }
    
    .dock-separator {
        height: 28px;
    }
}

/* Animation on load */
@keyframes dockFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dock-container {
    animation: dockFadeIn 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

