/**
 * Price-Performance Pages - Feature Rich Design
 * Inspired by modern benchmark comparison sites
 */

/* ============================================
   HERO SECTION - Image Background with Overlay
   ============================================ */
.pp-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  padding: 3rem 2.5rem;
  margin-bottom: 2rem;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* CPU Hero - Blue/Cyan overlay */
.cpu-hero {
  background-image: url('/static/images/cpu-value.jpg');
}

/* GPU Hero - Green/Teal overlay */
.gpu-hero {
  background-image: url('/static/images/gpu-value.jpg');
}

/* Color Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cpu-hero .hero-overlay {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 138, 0.7) 50%, rgba(6, 78, 140, 0.6) 100%);
}

.gpu-hero .hero-overlay {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(5, 102, 68, 0.7) 50%, rgba(16, 120, 80, 0.6) 100%);
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive Hero */
@media (max-width: 768px) {
  .pp-hero {
    min-height: 220px;
    padding: 2rem 1.5rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .pp-hero {
    min-height: 180px;
    padding: 1.5rem 1rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
}

/* Light Theme - slightly lighter overlay */
[data-theme="light"] .cpu-hero .hero-overlay {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.75) 0%, rgba(59, 130, 246, 0.6) 50%, rgba(96, 165, 250, 0.5) 100%);
}

[data-theme="light"] .gpu-hero .hero-overlay {
  background: linear-gradient(135deg, rgba(5, 102, 68, 0.75) 0%, rgba(16, 185, 129, 0.6) 50%, rgba(52, 211, 153, 0.5) 100%);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.pp-header {
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.pp-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #f1f5f9;
}

.pp-header p {
  font-size: 1rem;
  color: #94a3b8;
  margin: 0;
}

.pp-header a {
  color: #60a5fa;
  text-decoration: underline;
}

[data-theme="light"] .pp-header h1 {
  color: #1e293b;
}

[data-theme="light"] .pp-header p {
  color: #64748b;
}

/* ============================================
   HIGHLIGHT CARDS (Best Value, High-End, etc.)
   ============================================ */
.pp-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .pp-highlights {
    grid-template-columns: 1fr;
  }
}

.highlight-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.highlight-card.best-value::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.highlight-card.high-end::before {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.highlight-card.efficiency::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.highlight-badge svg {
  width: 14px;
  height: 14px;
}

.best-value .highlight-badge {
  color: #34d399;
}

.high-end .highlight-badge {
  color: #a78bfa;
}

.efficiency .highlight-badge {
  color: #fbbf24;
}

.highlight-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.25rem;
}

.highlight-stats {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.highlight-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #60a5fa;
}

.highlight-unit {
  font-size: 0.875rem;
  color: #64748b;
}

.highlight-meta {
  font-size: 0.8rem;
  color: #64748b;
}

.highlight-link {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 6px;
  color: #60a5fa;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.highlight-link:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

.highlight-icon {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.best-value .highlight-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.high-end .highlight-icon {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

.efficiency .highlight-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.highlight-icon svg {
  width: 20px;
  height: 20px;
}

[data-theme="light"] .highlight-card {
  background: #fff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .highlight-name {
  color: #1e293b;
}

/* ============================================
   FILTERS SECTION
   ============================================ */
.pp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.filter-search {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.filter-search input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.875rem;
}

.filter-search input::placeholder {
  color: #64748b;
}

.filter-search input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.filter-search svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #64748b;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.filter-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.875rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: #3b82f6;
}

.filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  color: #60a5fa;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: rgba(59, 130, 246, 0.2);
}

.filter-btn svg {
  width: 18px;
  height: 18px;
}

.filter-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

[data-theme="light"] .pp-filters {
  background: #fff;
  border-color: #e2e8f0;
}

[data-theme="light"] .filter-search input,
[data-theme="light"] .filter-select {
  background: #f8fafc;
  border-color: #d1d5db;
  color: #1e293b;
}

/* ============================================
   SCATTER CHART SECTION
   ============================================ */
.pp-chart-section {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.chart-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 0.25rem;
}

.chart-subtitle {
  font-size: 0.8rem;
  color: #64748b;
}

.chart-legend {
  display: flex;
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.intel {
  background: #3b82f6;
}

.legend-dot.amd {
  background: #ef4444;
}

.legend-dot.nvidia {
  background: #22c55e;
}

.chart-container {
  position: relative;
  height: 400px;
  min-height: 400px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 8px;
  padding: 1rem;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
  max-height: 370px;
}

.chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #64748b;
}

.chart-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

[data-theme="light"] .pp-chart-section {
  background: #fff;
  border-color: #e2e8f0;
}

[data-theme="light"] .chart-title {
  color: #1e293b;
}

[data-theme="light"] .chart-container {
  background: #f8fafc;
}

/* Ensure chart canvas is visible */
#pricePerformanceChart {
  display: block;
  min-height: 350px;
}

