/* ============================================
   MINIMAL NAVBAR COMPONENT - REUSABLE
   Minimalist hamburger grid menu
   ============================================ */

.minimal-navbar {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.navbar-toggle {
    width: 44px;
    height: 44px;
    background: rgba(15, 15, 35, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(74, 144, 226, 0.1);
    position: relative;
    z-index: 1002;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.navbar-toggle:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: #4A90E2;
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(74, 144, 226, 0.4),
                0 0 32px rgba(107, 182, 255, 0.2);
}

.navbar-toggle.active {
    background: rgba(74, 144, 226, 0.15);
    border-color: #4A90E2;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.3);
}

.navbar-toggle-grid {
    display: grid;
    grid-template-columns: repeat(3, 5px);
    grid-template-rows: repeat(3, 5px);
    gap: 3px;
    pointer-events: none;
}

.navbar-toggle-grid span {
    width: 5px;
    height: 5px;
    background: #b2bec3;
    border-radius: 1px;
    transition: all 0.3s ease;
    pointer-events: none;
    opacity: 0.9;
}

.navbar-toggle:hover .navbar-toggle-grid span {
    background: #6BB6FF;
    box-shadow: 0 0 4px rgba(107, 182, 255, 0.6);
    opacity: 1;
}

/* Mobile Menu */
.navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(15, 15, 35, 0.98) 0%, 
        rgba(26, 26, 46, 0.97) 50%,
        rgba(15, 15, 35, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(74, 144, 226, 0.2);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    overflow-y: auto;
}

.navbar-menu.active {
    right: 0;
}

.navbar-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-menu-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #dfe6e9 !important;
    margin: 0;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-style: normal;
    letter-spacing: 0.02em;
}

.navbar-menu-close {
    width: 32px;
    height: 32px;
    background: transparent !important;
    border: 1px solid rgba(74, 144, 226, 0.2) !important;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b2bec3 !important;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.navbar-menu-close:hover {
    color: #dfe6e9 !important;
    border-color: #4A90E2 !important;
    background: rgba(74, 144, 226, 0.1) !important;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.3);
}

.navbar-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar-menu-item {
    border-bottom: 1px solid rgba(74, 144, 226, 0.2) !important;
}

.navbar-menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #b2bec3 !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 1.25rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    font-style: normal;
    letter-spacing: 0.02em;
    text-transform: none;
    position: relative;
    background: transparent !important;
}

.navbar-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #6BB6FF 20%,
        #4A90E2 50%,
        #6BB6FF 80%,
        transparent 100%) !important;
    transition: width 0.3s ease;
}

.navbar-menu-link:hover {
    background: rgba(74, 144, 226, 0.1) !important;
    color: #dfe6e9 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.navbar-menu-link:hover::after {
    width: 80%;
}

.navbar-menu-link.active {
    background: rgba(74, 144, 226, 0.15) !important;
    color: #6BB6FF !important;
    font-weight: 300;
}

.navbar-menu-link.active::after {
    width: 80%;
}

/* Backdrop */
.navbar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.navbar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-menu {
        width: 100%;
        right: -100%;
    }
    
    .minimal-navbar {
        top: 0.75rem;
        right: 0.75rem;
    }
}

