/* ==========================================================================
   Vue.js アナリティクスダッシュボード スタイルシート
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.analytics-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-lg);
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.bar-chart-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.bar-label {
  width: 110px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: right;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-fill.anime { background: linear-gradient(90deg, #6366f1, #818cf8); }
.bar-fill.manga { background: linear-gradient(90deg, #ec4899, #f472b6); }
.bar-fill.cg { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.bar-fill.game { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bar-fill.other { background: linear-gradient(90deg, #64748b, #94a3b8); }

.bar-count {
  width: 45px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
  flex-shrink: 0;
}

.search-box {
  margin-bottom: 25px;
}

.search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 18px;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}
