/* Parallel Review — OpenReview-inspired styles */

/* ------------------------------------------------------------------ */
/* Variables matching OpenReview's color system                        */
/* ------------------------------------------------------------------ */
:root {
  --or-bg: #fffdfa;
  --or-surface: #ffffff;
  --or-surface-alt: #f7f6f4;
  --or-sandy: #efece3;
  --or-red: #8c1b13;
  --or-red-dark: #7d1803;
  --or-blue: #3e6775;
  --or-blue-dark: #3f6978;
  --or-dark: #2c3a4a;
  --or-gray: #616161;
  --or-light-gray: #c6c6c6;
  --or-border: rgba(0, 0, 0, 0.1);
  --or-badge-review: #fbb;
  --or-badge-meta: #fbf;
  --or-badge-decision: #bff;
  --or-badge-comment: #bbf;
  --or-badge-strength: #bfb;
}

/* ------------------------------------------------------------------ */
/* Reset & base                                                        */
/* ------------------------------------------------------------------ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; }

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--or-dark);
  background: var(--or-bg);
}

a { color: var(--or-blue); text-decoration: none; }
a:hover { color: var(--or-blue-dark); text-decoration: underline; }

h1, h2, h3 { color: var(--or-dark); }
h4 { color: var(--or-red); font-weight: 700; }

/* ------------------------------------------------------------------ */
/* Navbar — OpenReview brick-red bar                                   */
/* ------------------------------------------------------------------ */
.navbar {
  background: var(--or-red);
  border-bottom: 2px solid var(--or-red-dark);
  padding: 0;
  display: flex;
  align-items: center;
  min-height: 50px;
}

.navbar-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 1.375rem;
  font-weight: 400;
  text-decoration: none;
  color: #b8b8b8;
  padding: 10px 0;
}

.navbar-brand strong {
  color: #fff;
  font-weight: 700;
}

.navbar-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.navbar-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
}

.navbar-links a:hover {
  color: #fff;
  text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Banner bar (below navbar)                                           */
/* ------------------------------------------------------------------ */
.banner {
  background: #ddd;
  border-bottom: 1px solid #d0d0d0;
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--or-gray);
}

.banner-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ------------------------------------------------------------------ */
/* Container                                                           */
/* ------------------------------------------------------------------ */
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 20px 15px 30px;
}

/* ------------------------------------------------------------------ */
/* Home page                                                           */
/* ------------------------------------------------------------------ */
.home-header {
  margin-bottom: 1.5rem;
}

.home-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.home-header p {
  color: var(--or-gray);
  font-size: 0.9375rem;
}

.stats-bar {
  display: flex;
  gap: 2rem;
  padding: 0.75rem 1rem;
  background: var(--or-sandy);
  border: 1px solid #ddd;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.stats-bar .stat-label {
  color: var(--or-gray);
}

.stats-bar .stat-value {
  font-weight: 700;
  color: var(--or-dark);
}

/* ------------------------------------------------------------------ */
/* Review listing — card style matching OpenReview submissions-list    */
/* ------------------------------------------------------------------ */
.review-list {
  list-style: none;
}

.review-list-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--or-border);
}

.review-list-item:last-child {
  border-bottom: none;
}

.review-list-item h4 {
  font-size: 1.125rem;
  line-height: 1.375rem;
  margin-bottom: 0.25rem;
}

.review-list-item h4 a {
  color: var(--or-red);
  text-decoration: none;
  font-weight: 700;
}

.review-list-item h4 a:hover {
  text-decoration: underline;
}

.review-list-item .paper-author {
  font-style: italic;
  color: var(--or-dark);
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
}

.review-meta-info {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--or-gray);
}

.review-meta-info .badge {
  display: inline-block;
  padding: 0 4px;
  border-radius: 2px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--or-dark);
}

.badge-review { background: var(--or-badge-review); }
.badge-maths { background: var(--or-badge-meta); }
.badge-numerics { background: var(--or-badge-decision); }

