/**
 * Single Report Page Styles
 * Clean, modern layout
 */

/* Variables */
:root {
  --report-primary: #213361;
  --report-accent: #046cb5;
  --report-bg-light: #f8f9fa;
  --report-border: #e9ebef;
  --report-text: #4a5568;
  --report-container-width: 1456px;
}

/* Main Layout */
.single-report-page {
  background-color: #fff;
  padding-bottom: 80px;
}

.report-container {
  max-width: var(--report-container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section - handled by template-parts/blocks/hero-section.php */
/* We might need to override some hero styles if necessary, but let's trust the block first */

/* Body Layout */
.report-body-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 60px;
}

/* Sidebar */
.report-sidebar {
  position: sticky;
  top: 120px; /* Adjust based on header height */
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.report-meta-box,
.report-toc-box {
  padding: 24px;
  background: var(--report-bg-light);
  border-radius: 16px;
}

.report-meta-title,
.report-toc-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--report-primary);
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 12px;
}

/* Metadata List */
.report-meta-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.report-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-meta-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  color: var(--report-accent);
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.report-meta-icon svg {
  width: 18px;
  height: 18px;
}

.report-meta-content {
  display: flex;
  flex-direction: column;
}

.report-meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a0aec0;
  font-weight: 600;
  margin-bottom: 2px;
}

.report-meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--report-primary);
  line-height: 1.2;
}

.report-meta-value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.report-meta-value a:hover {
  color: var(--report-accent);
}

/* TOC List */
.report-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-toc-link {
  display: block;
  color: var(--report-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
  padding-left: 12px;
  border-left: 2px solid transparent;
}

.report-toc-link:hover,
.report-toc-link.active {
  color: var(--report-accent);
  border-left-color: var(--report-accent);
  font-weight: 500;
  padding-left: 16px;
}

/* Main Content */
.report-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--report-primary);
}

.report-content h2 {
  font-size: 2rem;
  margin-top: 0; /* First element */
  margin-bottom: 24px;
  color: var(--report-primary);
}

.report-content h2:not(:first-child) {
  margin-top: 60px;
}

.report-content h3 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 20px;
}

.report-content p {
  margin-bottom: 24px;
}

.report-content ul,
.report-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.report-content li {
  margin-bottom: 12px;
}

/* Related Reports */
.report-related {
  margin-top: 100px;
  padding-top: 60px;
  border-top: 1px solid var(--report-border);
}

.report-related-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--report-primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .report-body-grid {
    grid-template-columns: 1fr;
  }

  .report-sidebar {
    position: static;
    margin-bottom: 40px;
  }

  .report-meta-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .report-meta-item {
    width: calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .report-meta-item {
    width: 100%;
  }
}

/* Breadcrumb Separators */
.hero-breadcrumbs .breadcrumb-separator {
  color: inherit;
  opacity: 0.6;
  vertical-align: middle;
}

/* Related Reports Redesign */
.report-related {
  background-color: transparent;
  padding: 40px 0;
  margin-top: 40px;
  border-top: none;
}

.report-related .report-container {
  /* Ensure it aligns with the rest */
}

.report-related-title {
  text-align: left;
  font-size: 2.125rem;
  margin-bottom: 30px;
  color: var(--report-primary);
  position: relative;
  padding-left: 0;
}

.report-related-title::before {
  display: none;
}

/* Override post cards styles for related section */
.report-related .post-cards-section {
  padding: 0;
  background-color: transparent;
}

.report-related .post-cards-container {
  padding: 0;
  max-width: 100%;
}

.report-related .post-cards-header {
  display: none; /* Hide default header since we have custom title */
}