/* ============================================
   RANKINGS TABLE
   ============================================ */
.pp-rankings {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.rankings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rankings-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rankings-title h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
}

.rankings-count {
  padding: 0.25rem 0.625rem;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #60a5fa;
}

.rankings-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sort-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.8rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  cursor: pointer;
}

.export-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #60a5fa;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.export-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.export-btn svg {
  width: 16px;
  height: 16px;
}

/* Rankings Table */
.rankings-table {
  width: 100%;
  border-collapse: collapse;
}

.rankings-table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rankings-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.rankings-table th.sortable:hover {
  color: #94a3b8;
}

.rankings-table th .sort-icon {
  display: inline-block;
  margin-left: 0.25rem;
  opacity: 0.5;
}

.rankings-table th.sorted .sort-icon {
  opacity: 1;
  color: #60a5fa;
}

.rankings-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.rankings-table tbody tr {
  transition: background 0.15s;
}

.rankings-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.05);
}

.rankings-table tbody tr:last-child td {
  border-bottom: none;
}

/* Rank Column */
.rank-cell {
  width: 60px;
  text-align: center;
}

.rank-num {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
}

.rank-num.top-3 {
  color: #fbbf24;
}

/* Hardware Cell */
.hardware-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hw-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.hw-checkbox:checked {
  background: #3b82f6;
  border-color: #3b82f6;
}

