/* Multi-File Component Analysis Styles */

/* ===== FILE SECTION SEPARATORS IN TREE ===== */
.file-section {
    
    border: 1px solid var(--border-subtle);
    border-radius: 0px;
    overflow: hidden;
}

.file-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--background-secondary);
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background 0.2s ease;
    font-weight: 500;
}

.file-section-header:hover {
    background: var(--background-hover);
}

.main-file-section .file-section-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.component-file-section .file-section-header {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.file-expand-icon {
    font-family: var(--font-bios);
    font-size: var(--font-size-base);
    font-weight: bold;
    min-width: 16px;
    text-align: center;
    user-select: none;
}

.file-section-icon {
    font-size: var(--font-size-lg);
}

.file-section-name {
    flex: 1;
    font-size: var(--font-size-sm);
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-bios);
}

/* Version button in file section header */
.file-version-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border: var(--border-width) solid var(--border-primary);
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: var(--font-size-xs);
    color: var(--text-primary);
    background: var(--bg-primary);
    min-width: fit-content;
    white-space: nowrap;
    box-shadow: var(--shadow-offset-small) var(--shadow-offset-small) 0 var(--shadow-primary);
    font-family: var(--font-bios);
    text-transform: uppercase;
    font-weight: bold;
    margin-left: var(--space-sm);
}

.file-version-btn:hover {
    background: var(--cta-primary);
    color: var(--text-on-white);
    border-color: var(--cta-primary);
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow-primary);
}

.file-version-btn:active {
    transform: translate(0, 0);
    box-shadow: 0 0 0 var(--shadow-primary);
}

.file-version-btn .version-text {
    font-family: var(--font-bios);
    font-weight: bold;
}

/* REMOVED: Badge styles unused after unifying file sections (badges removed from HTML in tree.js)
.file-section-badge {
    padding: var(--space-xs) var(--space-sm);
    border-radius: 0;
    font-size: var(--font-size-xs);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: var(--border-width) solid var(--border-primary);
}

.main-file-badge {
    background: var(--text-primary);
    color: var(--text-on-white);
    border-color: var(--text-primary);
}

.component-file-badge {
    background: var(--text-primary);
    color: var(--text-on-white);
    border-color: var(--text-primary);
}
*/

.file-component-count {
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-primary);
    border-radius: 0; /* Flat BIOS */
    font-size: var(--font-size-xs);
    color: var(--text-primary);
    font-weight: bold;
    border: var(--border-width) solid var(--border-primary);
    font-family: var(--font-bios);
}

.file-section-content {
    padding: var(--space-sm) 0;
    max-height: none;
    overflow: visible;
    transition: max-height var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

.file-section-content.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
}

/* ===== FILE SOURCE BADGES IN TREE ===== */
.file-source-badge {
    display: inline-block;
    padding: var(--space-xs);
    margin-left: var(--space-sm);
    background: var(--color-purple-component);
    color: var(--text-on-white);
    border-radius: 0; /* Flat BIOS */
    border: var(--border-width) solid var(--border-primary);
    font-size: var(--font-size-xs);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-bios);
}

.file-source-badge:hover {
    background: var(--color-purple-light);
}

/* ===== CROSS-FILE PATH INDICATORS ===== */
.cross-file-path {
    position: relative;
}

.cross-file-path::after {
    content: '🔗';
    position: absolute;
    right: var(--space-xs);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

.cross-file-path:hover::after {
    opacity: 1;
}

/* ===== CROSS-FILE NOTIFICATION (8-BIT BIOS STYLE) ===== */
.cross-file-notification {
    position: fixed;
    top: 80px;
    right: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--color-purple-component);
    color: var(--text-on-white);
    border-radius: 0; /* Flat BIOS */
    border: var(--border-width-thick) solid var(--border-primary);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow-primary);
    z-index: 10000;
    font-size: var(--font-size-sm);
    font-weight: bold;
    font-family: var(--font-bios);
    text-transform: uppercase;
}

