/* assets/css/chart-style.css */

:root {
    --primary-purple: #6366f1;
    --secondary-purple: #8b5cf6;
    --accent-purple: #a855f7;
    --light-purple: #c084fc;
    --ultra-light-purple: #e879f9;
    --bg-primary: #0a0a0f;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --bg-card: rgba(15, 23, 42, 0.9);
    --bg-glass: rgba(30, 41, 59, 0.3);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-accent: #c084fc;
    --glow-purple: 0 0 30px rgba(139, 92, 246, 0.4);
    --glow-intense: 0 0 50px rgba(139, 92, 246, 0.6);
    --shadow-deep: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    --border-glow: rgba(139, 92, 246, 0.3);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 25%, #a855f7 50%, #c084fc 75%, #e879f9 100%);
    --gradient-background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --gradient-card: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.8) 100%);
    --gradient-border: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, rgba(192, 132, 252, 0.2) 100%);
}
.chart-container {
    background: var(--gradient-card);
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid transparent;
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-deep), var(--glow-purple), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin: 60px 0;
    color: var(--text-primary);
    font-family: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.chart-container::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gradient-border); border-radius: 24px; padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: xor; z-index: -1;
}
.chart-container::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    animation: rotate-glow 8s linear infinite; z-index: -2; opacity: 0.5;
}
@keyframes rotate-glow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.chart-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.9), var(--glow-intense), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.chart-title {
    font-size: 2rem; font-weight: 700; background: var(--gradient-primary);
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 40px; text-align: center; letter-spacing: -0.02em; text-shadow: 0 0 30px rgba(139, 92, 246, 0.5); position: relative;
}
.chart-title::after {
    content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 3px; background: var(--gradient-primary); border-radius: 2px; box-shadow: var(--glow-purple);
}
.bar-chart { display: flex; flex-direction: column; gap: 24px; }
.bar-item { display: flex; align-items: center; opacity: 0; transform: translateX(-60px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.bar-item.animate { opacity: 1; transform: translateX(0); }
.bar-label { min-width: 160px; font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); text-align: right; margin-right: 24px; letter-spacing: -0.01em; }
.bar-wrapper { flex: 1; height: 48px; background: var(--bg-glass); border-radius: 24px; position: relative; overflow: hidden; border: 1px solid rgba(139, 92, 246, 0.2); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3); }
.bar { height: 100%; background: var(--gradient-primary); border-radius: 24px; width: 0; transition: width 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); position: relative; box-shadow: var(--glow-purple), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.2); }
.bar::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%); animation: tech-shimmer 3s ease-in-out infinite; }
.bar::after { content: ''; position: absolute; top: 2px; left: 2px; right: 2px; height: 40%; background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1)); border-radius: 20px; }
@keyframes tech-shimmer { 0% { left: -100%; opacity: 0; } 50% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.bar-value { min-width: 70px; font-size: 1.2rem; font-weight: 700; color: var(--text-accent); margin-left: 20px; text-shadow: var(--glow-purple); font-variant-numeric: tabular-nums; }
.chart-load-more-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: auto; margin: 24px auto 0; padding: 12px 24px; background: var(--bg-glass); color: var(--text-secondary); border: 1px solid var(--border-glow); border-radius: 16px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); backdrop-filter: blur(10px); }
.chart-load-more-btn:hover { background: rgba(139, 92, 246, 0.2); color: #eeeeee; border-color: rgba(139, 92, 246, 0.5); transform: translateY(-2px); box-shadow: var(--glow-purple); }
.chart-load-more-btn svg { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.chart-load-more-btn:hover svg { transform: rotate(180deg); }
.chart-load-more-btn.hidden { display: none; }
@media (max-width: 768px) { .chart-container { padding: 24px; margin: 30px 0; } .chart-title { font-size: 1.5rem; margin-bottom: 30px; } .bar-label { min-width: 100px; font-size: 0.9rem; } .bar-wrapper { height: 40px; } }
@media (max-width: 480px) { .chart-container { padding: 16px; border-radius: 16px; } }