/* ==========================================================================
   HMS DBMI Shared Branding Styles
   ========================================================================== */

:root {
    --harvard-crimson: #bc262b;
    --medical-blue: #2563eb;
    --ai-purple: #7c3aed;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
}

/* Logo Styling */
.hms-logo {
    height: 25.92px;
    width: auto;
    max-width: 201.6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    object-fit: contain;
    vertical-align: middle;
}

.hms-logo:hover {
    transform: scale(1.02);
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0; /* Allows container to shrink */
    flex-shrink: 1;
}

/* Lab Branding */
.lab-branding {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Allows text to wrap properly */
    flex-shrink: 1;
}

.lab-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.2;
    white-space: nowrap;
}

.lab-name:hover {
    color: var(--harvard-crimson);
}

.lab-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1;
    margin-top: 0.125rem;
    white-space: nowrap;
}

/* Navigation Badge */
.nav-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--medical-blue);
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hms-logo {
        height: 25.92px;
        max-width: 172.8px;
    }
    
    .lab-name {
        font-size: 1rem;
    }
    
    .lab-subtitle {
        display: none; /* Hide subtitle on tablets */
    }
    
    .logo-container {
        gap: 0.375rem;
    }
}

@media (max-width: 640px) {
    .hms-logo {
        height: 23.04px;
        max-width: 144px;
    }
    
    .lab-name {
        font-size: 0.875rem;
    }
    
    .logo-container {
        gap: 0.25rem;
    }
    
    .nav-badge {
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
    }
}

/* Color Utilities */
.text-harvard-crimson {
    color: var(--harvard-crimson);
}

.bg-harvard-crimson {
    background-color: var(--harvard-crimson);
}

.border-harvard-crimson {
    border-color: var(--harvard-crimson);
}

.hover\:text-harvard-crimson:hover {
    color: var(--harvard-crimson);
}

.hover\:bg-harvard-crimson:hover {
    background-color: var(--harvard-crimson);
}

/* Print Styles */
@media print {
    .hms-logo {
        height: 20px;
        transform: none;
    }
    
    .lab-name {
        color: #000;
    }
    
    .lab-subtitle {
        color: #666;
    }
}