/**
 * header.css - SHARED HEADER STYLES (SUPREME V20.1.13)
 * Strategy: Flexbox Alignment + Fluid Typography + Admin Button Scaling
 */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 25px;
    background: var(--bg-card);
    flex-shrink: 0; 
    z-index: 1000;
}

.logo-brand-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-caption-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-logo-main {
    height: clamp(55px, 6vw, 75px);
    width: auto;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    /* Added to ensure zero interference with the transparency grid fix */
    background: transparent; 
    border: none;
}

.main-site-title { 
    margin: 0; 
    font-size: clamp(1.6rem, 5vw, 2.2rem); /* Slightly tightened for better mobile fit */
    font-weight: 850; 
    color: var(--text-main); 
    line-height: 1.1; 
    letter-spacing: -0.02em; /* Added for a more professional technical look */
}

.site-caption {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* NEW: Container for terminal and admin buttons */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .header { 
        padding: 12px 15px; 
    }
    .site-logo-main { 
        height: 48px; /* Balanced for modern smartphone displays */
    }
    .logo-brand-group { 
        gap: 12px; 
    }
    .main-site-title {
        font-size: 1.4rem;
    }
    .site-caption { 
        font-size: 0.75rem; /* Prevents text wrap on small screens */
        max-width: 180px; 
    }
    /* Stack buttons on very small devices if needed */
    .header-right {
        gap: 5px;
    }
}