/* Windows Component Analyzer Styles */
/* Версия: 1.0 */

/* Основной контейнер для индикаторов компонентов */
.component-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.component-indicators strong {
    width: 100%;
    margin-bottom: 8px;
    color: #495057;
    font-size: 16px;
}

/* Индикатор отдельного компонента */
.component-indicator {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: help;
    white-space: nowrap;
}

.component-indicator:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Статусы компонентов */
.component-removed {
    background: linear-gradient(135deg, #ffe6e6, #ffcdd2);
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.component-present {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.component-modified {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #ef6c00;
    border: 1px solid #ffcc02;
}

.component-unknown {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}

/* Иконки компонентов */
.component-icon {
    margin-right: 6px;
    font-size: 16px;
    position: relative;
    display: inline-block;
}

/* Перечеркнутая иконка для удаленных компонентов */
.icon-crossed {
    position: relative;
}

.icon-crossed::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #d32f2f;
    transform: rotate(-20deg);
    border-radius: 1px;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

/* Инлайн компоненты (для вставки в текст) */
.inline-component {
    display: inline-flex;
    align-items: center;
    margin: 0 3px;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 12px;
    vertical-align: middle;
    line-height: 1.2;
}

.inline-component .component-icon {
    margin-right: 3px;
    font-size: 14px;
}

/* Сводка анализа */
.analysis-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.analysis-summary h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.summary-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.stat-item {
    text-align: center;
    min-width: 80px;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Компактная версия для узких экранов */
.component-indicators.compact {
    padding: 10px;
    gap: 8px;
}

.component-indicators.compact .component-indicator {
    padding: 4px 8px;
    font-size: 12px;
}

.component-indicators.compact .component-icon {
    font-size: 14px;
    margin-right: 4px;
}

/* Интеграция с таблицами характеристик */
.system-requirements .component-indicator {
    margin-left: 8px;
    font-size: 12px;
    padding: 3px 8px;
}

/* Анимация появления */
.component-indicator {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .component-indicators {
        padding: 12px;
        gap: 8px;
    }
    
    .component-indicator {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .summary-stats {
        justify-content: space-between;
    }
    
    .stat-item {
        min-width: 60px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .analysis-summary {
        padding: 15px;
    }
    
    .analysis-summary h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .component-indicators {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .component-indicator {
        align-self: flex-start;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .stat-number, .stat-label {
        display: inline;
    }
    
    .stat-label {
        font-size: 14px;
    }
}

/* Темная тема (опциональная) */
@media (prefers-color-scheme: dark) {
    .component-indicators {
        background: #2d3436;
        border-left-color: #74b9ff;
    }
    
    .component-indicators strong {
        color: #ddd;
    }
    
    .analysis-summary {
        background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    }
}

/* Печать */
@media print {
    .component-indicators {
        background: transparent;
        border: 1px solid #ccc;
    }
    
    .component-indicator {
        border: 1px solid #666;
        background: transparent !important;
        color: #000 !important;
    }
    
    .analysis-summary {
        background: transparent;
        color: #000;
        border: 1px solid #ccc;
    }
}