/**
 * Radar Chart Styles - Light Theme for Flex Mag
 */

.radar-chart-container {
    margin: 1.5rem auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.radar-chart-header {
    text-align: left;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.radar-chart-title {
    color: #222;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.2;
}

.radar-chart-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radar-chart-subtitle::after {
    content: '?';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid #e0e0e0;
}

.radar-chart-svg {
    display: block;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .radar-chart-container {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .radar-chart-header {
        margin-bottom: 0.5rem;
    }
    
    .radar-chart-title {
        font-size: 1.25rem;
    }
    
    .radar-chart-subtitle {
        font-size: 0.8rem;
    }
    
    .radar-chart-svg {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .radar-chart-container {
        padding: 0.75rem;
    }
    
    .radar-chart-title {
        font-size: 1.1rem;
    }
    
    .radar-chart-subtitle {
        font-size: 0.75rem;
    }
}

/* Animation for the chart */
.radarSector {
    animation: fadeIn 0.6s ease-in;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.sectorEdge {
    animation: drawStroke 1s ease-in;
}

.radarSector:nth-child(1) { animation-delay: 0.05s; }
.radarSector:nth-child(2) { animation-delay: 0.1s; }
.radarSector:nth-child(3) { animation-delay: 0.15s; }
.radarSector:nth-child(4) { animation-delay: 0.2s; }
.radarSector:nth-child(5) { animation-delay: 0.25s; }
.radarSector:nth-child(6) { animation-delay: 0.3s; }
.radarSector:nth-child(7) { animation-delay: 0.35s; }
.radarSector:nth-child(8) { animation-delay: 0.4s; }

.radarSector:nth-child(1) { animation-delay: 0.05s; }
.radarSector:nth-child(2) { animation-delay: 0.1s; }
.radarSector:nth-child(3) { animation-delay: 0.15s; }
.radarSector:nth-child(4) { animation-delay: 0.2s; }
.radarSector:nth-child(5) { animation-delay: 0.25s; }
.radarSector:nth-child(6) { animation-delay: 0.3s; }
.radarSector:nth-child(7) { animation-delay: 0.35s; }
.radarSector:nth-child(8) { animation-delay: 0.4s; }

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes drawStroke {
    from {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dasharray: 1000;
        stroke-dashoffset: 0;
    }
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hover effects */
.radarSector {
    transition: all 0.2s ease;
}

.radarSector:hover {
    opacity: 1 !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}
