/* Tag Analysis Specific Styles */

.tag-analysis-container {
    background: var(--radiance-bg-secondary);
    min-height: 100vh;
}

.tag-analysis-header {
    background: var(--v2-surface-2);
    color: var(--v2-text-bright);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.tag-analysis-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tag-analysis-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Alert Styles */
.architectural-alert {
    border-left: 4px solid;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.architectural-alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alert-severity-high {
    border-left-color: var(--v2-error);
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.1) 0%, transparent 100%);
}

.alert-severity-medium {
    border-left-color: var(--v2-warning);
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.1) 0%, transparent 100%);
}

.alert-severity-low {
    border-left-color: var(--v2-info);
    background: linear-gradient(90deg, rgba(23, 162, 184, 0.1) 0%, transparent 100%);
}

/* Chart Container Styles */
.chart-container {
    position: relative;
    background: var(--v2-surface);
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.chart-container:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.chart-header {
    background: var(--v2-surface-2);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--v2-border);
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--v2-text-bright);
    margin: 0;
}

.chart-body {
    padding: 1.5rem;
}

/* Metric Cards */
.metric-card {
    background: var(--v2-surface);
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.metric-card-header {
    background: var(--v2-surface-2);
    color: var(--v2-text-bright);
    padding: 1rem 1.5rem;
}

.metric-card-body {
    padding: 1.5rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--v2-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tag Trend Items */
.tag-trend-item {
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.tag-trend-item:hover {
    border-color: var(--v2-accent);
    box-shadow: 0 2px 8px rgba(240, 104, 72, 0.15);
}

.tag-trend-up {
    border-left: 4px solid var(--v2-success);
}

.tag-trend-down {
    border-left: 4px solid var(--v2-error);
}

.tag-trend-new {
    border-left: 4px solid var(--v2-warning);
}

.tag-trend-stable {
    border-left: 4px solid var(--v2-text-dim);
}

.tag-key {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    background: var(--v2-surface-2);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    color: var(--v2-text-bright);
}

/* Repository Details */
.repository-details {
    background: var(--v2-surface-2);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-top: 2rem;
}

.repository-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--v2-surface);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--v2-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filter Controls */
.filter-controls {
    background: var(--v2-surface);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 600;
    color: var(--v2-text-bright);
    margin-bottom: 0.5rem;
    display: block;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--v2-border);
    border-radius: 0.5rem;
    background: var(--v2-surface);
    font-size: 0.875rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--v2-accent);
    box-shadow: 0 0 0 0.2rem rgba(240, 104, 72, 0.25);
}

/* Progress Bars */
.entropy-progress {
    height: 8px;
    background: var(--v2-border);
    border-radius: 4px;
    overflow: hidden;
}

.entropy-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--v2-success) 0%, var(--v2-warning) 50%, var(--v2-error) 100%);
    transition: width 0.6s ease;
}

/* Loading States */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--v2-text-dim);
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tag-analysis-title {
        font-size: 2rem;
    }

    .repository-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .metric-value {
        font-size: 2rem;
    }

    .chart-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .repository-stats {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        padding: 1rem;
    }
}
