/* ============================================
   Unified Navigation Bar Component
   ============================================ */

.navbar {
    position: relative;
    min-height: 60px;
    max-width: 100%;
    padding: 0.75rem 2rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Brand Section */
.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 1.125rem;
    transition: opacity 0.2s;
}

.navbar-brand-link:hover {
    opacity: 0.8;
}

.navbar-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.navbar-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Menu Section */
.navbar-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.navbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.9375rem;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.navbar-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.navbar-link-text {
    white-space: nowrap;
}

/* Always hide certain labels (Home, New, Notifications, Dashboard, Admin) */
.navbar-link-text-always-hide {
    display: none;
}

/* Notification Badge */
.notification-bell {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-accent);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* Responsive Design */

/* Medium screens: Hide some text labels to prevent overflow around 900px */
@media (max-width: 1024px) {
    .navbar-link-text-mobile-hide {
        display: none;
    }

    .navbar {
        padding: 0.75rem 1.5rem;
    }
}

/* Tablet: Compact navbar */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
        min-height: 56px;
    }

    .navbar-menu {
        gap: 0.25rem;
    }

    .navbar-link {
        padding: 0.5rem;
    }

    .navbar-link-text {
        display: none;
    }

    .navbar-title {
        font-size: 1rem;
    }

    .navbar-logo {
        width: 28px;
        height: 28px;
    }
}

/* Small/Medium Screens: Center title, ultra compact menu */
@media (max-width: 800px) {
    .navbar {
        padding: 0.5rem 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .navbar-brand {
        width: 100%;
        justify-content: center;
    }

    .navbar-brand-link {
        gap: 0.5rem;
        font-size: 1rem;
    }

    .navbar-menu {
        width: 100%;
        justify-content: center;
        gap: 0.25rem;
    }

    .navbar-link {
        padding: 0.5rem;
    }

}

/* Extra Small Mobile: Even more compact */
@media (max-width: 400px) {
    .navbar {
        padding: 0.5rem;
    }

    .navbar-brand-link {
        gap: 0.375rem;
    }

    .navbar-title {
        font-size: 0.9375rem;
    }

    .navbar-menu {
        gap: 0.125rem;
    }

    .navbar-link {
        padding: 0.375rem;
    }
}

/* Dark Mode Support (if implemented later) */
@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(30, 30, 30, 0.85);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .navbar-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}
