/* Reading Page Styles - uses theme CSS variables */
.reading-container {
  max-width: 100%;
  margin: 0;
  padding: 1.5rem 0;
}

.reading-container h1 {
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.reading-intro {
  color: var(--code-color-11);
  margin-bottom: 2rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--background-color);
  border: 1px dashed var(--code-color-18);
  padding: 1rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--link-color);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--code-color-11);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Charts Grid - 2x2 layout */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.chart-container {
  background: var(--background-color);
  border: 1px dashed var(--code-color-18);
  padding: 1.25rem;
}

.chart-container h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
  margin-top: 0;
  color: var(--code-color-5);
  font-weight: 600;
}

.chart-container canvas {
  max-height: 280px;
}

/* Subcategory charts section */
.subcategory-charts {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.subcategory-charts > h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--code-color-5);
}

/* Highlights Section */
.highlights-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.highlights-section h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--code-color-5);
}

.highlights-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlights-section li {
  padding: 0.75rem 1rem;
  background: var(--background-color);
  border: 1px dashed var(--code-color-18);
  margin-bottom: 0.5rem;
}

.highlights-section li:before {
  content: none;
}

.highlight-meta {
  color: var(--code-color-11);
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

/* Table styling */
.reading-table {
  margin-top: 2rem;
}

.reading-table h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--code-color-5);
}

.reading-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  display: table;
}

.reading-table th,
.reading-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--code-color-18);
  color: var(--text-color);
  background: transparent;
}

.reading-table thead tr {
  border-bottom: 1px dashed var(--code-color-18);
}

.reading-table th {
  font-weight: 600;
  color: var(--code-color-11);
  border: none;
}

.reading-table tbody tr:hover {
  background: rgba(168, 153, 132, 0.1);
}

.reading-table .rating {
  font-weight: 500;
}

/* Loading state */
.loading {
  text-align: center;
  padding: 2rem;
  color: var(--code-color-11);
}

/* Responsive - single column on mobile */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }

  .reading-container {
    padding: 1rem 0;
  }

  .reading-table {
    overflow-x: auto;
  }

  .reading-table table {
    min-width: 500px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: 1.4rem;
  }
}
