/* shared-header.css
   Unified header styles for consistent navigation across all pages.
*/

.site-header {
    border-bottom: 1px solid var(--border, #e5e7eb);
    background: var(--bg, #ffffff);
}

.site-header .wrap {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 14px var(--pad, 16px);
    max-width: var(--max, 1100px);
    margin: 0 auto;
}

.site-header .header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-header .brand-title {
    font-weight: 700;
    font-size: 1rem;
}

.site-header .brand-sub {
    color: var(--muted, #6b7280);
    font-size: 0.95rem;
}

.site-header .auth-info {
    font-size: 0.85rem;
    color: var(--muted, #6b7280);
    display: none; /* Auth info is now in the menu */
}

.site-header .header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

/* Navigation styles */
.nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-spacer {
    flex: 1;
    min-width: 12px;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

/* Church Switcher - Super Admin Feature */
.church-switcher {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.church-switcher-label {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--alt, #f6f7f9);
    border: 1px solid var(--border, #e5e7eb);
    cursor: pointer;
}

.church-switcher-label:hover {
    border-color: var(--accent, #003366);
}

.church-switcher-label.override-active {
    background: #fef3cd;
    border-color: #ffc107;
}

.church-icon {
    font-size: 0.9rem;
}

.church-switcher-dropdown {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: var(--ink, #111827);
    cursor: pointer;
    padding: 2px 4px;
    min-width: 100px;
    max-width: 180px;
}

.church-switcher-dropdown:focus {
    outline: none;
}

.auth-user {
    color: var(--ink, #111827);
    padding: 6px 10px;
}

.auth-link {
    color: var(--muted, #6b7280);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 10px;
}

.auth-link:hover {
    background: var(--alt, #f6f7f9);
    color: var(--ink, #111827);
}

.nav a {
    text-decoration: none;
    color: var(--muted, #6b7280);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.nav a:hover {
    background: var(--alt, #f6f7f9);
    color: var(--ink, #111827);
}

.nav a.active {
    background: var(--alt, #f6f7f9);
    color: var(--ink, #111827);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 700px) {
    .site-header .wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .site-header .header-right {
        align-items: flex-start;
        width: 100%;
    }

    .nav {
        width: 100%;
    }
}

/* Print styles */
@media print {
    .site-header .auth-info,
    .site-header .nav {
        display: none;
    }
}