.hw-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hw-icon.intel {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.hw-icon.amd {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.hw-icon.nvidia {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.hw-info {
  min-width: 0;
}

.hw-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hw-name a {
  color: inherit;
  text-decoration: none;
}

.hw-name a:hover {
  color: #60a5fa;
}

.hw-meta {
  font-size: 0.75rem;
  color: #64748b;
}

/* Badge */
.value-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.value-badge.best {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

/* Specs Cell */
.specs-cell {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Score Cell */
.score-cell {
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
}

/* Price Cell */
.price-cell {
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
}

/* Value Cell */
.value-cell {
  min-width: 140px;
}

.value-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.value-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: #10b981;
  min-width: 50px;
}

.value-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.value-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 4px;
  transition: width 0.5s ease-out;
}

/* Action Cell */
.action-cell {
  text-align: right;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s;
}

.view-btn:hover {
  color: #60a5fa;
}

.view-btn svg {
  width: 18px;
  height: 18px;
}

[data-theme="light"] .pp-rankings {
  background: #fff;
  border-color: #e2e8f0;
}

[data-theme="light"] .rankings-header {
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .rankings-title h2 {
  color: #1e293b;
}

[data-theme="light"] .rankings-table th {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
  color: #64748b;
}

[data-theme="light"] .rankings-table td {
  border-bottom-color: #f1f5f9;
}

[data-theme="light"] .rankings-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.04);
}

[data-theme="light"] .hw-name {
  color: #1e293b;
}

[data-theme="light"] .score-cell,
[data-theme="light"] .price-cell {
  color: #1e293b;
}

[data-theme="light"] .sort-select {
  background: #f8fafc;
  border-color: #d1d5db;
  color: #1e293b;
}

/* ============================================
   COMPARISON BAR (Floating)
   ============================================ */
.compare-bar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.compare-bar.visible {
  display: flex;
}

.compare-count {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #3b82f6;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.compare-text {
  font-size: 0.9rem;
  color: #e2e8f0;
}

.compare-btn {
  padding: 0.5rem 1rem;
  background: #3b82f6;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.compare-btn:hover {
  background: #2563eb;
}

.compare-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
}

.compare-close:hover {
  color: #f87171;
}

.compare-close svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pp-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(15, 23, 42, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pagination-info {
  font-size: 0.85rem;
  color: #64748b;
}

.pagination-info a {
  color: #60a5fa;
}

.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(.disabled):not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.page-btn.active {
  background: #3b82f6;
  color: #fff;
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .pp-pagination {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .pagination-controls {
    justify-content: center;
  }
}

[data-theme="light"] .pp-pagination {
  background: #f8fafc;
  border-top-color: #e2e8f0;
}

[data-theme="light"] .page-btn:hover:not(.disabled):not(.active) {
  background: #e2e8f0;
  color: #1e293b;
}

/* ============================================
   INFO SECTION
   ============================================ */
.pp-info {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.pp-info h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 1rem;
}

.pp-info p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0 0 1rem;
  max-width: 100%;
  word-wrap: break-word;
}

.pp-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 1.5rem 0 0.75rem;
}

.pp-info ul {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 100%;
}

.pp-info li {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.8;
  word-wrap: break-word;
}

[data-theme="light"] .pp-info {
  background: #fff;
  border-color: #e2e8f0;
}

[data-theme="light"] .pp-info h2 {
  color: #1e293b;
}

[data-theme="light"] .pp-info h3 {
  color: #334155;
}

[data-theme="light"] .pp-info p,
[data-theme="light"] .pp-info li {
  color: #64748b;
}


/* ============================================
   TOP 10 SECTIONS - State of Art Design
   ============================================ */
.top10-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1200px) {
  .top10-sections {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top10-sections {
    grid-template-columns: 1fr;
  }
}

.top10-section {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.top10-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.top10-section.best-value::before {
  background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7);
}

.top10-section.high-end::before {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa, #c4b5fd);
}

.top10-section.efficiency::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #fcd34d);
}

/* Header */
.top10-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top10-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.top10-icon svg {
  width: 24px;
  height: 24px;
}

.best-value .top10-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.1) 100%);
  color: #34d399;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.high-end .top10-icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(167, 139, 250, 0.1) 100%);
  color: #a78bfa;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.efficiency .top10-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
  color: #fbbf24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.top10-title h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.25rem;
}

.top10-title p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
}

/* List */
.top10-list {
  padding: 0.5rem;
}

.top10-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.top10-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.top10-rank {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  color: #64748b;
  flex-shrink: 0;
}

.top10-rank.gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.top10-rank.silver {
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(148, 163, 184, 0.3);
}

.top10-rank.bronze {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.top10-info {
  flex: 1;
  min-width: 0;
}

.top10-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top10-meta {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.125rem;
}

.top10-score {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
}

.best-value .top10-score {
  color: #34d399;
}

.high-end .top10-score {
  color: #a78bfa;
}

.efficiency .top10-score {
  color: #fbbf24;
}

.top10-score small {
  font-size: 0.65rem;
  font-weight: 500;
  color: #64748b;
  margin-left: 0.125rem;
}

/* Light Theme */
[data-theme="light"] .top10-section {
  background: #fff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .top10-header {
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .top10-title h2 {
  color: #1e293b;
}

[data-theme="light"] .top10-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .top10-name {
  color: #1e293b;
}

[data-theme="light"] .top10-rank {
  background: #f1f5f9;
}
