/* navbar.css - Fixed mobile menu toggle and styles matching screenshots */

/* Enhanced navbar styling */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 10px 0; /* Reduced from 15px */
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: rgba(255, 255, 255, 0.9);
    min-height: 60px; /* Reduced from 80px */
}

/* Navbar container */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px; /* Reduced from 80px */
    padding: 0 2rem;
}

/* Logo styling */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 101; /* Keep logo above mobile menu */
    font-size: 1.4rem; /* Further reduced for mobile */
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar-logo span {
    color: var(--accent);
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem; /* Reduced from 1.2rem */
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Logo size adjustments */
.navbar-logo img {
    height: 80px; /* This is your current desktop size */
    width: auto;
    vertical-align: middle;
}

/* Keep the larger logo size for all screen sizes, including mobile */
@media (max-width: 768px) {
    .navbar-logo img {
        height: 60px; /* Increased from 25px to make it more visible on mobile */
    }
    
    /* Adjust navbar height to accommodate the larger logo */
    .navbar-container {
        height: auto; /* Allow container to expand based on logo size */
        padding: 5px 1rem; /* Add more vertical padding */
    }
    
    .navbar {
        min-height: auto; /* Let the content determine the height */
    }
    
    /* Adjust mobile menu position to match new navbar height */
    .mobile-menu {
        top: 70px; /* Adjusted to match the increased navbar height */
    }
}

/* Even smaller screens might need additional adjustments */
@media (max-width: 480px) {
    .navbar-logo img {
        height: 50px; /* Still larger than original but works better on very small screens */
    }
}

/* Navigation menu - standardized spacing */
.navbar-menu {
    display: flex;
    gap: 1.2rem; /* Standardized spacing between menu items */
}

.navbar-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 4px 10px; /* Standardized padding */
    border-radius: 4px;
    transition: all 0.3s ease;
    background: transparent;
}

/* Enhanced menu visibility styles - maintaining consistent spacing */
.home-page .navbar-menu a {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 10px; /* Standardized padding */
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.home-page .navbar-menu a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px); /* Reduced from -3px */
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.home-page .navbar-menu a.active {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.home-page .navbar-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Reduced from -3px */
    left: 0;
    width: 100%;
    height: 2px; /* Reduced from 3px */
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.navbar-menu a:hover {
    color: #ffffff;
    transform: translateY(-1px); /* Reduced from -2px */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Underline effect for navigation items */
.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Reduced from -3px */
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.navbar-menu a:hover::after {
    width: 100%;
}

.navbar-menu a.active {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.navbar-menu a.active::after {
    width: 100%;
    height: 2px; /* Reduced from 3px */
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Mobile menu toggle button - FIXED */
.navbar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.4rem; /* Reduced from 1.5rem */
    cursor: pointer;
    padding: 0.4rem; /* Reduced from 0.5rem */
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    z-index: 101; /* Ensure button stays above mobile menu */
    transition: all 0.3s ease;
}

.navbar-toggle:hover {
    color: #fff;
    transform: scale(1.1);
}

.navbar-toggle.active {
    transform: rotate(90deg);
}

/* Mobile menu - FIXED */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px; /* Reduced from 70px */
    left: 0;
    width: 100%;
    padding: 0.8rem; /* Reduced from 1rem */
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    display: flex;
}

.mobile-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.6rem 0.9rem; /* Standardized mobile menu item padding */
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    background: transparent; /* Remove the gray background */
    margin: 2px 0;
}

/* Mobile menu enhancements */
.home-page .mobile-menu a {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    padding: 8px; /* Reduced from 10px */
    background: rgba(0, 0, 0, 0.2);
    margin: 4px 0; /* Reduced from 5px */
    border-radius: 4px;
    transition: all 0.3s ease;
}

.home-page .mobile-menu a.active {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    padding-left: 2.3rem; /* Reduced from 2.5rem */
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu a.active {
    color: #ffffff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1); /* Subtle highlight for active item */
}

/* Page-specific styles */
/* Home page - Matching screenshot */
.home-page .mobile-menu a.active {
    border-left: 3px solid #6573c3; /* Reduced from 4px */
    padding-left: 1.6rem; /* Reduced from 1.75rem */
}

.home-page .mobile-menu a:hover {
    background-color: rgba(101, 115, 195, 0.2);
}

/* Tavern page */
.tavern-page .mobile-menu a.active {
    border-left: 3px solid #FF9800; /* Reduced from 4px */
    padding-left: 1.6rem; /* Reduced from 1.75rem */
}

.tavern-page .mobile-menu a:hover {
    background-color: rgba(255, 152, 0, 0.2);
}

/* Trendy page */
.trendy-page .mobile-menu a.active {
    border-left: 3px solid #FF5252; /* Reduced from 4px */
    padding-left: 1.6rem; /* Reduced from 1.75rem */
}

.trendy-page .mobile-menu a:hover {
    background-color: rgba(255, 82, 82, 0.2);
}

/* Realtors page */
.realtors-page .mobile-menu a.active {
    border-left: 3px solid #d4cc6a; /* Reduced from 4px */
    padding-left: 1.6rem; /* Reduced from 1.75rem */
}

.realtors-page .mobile-menu a:hover {
    background-color: rgba(212, 204, 106, 0.2);
}

/* Responsive breakpoints */
@media (max-width: 992px) {
    .navbar-menu {
        display: none;
    }
    
    .navbar-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .navbar-container {
        padding: 0 1rem;
        height: 50px; /* Reduced from 60px */
    }
    
    .navbar {
        min-height: 50px; /* Reduced from 60px */
    }
    
    .mobile-menu {
        top: 50px; /* Reduced from 60px */
        max-height: calc(100vh - 50px); /* Adjusted to match new navbar height */
    }
    
    .navbar-logo img {
        height: 70px; /* Reduced from 30px */
    }
    
    .logo-text {
        font-size: 1.1rem; /* Reduced from 1.2rem */
    }
}

/* Custom enhancement for mobile menu transparency */
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .mobile-menu {
        background-color: transparent !important;
    }
    
    .home-page .mobile-menu {
        background: linear-gradient(to right, rgba(63, 81, 181, 0.85), rgba(103, 58, 183, 0.85)) !important;
    }
    
    .tavern-page .mobile-menu {
        background: linear-gradient(to right, rgba(255, 255, 255, 0.3), rgba(230, 81, 0, 0.8)) !important;
    }
    
    .trendy-page .mobile-menu {
        background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(139, 0, 0, 0.8)) !important;
    }
    
    .realtors-page .mobile-menu {
        background: linear-gradient(to right, rgba(255, 255, 255, 0.3), rgba(181, 173, 86, 0.8)) !important;
    }
}