/* Navigation System Styles */

#nav-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9b87f5, #10B981);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

#nav-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(16, 185, 129, 0.6);
}

#nav-trigger svg {
    width: 28px;
    height: 28px;
    color: white;
    animation: rotate 10s linear infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 10px 60px rgba(155, 135, 245, 0.6); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Command Palette */
#command-palette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#command-palette.active {
    display: flex;
}

.palette-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.2s ease;
}

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

.palette-content {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    background: rgba(26, 26, 30, 0.98);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.palette-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

#palette-search {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}

#palette-search::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.palette-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.palette-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Body */
.palette-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.palette-body::-webkit-scrollbar {
    width: 8px;
}

.palette-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.palette-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.palette-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.palette-category {
    margin-bottom: 20px;
}

.category-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    padding: 10px 15px;
    font-weight: 600;
}

.palette-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin: 5px 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.palette-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateX(5px);
}

.item-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.item-content {
    flex: 1;
}

.item-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.item-desc {
    font-size: 0.85rem;
    opacity: 0.6;
}

.item-arrow {
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.palette-item:hover .item-arrow {
    opacity: 1;
}

/* Footer */
.palette-footer {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    opacity: 0.5;
}

.palette-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Mobile */
@media (max-width: 768px) {
    #nav-trigger {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    #nav-trigger svg {
        width: 24px;
        height: 24px;
    }
    
    .palette-content {
        max-height: 90vh;
        border-radius: 15px;
    }
    
    #palette-search {
        font-size: 1rem;
    }
    
    .item-name {
        font-size: 0.9rem;
    }
    
    .item-desc {
        font-size: 0.75rem;
    }
    
    .palette-footer {
        font-size: 0.7rem;
        gap: 15px;
    }
}
