/* Mobile Navigation Styles */

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-menu span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.show {
    display: block;
    opacity: 1;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-nav-menu.show {
    right: 0;
}

.mobile-nav-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-header h2 {
    font-size: 18px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.mobile-nav-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.mobile-nav-links {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
}

.mobile-nav-link:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.mobile-nav-link.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.mobile-nav-link span {
    font-size: 18px;
}

.mobile-nav-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.mobile-user-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-user-details {
    padding: 12px;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.mobile-user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.mobile-user-email {
    font-size: 13px;
    color: var(--text-secondary);
}

.mobile-user-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-user-actions a,
.mobile-user-actions button {
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.mobile-user-actions a:hover,
.mobile-user-actions button:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
}

.mobile-user-actions button {
    color: #dc2626;
    border-color: #fca5a5;
}

.mobile-user-actions button:hover {
    background: #fee2e2;
    border-color: #dc2626;
}

/* Desktop Navigation - Hide hamburger by default */
@media (min-width: 769px) {
    .hamburger-menu {
        display: none !important;
    }
    
    .mobile-nav-overlay,
    .mobile-nav-menu {
        display: none !important;
    }
}

/* Mobile Navigation - Show hamburger and hide desktop nav links */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .nav-links {
        display: none !important;
    }
    
    .nav-user {
        display: none !important;
    }
    
    .nav-container {
        padding: 14px 20px;
    }
    
    .nav-brand h1 {
        font-size: 18px;
    }
}

/* Animation for mobile menu items */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav-menu.show .mobile-nav-link {
    animation: slideInRight 0.3s ease forwards;
}

.mobile-nav-menu.show .mobile-nav-link:nth-child(1) {
    animation-delay: 0.05s;
}

.mobile-nav-menu.show .mobile-nav-link:nth-child(2) {
    animation-delay: 0.1s;
}

.mobile-nav-menu.show .mobile-nav-link:nth-child(3) {
    animation-delay: 0.15s;
}

.mobile-nav-menu.show .mobile-nav-link:nth-child(4) {
    animation-delay: 0.2s;
}

.mobile-nav-menu.show .mobile-nav-link:nth-child(5) {
    animation-delay: 0.25s;
}

.mobile-nav-menu.show .mobile-nav-link:nth-child(6) {
    animation-delay: 0.3s;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