.issue-counts {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.issue-counts .major { color: #c0392b; font-weight: 600; }
.issue-counts .minor { color: #e67e22; }
.issue-counts .vminor { color: var(--or-gray); }

/* ------------------------------------------------------------------ */
/* Review detail page — forum-note style                               */
/* ------------------------------------------------------------------ */
.forum-note {
  margin-bottom: 1.5rem;
}

.forum-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.forum-title h2 {
  font-size: 2.125rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 2.5rem;
}

.forum-title .pdf-link {
  flex-shrink: 0;
}

.forum-title .pdf-link a {
  color: var(--or-blue);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 10px;
  border: 2px solid var(--or-blue-dark);
  display: inline-block;
}

.forum-title .pdf-link a:hover {
  background: var(--or-blue);
  color: #fff;
  text-decoration: none;
}

.forum-authors {
  font-style: italic;
  font-size: 1.25rem;
  color: var(--or-dark);
  margin-bottom: 0.5rem;
}

.forum-authors a {
  color: var(--or-dark);
}

.forum-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--or-gray);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
}

.forum-meta .item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Note content — field labels in OpenReview red */
.note-content {
  list-style: none;
  margin-bottom: 1rem;
}

.note-content li {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.125rem;
}

.note-content .field-label {
  font-weight: 700;
  color: var(--or-red);
}

.note-content .field-value {
  white-space: pre-wrap;
}

/* ------------------------------------------------------------------ */
/* Reply cards — threaded note style                                   */
/* ------------------------------------------------------------------ */
.note {
  padding: 0.5rem;
  border: 1px solid #eee;
  border-radius: 0;
  margin-bottom: 0.75rem;
}

.note.depth-odd {
  background: var(--or-surface-alt);
}

.note.depth-even {
  background: var(--or-bg);
}

.note .heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.note .heading h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--or-dark);
  line-height: 1.25rem;
}

.note .subheading {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.75rem;
  color: var(--or-gray);
  margin-bottom: 0.5rem;
}

.note .subheading .invitation {
  display: inline-block;
  padding: 0 4px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--or-dark);
}

.note .subheading .signatures {
  font-style: italic;
}

/* ------------------------------------------------------------------ */
/* Collapsible note content                                            */
/* ------------------------------------------------------------------ */
.note-content-container {
  font-size: 0.75rem;
  line-height: 1.125rem;
  overflow: hidden;
  position: relative;
}

.note-content-container.collapsed {
  max-height: 160px;
}

.note-content-container .gradient-overlay {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: linear-gradient(transparent, var(--or-bg));
  text-align: center;
  padding-top: 40px;
}

.note-content-container.collapsed .gradient-overlay {
  display: block;
}

.show-all-btn {
  background: var(--or-blue);
  color: #fff;
  border: 2px solid var(--or-blue-dark);
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0;
}

.show-all-btn:hover {
  background: var(--or-blue-dark);
}

/* ------------------------------------------------------------------ */
/* Issue items styled within note content                              */
/* ------------------------------------------------------------------ */
.issue-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.issue-item {
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
  border-left: 3px solid transparent;
  font-size: 0.8125rem;
}

.issue-major { border-left-color: #c0392b; background: #f8d7da; }
.issue-minor { border-left-color: #e67e22; background: #fff3cd; }
.issue-vminor { border-left-color: #7f8c8d; background: #e2e3e5; }

.issue-item .issue-title { font-weight: 600; }
.issue-item .issue-rec {
  font-size: 0.75rem;
  color: var(--or-gray);
  font-style: italic;
  margin-top: 0.125rem;
}

.strength-item {
  padding: 0.375rem 0.75rem;
  margin-bottom: 0.25rem;
  border-left: 3px solid #27ae60;
  background: #d4edda;
  font-size: 0.8125rem;
}

/* ------------------------------------------------------------------ */
/* Submission history                                                  */
/* ------------------------------------------------------------------ */
.submission-history {
  margin-top: 1rem;
  font-size: 0.8125rem;
}

.submission-history h3 {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------------ */
/* Sidebar — access links                                              */
/* ------------------------------------------------------------------ */
.extra-services {
  float: right;
  width: 220px;
  padding-left: 1rem;
}

.extra-services h3 {
  font-size: 0.875rem;
  color: var(--or-dark);
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #eee;
}

.extra-services ul {
  list-style: none;
  margin-bottom: 1rem;
}

.extra-services ul li {
  padding: 0.25rem 0;
  font-size: 0.8125rem;
}

/* ------------------------------------------------------------------ */
/* Footer — matching OpenReview sandy footer                           */
/* ------------------------------------------------------------------ */
.footer {
  border-top: 1px solid #ddd;
  background: var(--or-sandy);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--or-gray);
  margin-top: 2rem;
}

.footer a {
  color: var(--or-dark);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Layout helpers                                                      */
/* ------------------------------------------------------------------ */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.leftcolumn {
  margin-right: 240px;
}

@media (max-width: 768px) {
  .leftcolumn { margin-right: 0; }
  .extra-services { float: none; width: 100%; padding-left: 0; margin-top: 1rem; }
  .forum-title h2 { font-size: 1.5rem; line-height: 1.8rem; }
  .stats-bar { flex-direction: column; gap: 0.5rem; }
}
