﻿/** * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 *
 * Styling for ancestry score ranking section (percentile, tier badge, distribution chart).
 */

.ancestry-score-ranking {
    padding: 1.5rem;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.ancestry-ranking-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ancestry-ranking-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ancestry-tier-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
}

.ancestry-tier-elite {
    background: linear-gradient(135deg, #c9a030 0%, #a67c00 100%);
    color: #fff;
}

.ancestry-tier-above {
    background: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.5);
}

.ancestry-tier-average {
    background: rgba(52, 152, 219, 0.3);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.5);
}

.ancestry-tier-below {
    background: rgba(241, 196, 15, 0.3);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.5);
}

.ancestry-tier-low {
    background: rgba(149, 165, 166, 0.3);
    color: #95a5a6;
    border: 1px solid rgba(149, 165, 166, 0.5);
}

.ancestry-percentile-badge {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.ancestry-ranking-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ancestry-stat-pill {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    min-width: 80px;
}

.ancestry-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
}

.ancestry-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.ancestry-ranking-chart-container {
    position: relative;
    height: 200px;
    margin-bottom: 1rem;
}

.ancestry-histogram-chart {
    width: 100%;
    max-height: 200px;
}

.ancestry-ranking-footer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}
