: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);mask-composite:xor;-webkit-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;}
.vertical-chart{display:flex;align-items:end;justify-content:space-around;height:450px;gap:16px;padding:30px 0;background:linear-gradient(0deg, rgba(139, 92, 246, 0.05) 0%, transparent 50%);border-radius:16px;}
.vertical-bar-item{display:flex;flex-direction:column;align-items:center;opacity:0;transform:translateY(60px);transition:all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);}
.vertical-bar-item.animate{opacity:1;transform:translateY(0);}
.vertical-bar{width:48px;background:var(--gradient-primary);border-radius:24px 24px 8px 8px;height:0;transition:height 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);position:relative;box-shadow:var(--glow-purple), inset 2px 0 0 rgba(255, 255, 255, 0.3), inset -2px 0 0 rgba(0, 0, 0, 0.2);margin-bottom:12px;}
.vertical-bar::before{content:'';position:absolute;top:4px;left:4px;right:4px;height:40%;background:linear-gradient(0deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));border-radius:20px;}
.vertical-bar-label{font-size:1rem;font-weight:500;color:var(--text-secondary);text-align:center;margin-top:12px;max-width:70px;word-break:break-word;letter-spacing:-0.01em;}
.vertical-bar-value{font-size:0.9rem;color:var(--text-accent);margin-top:6px;font-weight:700;text-shadow:0 0 10px rgba(192, 132, 252, 0.5);font-variant-numeric:tabular-nums;}
.donut-chart{display:flex;justify-content:center;align-items:center;position:relative;height:auto;min-height:400px;}
.donut-container{position:relative;width:320px;height:320px;max-width:100%;}
.donut-svg{width:100%;height:100%;transform:rotate(-90deg);filter:drop-shadow(var(--glow-purple));}
.donut-segment{fill:none;stroke-width:40;opacity:0;transition:all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);stroke-linecap:round;}
.donut-segment.animate{opacity:1;}
.donut-center{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);text-align:center;z-index:10;width:100%;}
.donut-total{font-size:2.5rem;font-weight:800;margin-bottom:8px;background:var(--gradient-primary);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-shadow:var(--glow-purple);font-variant-numeric:tabular-nums;}
.donut-label{font-size:1rem;color:var(--text-muted);opacity:0.9;font-weight:500;letter-spacing:0.02em;}
.legend{display:flex;flex-wrap:wrap;gap:20px;justify-content:center;margin-top:40px;}
.legend-item{display:flex;align-items:center;gap:12px;font-size:1rem;font-weight:500;color:var(--text-secondary);opacity:0;transform:translateY(30px);transition:all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);padding:8px 16px;border-radius:12px;background:rgba(15, 23, 42, 0.3);backdrop-filter:blur(10px);border:1px solid rgba(139, 92, 246, 0.1);}
.legend-item.animate{opacity:1;transform:translateY(0);}
.legend-item:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(139, 92, 246, 0.2);border-color:rgba(139, 92, 246, 0.3);}
.legend-color{width:16px;height:16px;border-radius:50%;box-shadow:0 0 12px currentColor, inset 0 1px 0 rgba(255, 255, 255, 0.3);position:relative;}
.legend-color::after{content:'';position:absolute;top:2px;left:2px;right:2px;bottom:2px;border-radius:50%;background:linear-gradient(45deg, rgba(255, 255, 255, 0.3), transparent);}
@keyframes pulse-glow { 0%, 100%{box-shadow:var(--glow-purple);}
50%{box-shadow:var(--glow-intense);}
}
.chart-container:hover .bar, .chart-container:hover .vertical-bar{animation:pulse-glow 2s ease-in-out infinite;}
.chart-caption{margin-top:32px;padding-top:16px;border-top:1px solid rgba(139, 92, 246, 0.15);text-align:right;font-size:0.875rem;color:var(--text-muted);font-style:italic;opacity:0.9;}
.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;}
.vertical-chart{height:350px;gap:12px;}
.vertical-bar{width:36px;}
.donut-container{width:280px;height:280px;}
.donut-total{font-size:2rem;}
.donut-chart{min-height:350px;}
.legend{gap:15px;}
.legend-item{padding:6px 12px;font-size:0.9rem;}
}
@media(max-width:480px){ .chart-container { padding: 16px; border-radius: 16px; } .vertical-chart { height: 300px; gap: 8px; } .vertical-bar { width: 32px; } .donut-container { width: 240px; height: 240px; } .donut-total { font-size: 1.75rem; } .donut-label { font-size: 0.9rem; } .donut-chart { min-height: 300px; } }.ppg-popular-posts-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));gap:20px;margin-top:20px;margin-bottom:20px;}
.ppg-grid-item{border:1px solid #eee;border-radius:8px;overflow:hidden;background-color:#fff;box-shadow:0 2px 5px rgba(0, 0, 0, 0.05);transition:transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;display:flex;flex-direction:column;}
.ppg-grid-item:hover{transform:translateY(-3px);box-shadow:0 4px 10px rgba(0, 0, 0, 0.1);}
.ppg-item-link{text-decoration:none;color:inherit;display:flex;flex-direction:column;height:100%;}
.ppg-item-thumbnail{position:relative;width:100%;padding-top:56.25%;overflow:hidden;background-color:#f0f0f0;}
.ppg-item-thumbnail img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;display:block;border:none;}
.ppg-thumbnail-placeholder{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:#e9ecef;color:#6c757d;font-size:0.9em;text-align:center;}
.ppg-thumbnail-placeholder span{padding:5px;}
.ppg-item-content{padding:15px;flex-grow:1;display:flex;flex-direction:column;}
.ppg-item-title{font-size:1.1em;font-weight:600;margin:0 0 8px 0;color:#333;line-height:1.3;}
.ppg-item-description{font-size:0.9em;color:#555;line-height:1.5;margin:0;flex-grow:1;}
.ppg-grid-item{position:relative;}
.ppg-fire-icon{position:absolute;top:8px;left:8px;z-index:10;font-size:1.2em;background-color:rgba(0, 0, 0, 0);color:white;padding:-25px -20px;border-radius:4px;line-height:1;pointer-events:none;}
@media(max-width:480px){
.ppg-fire-icon{top:5px;left:5px;font-size:1.2em;padding:2px 4px;}
} .ppg-debug-info{font-size:0.75em;color:#999;margin-top:10px;padding-top:5px;border-top:1px dashed #eee;font-style:italic;}
@media(max-width:480px){
.ppg-popular-posts-grid{grid-template-columns:1fr;}
.ppg-item-title{font-size:1em;}
.ppg-item-description{font-size:0.85em;}
}  @media (prefers-color-scheme: dark) { body.dark-mode .ppg-popular-posts-grid {
background-color: #FFCC00!important; color: #f9f9f9 !important; border-color: #ffcc00; }
body.dark-mode .ppg-grid-item {
background-color: #333 !important; border-color: #444 !important; }
body.dark-mode .ppg-item-title {
color: #f9f9f9 !important; }
body.dark-mode .ppg-item-description {
color: #bbb !important; }
body.dark-mode .ppg-item-thumbnail {
background-color: #444 !important; }
body.dark-mode .ppg-fire-icon {
color: #f39c12 !important; }
body.dark-mode .ppg-debug-info {
color: #888 !important; } body.dark-mode .ppg-popular-posts-grid {
background-color: #222 !important;
}
body.dark-mode .ppg-grid-item {
background-color: #333 !important;
}
body.dark-mode .ppg-item-title {
color: #f9f9f9 !important;
}
body.dark-mode .ppg-item-description {
color: #bbb !important;
}
}