/* Naijabased/assets/css/header.css */
/* Header Styles - Color Theme Updated Only */
.site-header {
    background-color: #008753; /* Changed from #008753 to Nigerian green */
    color: #fff;
    padding: 0.4rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: block;
}
.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.logo-link {
    display: inline-block;
    margin-right: 24px;
    flex-shrink: 0;
}
.logo-img {
    height: 32px;
    width: auto;
    display: block;
}
.hamburger {
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    display: none;
    margin-left: auto;
}
.hamburger:focus {
    outline: 2px solid #fff;
}
.nav-container {
    flex-grow: 1;
}
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.1rem;
    align-items: center;
}
.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}
.nav-link:hover,
.nav-link:focus {
    background-color: rgba(255 255 255 / 0.2);
    outline: none;
}

/* NEW: Style for the search icon */
.nav-link[aria-label="Search"] {
    font-size: 1.4rem;
    padding: 0 8px;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    width: 18px;
    height: 18px;
}
.notif-count {
    background-color: #e5a50a; /* Changed to Nigerian gold */
    border-radius: 9999px;
    padding: 0 6px;
    font-size: 0.75rem;
    color: #000; /* Changed to black for better contrast */
    margin-left: 4px;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}
.notif-wrapper {
    position: relative;
}
.notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    color: #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    width: 280px;
    max-height: 320px;
    overflow-y: auto;
    display: none;
    margin-top: 8px;
    border-radius: 6px;
    z-index: 1000;
}
.notif-list {
    list-style: none;
    margin: 0;
    padding: 8px;
}
.notif-item {
    border-bottom: 1px solid #ddd;
    padding: 6px 8px;
    font-size: 0.9rem;
}
.notif-item:last-child {
    border-bottom: none;
}

/* Desktop media query (original) */
@media (max-width: 720px) {
    .header-inner {
        padding: 0 12px;
        max-width: 100%;
    }
    .hamburger {
        display: inline-block;
    }
    .nav-menu {
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        background-color: #008753; /* Changed from #008753 to Nigerian green */
        border-radius: 0 0 12px 12px;
        transition: max-height 0.3s ease;
    }
    .nav-menu.show {
        max-height: 1000px;
        padding: 12px 0;
    }
    .nav-link {
        padding: 12px 16px;
    }
}

/* Pulse animation for new inbox messages (original) */
@keyframes pulse {
    0% { transform: scale(1); background-color: #e5a50a; } /* Changed to Nigerian gold */
    50% { transform: scale(1.3); background-color: #b88508; } /* Darker gold */
    100% { transform: scale(1); background-color: #e5a50a; } /* Nigerian gold */
}
.notif-count.pulse {
    animation: pulse 0.6s ease-in-out 2;
}

/*
============================================
MOBILE HEADER STYLES & VISIBILITY - COLORS UPDATED
============================================
*/

/* 1. Define all mobile styles */
.akb-mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #008753; /* Changed from #008753 to Nigerian green */
    padding: 10px 15px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.akb-hamburger {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.akb-top-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: auto;
}

.akb-icon {
    position: relative;
    color: white;
    text-decoration: none;
}

.akb-icon.locked {
    opacity: 0.4;
}

.akb-icon.locked::after {
    content: '🔒';
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 10px;
}

.akb-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e5a50a; /* Changed to Nigerian gold */
    color: #000; /* Changed to black */
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid #008753; /* Changed to Nigerian green */
    min-width: 18px;
    text-align: center;
}

/* Drawer */
.akb-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 10000;
    transition: left 0.3s;
    overflow-y: auto;
    box-shadow: 2px 0 15px rgba(0,0,0,0.3);
}

.akb-drawer.open { left: 0; }

.akb-drawer-head {
    background: linear-gradient(135deg, #008753, #005c34); /* Changed to Nigerian green gradient */
    padding: 20px 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.akb-drawer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.akb-drawer-nav a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.akb-drawer-nav a:hover { background: #f5f5f5; }
.akb-drawer-nav a.locked { opacity: 0.5; }

.akb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.akb-overlay.active { display: block; }

/* Bottom nav */
.akb-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
}

.akb-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 11px;
    flex: 1;
    position: relative;
    padding: 5px;
}

.akb-bottom-nav a.active { color: #008753; } /* Changed from #008753 to Nigerian green */
.akb-bottom-nav a.locked { opacity: 0.4; }

.akb-bottom-nav a.locked::after {
    content: '🔒';
    position: absolute;
    top: 0;
    right: 50%;
    font-size: 10px;
}

.akb-bottom-nav svg { margin-bottom: 2px; }

.akb-nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-bottom: 2px;
}

/* Modal */
.akb-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.akb-modal.active { display: flex; }

.akb-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
}

.akb-modal button {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin: 5px;
}

.akb-modal .primary {
    background: #e5a50a; /* Changed to Nigerian gold */
    color: #000; /* Changed to black */
    font-weight: 600;
}

/* 2. Visibility Toggle Logic */
.akb-mobile-header,
.akb-bottom-nav {
    display: none;
}

/* Media query to switch between desktop and mobile headers */
@media (max-width: 768px) {
    /* Hide desktop header */
    .site-header {
        display: none !important;
    }
    
    /* Show mobile header/nav */
    .akb-mobile-header,
    .akb-bottom-nav {
        display: flex;
    }
    
    /* Add padding to body to account for fixed header/nav */
    body { 
        padding-top: 65px !important;
        padding-bottom: 65px !important;
    }
}

/* ==================== LOCATION BUTTON STYLES ==================== */

/* Location button in desktop nav */
.location-nav-item {
    margin-left: auto;
}

.location-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.location-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.location-icon {
    font-size: 1rem;
}

.location-text {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hide location button in mobile view */
@media (max-width: 720px) {
    .location-nav-item {
        display: none;
    }
}

/* In your index.css or header.css */
.optional-note {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
    font-style: italic;
}

/* Make city select look optional */
#city-select option[value=""] {
    color: var(--text-light);
    font-style: italic;
}