/* Examples Page Styles */

.examples-hero {
  margin-top: 80px;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.05));
}

.examples-hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.examples-hero-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.examples-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.examples-section {
  margin-bottom: 4rem;
}

.examples-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.example-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s;
}

.example-card:hover {
  transform: translateY(-5px);
}

.example-header {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(14, 165, 233, 0.1);
  border-bottom: 1px solid var(--border);
}

.example-badge {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.example-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.example-name {
  padding: 1rem 1.5rem 0;
  font-size: 1.2rem;
}

.example-content {
  padding: 0 1.5rem 1.5rem;
}

.example-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.example-text {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.example-text p {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

/* Report Card */
.report-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.report-header {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(6, 182, 212, 0.05));
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.report-header h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.report-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.report-content {
  padding: 1.5rem;
}

.report-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-value.success {
  color: var(--success);
}

.stat-value.warning {
  color: var(--warning);
}

.report-table {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.report-table table {
  width: 100%;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  padding: 0.6rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.report-table th {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.report-conclusion {
  background: rgba(14, 165, 233, 0.05);
  padding: 1rem;
  border-radius: 12px;
  border-left: 3px solid var(--primary);
}

.report-conclusion p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Charts */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
}

.chart-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.chart-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.chart-container {
  background: var(--bg-dark);
  border-radius: 12px;
  padding: 1rem;
}

.chart-svg {
  width: 100%;
  height: auto;
}

.chart-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* Reports List */
.reports-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.report-mini {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.report-mini:hover {
  border-color: var(--primary);
  transform: translateX(5px);
}

.report-icon {
  font-size: 2rem;
}

.report-mini h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.report-mini p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .examples-container {
    padding: 1rem;
  }
  
  .examples-grid {
    grid-template-columns: 1fr;
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .report-stats {
    flex-direction: column;
    align-items: center;
  }
}
/* ===== Heat map (тепловая карта) ===== */
.hmap-wrap { overflow-x: auto; }
.hmap { border-collapse: separate; border-spacing: 3px; margin: 0 auto; }
.hmap th { color: var(--text-muted); font-weight: 500; font-size: 0.7rem; padding: 2px 4px; white-space: nowrap; }
.hmap td.name { text-align: left; color: var(--text-secondary); white-space: nowrap; padding: 2px 10px 2px 2px; font-size: 0.72rem; }
.hmap td.cell { width: 26px; height: 22px; text-align: center; font-size: 0.7rem; font-weight: 700; color: #0f172a; border-radius: 4px; }
.hm5 { background: #10b981; }
.hm4 { background: #84cc16; }
.hm3 { background: #f59e0b; }
.hm2 { background: #ef4444; color: #fff; }
.hm-avg { background: var(--bg-light); color: var(--text-primary); font-weight: 700; }
.hmap tfoot td, .hmap tfoot th { font-size: 0.68rem; color: var(--text-secondary); padding-top: 4px; }
.hmap-legend { display: flex; gap: 1.2rem; justify-content: center; margin-top: 1rem; font-size: 0.75rem; color: var(--text-muted); flex-wrap: wrap; }
.hmap-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hmap-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* In-page section anchors offset for fixed nav */
#examples, #versions { scroll-margin-top: 90px; }

/* ===== Document cards as download links (завуч) ===== */
a.report-mini { text-decoration: none; color: inherit; cursor: pointer; position: relative; }
a.report-mini::after {
  content: '↓';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  opacity: 0;
  font-size: 1.1rem;
  transition: opacity 0.25s, transform 0.25s;
}
a.report-mini:hover::after { opacity: 1; }
a.report-mini h4 { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.doc-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid var(--border);
  padding: 0.05rem 0.45rem;
  border-radius: 6px;
}
