/**
 * Public Menu Styles
 * Desktop and mobile menu styling for public pages
 */

/* ========================================
   Desktop Menu Styles
   ======================================== */

.main-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-menu-items {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}


.menu-item {
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #495057;
    transition: background-color 0.2s;
    display: inline-block;
}

.menu-item:hover {
    background-color: #f8f9fa;
    color: #212529;
}

.menu-dropdown {
    position: relative;
    display: inline-block;
}

.menu-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1001;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #495057;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
}

.menu-button {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    color: #495057;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-button:hover {
    background-color: #f8f9fa;
}

.auth-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #dc3545;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.auth-button:hover {
    background-color: #fff5f5;
}

/* ========================================
   Mobile Menu Styles
   ======================================== */

.mobile-menu-toggle {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #495057;
    display: inline-flex;
    align-items: center;
}

.mobile-menu-toggle:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-content {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: white;
    padding-bottom: 2rem;
    z-index: 10000;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10001;
}

.mobile-menu-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

.mobile-menu-close {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #495057;
    display: inline-flex;
    align-items: center;
}

.mobile-menu-close:hover {
    background-color: #e9ecef;
    border-radius: 4px;
}

.mobile-menu-close:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.mobile-menu-group {
    border-bottom: 1px solid #e9ecef;
    padding: 0.5rem 0;
}

.mobile-menu-section {
    border-bottom: 1px solid #e9ecef;
}

.mobile-menu-group-title {
    padding: 1rem 1.5rem 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-menu-link {
    display: block;
    padding: 0.875rem 1.5rem;
    color: #212529;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.mobile-menu-link:hover {
    background-color: #f8f9fa;
    border-left-color: #007bff;
}

.mobile-menu-link:focus {
    outline: 2px solid #007bff;
    outline-offset: -2px;
    background-color: #f8f9fa;
}

/* Active page highlighting */
.mobile-menu-link.ui-link-active,
.mobile-menu-link:active {
    background-color: #e7f3ff;
    border-left-color: #007bff;
    color: #0056b3;
    font-weight: 500;
}

.mobile-menu-link-danger {
    color: #dc3545;
}

.mobile-menu-link-danger:hover {
    background-color: #fff5f5;
    border-left-color: #dc3545;
}

.mobile-menu-link-danger.ui-link-active,
.mobile-menu-link-danger:active {
    background-color: #ffe5e7;
    border-left-color: #dc3545;
    color: #c82333;
}