.cross-file-notification.fade-out {
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.notification-icon {
    font-size: var(--font-size-lg);
}

.notification-text {
    white-space: nowrap;
    letter-spacing: 1px;
}

/* =============================================================================
   MULTI-FILE COMPONENT ANALYSIS STYLES - BIOS FLAT DESIGN
   Following CompoLyze's 8-bit aesthetic with flat black on white
   ============================================================================= */

/* ===== FILE SECTION SEPARATORS IN TREE ===== */
.file-section {
    overflow: hidden;
    background: var(--bg-primary);
}

.file-section-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border-bottom: var(--border-width) solid var(--border-primary);
    border-top: var(--border-width) solid var(--border-primary);
    cursor: pointer;
    transition: background var(--transition-speed) ease;
    font-weight: bold;
    font-family: var(--font-bios);
    text-transform: uppercase;
    font-size: var(--font-size-sm);
}

.file-section-header:hover {
    background: var(--bg-interactive);
}

/* Main file section - Blue BIOS style */
.main-file-section .file-section-header {
    background: var(--color-blue-component);
    color: var(--text-on-white);
    border-bottom-color: var(--border-primary);
}

.main-file-section .file-section-header:hover {
    background: var(--color-blue-component);
    filter: brightness(1.1);
}

/* Component file section - Purple BIOS style */
.component-file-section .file-section-header {
    background: var(--color-blue-component);
    color: var(--text-on-white);
    border-bottom-color: var(--border-primary);
}

.component-file-section .file-section-header:hover {
    background: var(--color-blue-light);
}

/* DUPLICATE SECTION REMOVED - styles are defined earlier in file (lines 39-93) */

.file-section-content {
    padding: var(--space-sm) 0;
    max-height: none;
    overflow: visible;
    transition: max-height var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

.file-section-content.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
}

/* ===== FILE SOURCE BADGES IN TREE ===== */
.file-source-badge {
    display: inline-block;
    padding: var(--space-xs);
    margin-left: var(--space-sm);
    background: var(--color-purple-component);
    color: var(--text-on-white);
    border-radius: 0; /* Flat BIOS */
    border: var(--border-width) solid var(--border-primary);
    font-size: var(--font-size-xs);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-bios);
}

.file-source-badge:hover {
    background: var(--color-purple-light);
}

/* ===== CROSS-FILE PATH INDICATORS ===== */
.cross-file-path {
    position: relative;
}

.cross-file-path::after {
    content: '🔗';
    position: absolute;
    right: var(--space-xs);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

.cross-file-path:hover::after {
    opacity: 1;
}

/* ===== CROSS-FILE NOTIFICATION (8-BIT BIOS STYLE) ===== */
.cross-file-notification {
    position: fixed;
    top: 80px;
    right: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--color-purple-component);
    color: var(--text-on-white);
    border-radius: 0; /* Flat BIOS */
    border: var(--border-width-thick) solid var(--border-primary);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow-primary);
    z-index: 10000;
    font-size: var(--font-size-sm);
    font-weight: bold;
    font-family: var(--font-bios);
    text-transform: uppercase;
}

.cross-file-notification.fade-out {
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.notification-icon {
    font-size: var(--font-size-lg);
}

.notification-text {
    white-space: nowrap;
    letter-spacing: 1px;
}

/* ===== SETTINGS UI ENHANCEMENTS ===== */
.settings-label .help-text {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--font-size-xs);
    font-weight: normal;
    color: var(--text-muted);
    font-style: normal;
    font-family: var(--font-bios);
}

.help-text-small {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-style: normal;
    font-family: var(--font-bios);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .file-section-header {
        padding: var(--space-sm);
        font-size: var(--font-size-xs);
        flex-wrap: wrap;
    }
    
    .file-section-name {
        font-size: var(--font-size-xs);
        flex: 1 1 100%;
        margin-bottom: var(--space-xs);
    }
    
    .file-version-btn {
        font-size: 10px;
        padding: var(--space-xs);
        margin-left: 0;
    }
    
    .file-component-count {
        font-size: 10px;
    }
    
    .cross-file-notification {
        right: var(--space-sm);
        top: 70px;
        padding: var(--space-sm);
        font-size: var(--font-size-xs);
    }
}

.settings-label .help-text {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--font-size-xs);
    font-weight: normal;
    color: var(--text-muted);
    font-style: normal;
    font-family: var(--font-bios);
}

.help-text-small {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-style: normal;
    font-family: var(--font-bios);
}

/* DUPLICATE MEDIA QUERY REMOVED - already defined above */
