/* public_html/assets/css/navigation.css */

.site-header {
    background: #000;
    color: white;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.375rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-icon {
    font-size: 1.5rem;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 0.2s;
    position: relative;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Notification badges */
.pending-count,
.admin-pending-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #dc3545;
    color: white;
    font-size: 0.625rem;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.admin-pending-count {
    background: #fd7e14;
}

/* Workload indicator */
.workload-indicator {
    display: inline-block;
    padding: 2px 6px;
    margin-left: 0.5rem;
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border-radius: 10px;
    font-size: 0.625rem;
    font-weight: 600;
}

.workload-indicator.busy {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.workload-indicator.overloaded {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    background: #4285f4;
    color: white !important;
}

.nav-btn:hover {
    background: #357ae8;
    opacity: 1 !important;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation overlay for mobile */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    /* Keep navigation fixed at top on mobile */
    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        z-index: 1000 !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-content {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #1a1a1a;
        padding: 4rem 2rem 2rem;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s;
        z-index: 1000;
        /* Make navigation scrollable */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-content.active {
        display: block;
        transform: translateX(0);
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
        /* Ensure content doesn't get cut off */
        padding-bottom: 2rem;
    }
    
    .nav-links a {
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: 6px;
        transition: background 0.2s;
    }
    
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        opacity: 1;
    }
    
    .pending-count,
    .admin-pending-count {
        position: static;
        display: inline-block;
        margin-left: 0.5rem;
    }
    
    .workload-indicator {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
        width: fit-content;
    }
}
/* Add to public_html/assets/css/navigation.css */

/* Badge styles - Always visible when count > 0 */
.pending-count,
.admin-pending-count {
    display: inline-block !important;
    background: #f44336;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
    min-width: 18px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.2;
    transition: all 0.3s ease;
}

/* Hide only when explicitly has hidden class or zero */
.pending-count.hidden,
.admin-pending-count.hidden,
.pending-count:empty,
.admin-pending-count:empty {
    display: none !important;
}

/* Pulse animation for new items */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

.pending-count:not(.hidden):not(:empty),
.admin-pending-count:not(.hidden):not(:empty) {
    animation: pulse 2s infinite;
}

/* Workload indicator - Always visible for editors/admins */
.workload-indicator {
    display: inline-block !important;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: #e8f5e9;
    color: #2e7d32;
    vertical-align: middle;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.workload-indicator.hidden {
    display: none !important;
}

.workload-indicator.busy {
    background: #fff3e0;
    color: #e65100;
}

.workload-indicator.overloaded {
    background: #ffebee;
    color: #c62828;
    animation: pulse 1s infinite;
}

/* Hover effects */
.nav-links a:hover .pending-count:not(.hidden),
.nav-links a:hover .admin-pending-count:not(.hidden) {
    transform: scale(1.1);
}

.nav-links a:hover .workload-indicator:not(.hidden) {
    transform: translateX(2px);
}

/* Mobile styles */
@media (max-width: 768px) {
    .pending-count,
    .admin-pending-count {
        font-size: 10px !important;
        padding: 1px 4px !important;
        min-width: 16px !important;
        margin-left: 3px !important;
    }
    
    .workload-indicator {
        font-size: 10px !important;
        padding: 1px 6px !important;
        margin-left: 5px !important;
    }
    
    /* Stack badges on mobile for better visibility */
    .nav-links a {
        position: relative;
    }
    
    .nav-links a .admin-pending-count {
        position: absolute;
        top: -5px;
        right: -5px;
    }
}