/* Inner pages: forum, status, reviews, support.
   The header, hero, cards and toast come from styles.css; this file adds panels, rows, forms and status pills. */

.hero.compact { padding-top: clamp(2.2rem, 7vh, 4.2rem); }
.hero.compact h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }

.content {
  display: grid;
  gap: 1.25rem;
  width: var(--wide);
  margin: clamp(2rem, 5vh, 3.4rem) auto 0;
}

.content + .plans { margin-top: 1.25rem; }

/* Panels */

.panel {
  min-width: 0;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: linear-gradient(180deg, #151516 0%, #0a0a0b 58%, #070708 100%);
  box-shadow: inset 0 1px 0 #ffffff1a, 0 26px 50px -30px #000;
}

.panel h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.02em;
}

.panel-intro {
  margin: .4rem 0 1.2rem;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}

/* Rows: forum boards, status components, help links */

.rows { margin: 0; padding: 0; list-style: none; }
.rows > li + li { border-top: 1px solid var(--line); }

.row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .95rem 0;
}

a.row:hover .row-title { color: #fff; }

.row .icon { flex: none; width: 2.4rem; height: 2.4rem; }
.row .vmark { width: 1.1rem; height: .98rem; }

.row-main { flex: 1; min-width: 0; }

.row-title {
  margin: 0;
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.row-desc {
  margin: .15rem 0 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}

.row-meta {
  flex: none;
  color: var(--dim);
  font-size: .78rem;
  white-space: nowrap;
}

.arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #0a0a0bd9;
}

.arrow::after {
  width: .42rem;
  height: .42rem;
  content: "";
  border-top: .11rem solid #cfd6cf;
  border-right: .11rem solid #cfd6cf;
  transform: translateX(-.08rem) rotate(45deg);
}

a.row:hover .arrow { border-color: var(--accent); }

/* Buttons */

.stack { display: grid; gap: .65rem; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.75rem;
  padding: .5rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: linear-gradient(#19191b, #0e0e0f);
  color: #f4f4f5;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #ffffff12;
}

.button:hover { border-color: var(--line-strong); }

.button.primary {
  border-color: transparent;
  background: linear-gradient(#f6f6f7, #bdbdc2);
  color: #09090a;
  box-shadow: inset 0 1px 0 #fff, 0 8px 22px -10px #fff5;
}

.button.primary:hover { background: linear-gradient(#fff, #d3d3d7); }

/* Status */

.banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid #4ade8036;
  border-radius: 1.1rem;
  background: linear-gradient(180deg, #4ade8014, #4ade8008);
}

.dot {
  flex: none;
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 .28rem #4ade8026, 0 0 16px #4ade8090;
}

.banner-title { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.banner-sub { margin: .15rem 0 0; color: var(--muted); font-size: .84rem; }

.pill {
  flex: none;
  padding: .25rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  font-size: .74rem;
  font-weight: 600;
  white-space: nowrap;
}

.pill.ok { border-color: #4ade8042; background: #4ade8012; color: #86efac; }
.pill.preview { border-color: #4abf7366; background: #37ac5b24; color: #a5edb8; }

.footnote { margin: .25rem 0 0; color: var(--dim); font-size: .8rem; text-align: center; }

/* Reviews */

.summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem 2rem;
}

.summary .panel-intro { margin-bottom: 0; }

.rating { display: flex; align-items: center; gap: .9rem; }

.rating-value {
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
}

.stars { display: inline-flex; gap: .2rem; }

.stars i {
  width: 1rem;
  height: 1rem;
  background: #ffffff26;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.rating .stars i { width: 1.3rem; height: 1.3rem; }

.rating-row { display: flex; align-items: center; gap: .8rem; }
.rating-row .row-desc { margin: 0; }

/* Forms */

.preview-form { display: grid; gap: .95rem; }

.field { display: grid; gap: .4rem; color: #ececee; font-size: .86rem; font-weight: 600; }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: .6rem .8rem;
  border: 1px solid #ffffff1f;
  border-radius: .7rem;
  outline: none;
  background: #0e0e10;
  color: #f4f4f5;
  font: inherit;
  font-size: .94rem;
  font-weight: 400;
}

.field textarea { min-height: 8rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #77777d; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #ffffff3a; }

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #5b83c62e;
}

.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: #e89690; }

.preview-form .button { margin-top: .2rem; }

.feedback { margin: 0; color: #aac4ff; font-size: .84rem; }
.feedback:empty { display: none; }
.form-note { margin: 1rem 0 0; color: var(--dim); font-size: .78rem; }

@media (min-width: 60rem) {
  .content.two { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
}

@media (max-width: 40rem) {
  .hero.compact h1 { font-size: clamp(1.6rem, 8.4vw, 2.4rem); }
  .panel { padding: 1.35rem 1.15rem; }
  .row { align-items: flex-start; }
  .row-meta { display: none; }
  .banner { align-items: flex-start; padding: 1rem; }
  .dot { margin-top: .35rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .panel, .banner, .footnote { animation: rise 760ms cubic-bezier(.16, 1, .3, 1) 200ms both; }
  .content .panel:nth-child(2) { animation-delay: 280ms; }
  .button, .field input, .field select, .field textarea, a.row .arrow { transition: background 180ms, color 180ms, border-color 180ms, box-shadow 180ms; }
}

/* Status page: live checks, product table, history bars, updates */

.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem 1.5rem;
}

.panel-head .panel-intro { margin-bottom: 1rem; }

.pill.dim { border-color: #ffffff2e; background: #ffffff0d; color: #b3b3b8; }
.pill.warn { border-color: #fbbf2447; background: #fbbf2414; color: #fcd34d; }
.pill.bad { border-color: #f8717152; background: #f8717114; color: #fca5a5; }
.pill.updating { border-color: #fb923c66; background: #fb923c1a; color: #fdba74; }

.row-meta.keep { display: block; min-width: 3.5rem; text-align: right; }

.table-panel { padding-inline: 0; overflow: hidden; }
.table-panel .panel-head { padding-inline: 1.5rem; }

.search { position: relative; display: block; }

.search input {
  width: min(100%, 17rem);
  min-height: 2.5rem;
  padding: .5rem .95rem .5rem 2.45rem;
  border: 1px solid #ffffff1f;
  border-radius: 99px;
  outline: none;
  background: #0e0e10;
  color: #f4f4f5;
  font: inherit;
  font-size: .88rem;
}

.search input::placeholder { color: #77777d; opacity: 1; }
.search input:hover { border-color: #ffffff3a; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #5b83c62e; }

.search::before, .search::after { position: absolute; content: ""; pointer-events: none; }

.search::before {
  top: 50%;
  left: .95rem;
  width: .72rem;
  height: .72rem;
  border: 2px solid #8a8a90;
  border-radius: 50%;
  transform: translateY(-62%);
}

.search::after {
  top: 50%;
  left: 1.62rem;
  width: .32rem;
  height: 2px;
  background: #8a8a90;
  transform: translateY(.4rem) rotate(45deg);
}

.status-table { width: 100%; border-collapse: collapse; table-layout: fixed; }

.status-table th {
  padding: .7rem 1.5rem;
  border-block: 1px solid var(--line);
  background: #ffffff05;
  color: var(--dim);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-align: left;
  text-transform: uppercase;
}

.status-table th:nth-child(1) { width: 33%; }
.status-table th:nth-child(2) { width: 18%; }
.status-table th:nth-child(3) { width: 31%; }
.status-table th:nth-child(4) { width: 18%; }

.status-table td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.status-table tbody tr:last-child td { border-bottom: 0; }
.status-table .empty-row td { color: var(--muted); font-size: .88rem; text-align: center; }

.product { display: flex; align-items: center; gap: .9rem; }

.thumb {
  position: relative;
  flex: none;
  width: 2.7rem;
  height: 2.7rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: .65rem;
  background: #0e0e10;
}

.thumb::before {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--cover) 50% var(--cover-y, 0%) / cover no-repeat;
}

.product-label { display: grid; min-width: 0; }
.product-name { font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }
.product-note { color: var(--muted); font-size: .78rem; }

.game-update {
  display: grid;
  min-width: 0;
  gap: .12rem;
  margin-top: .3rem;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.35;
}

.game-update a {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #b7cdf4;
  text-decoration: underline;
  text-decoration-color: #b7cdf473;
  text-underline-offset: .19em;
}

.game-update a:hover { color: #e0ebff; }

.bars { display: flex; gap: 3px; height: 1.7rem; }
.bars i { flex: 1; min-width: 0; border-radius: 2px; background: #367850; }
.bars i.up { background: #4ade80; }
.bars i.degraded { background: #fbbf24; }
.bars i.down { background: #f87171; }
.bars.has-recent-game-update i:last-child { background: #fb923c; }

.details-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #e8e8ea;
  font-size: .84rem;
  font-weight: 500;
}

.details-link:hover { color: #fff; }
.details-link .arrow { width: 1.6rem; height: 1.6rem; }
.details-link:hover .arrow { border-color: var(--accent); }

.table-note {
  margin: 0;
  padding: 1rem 1.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: .78rem;
  line-height: 1.5;
}

.table-note a { color: #aac4ff; text-decoration: underline; text-underline-offset: .2rem; }

.section-title {
  margin: .75rem 0 .9rem;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -.03em;
}

.updates { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }

.update {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(180deg, #131314, #0a0a0b);
}

.update-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; }
.update-title { font-size: .95rem; font-weight: 600; }
.update-meta { color: var(--dim); font-size: .78rem; }
.update-meta b { color: #aac4ff; font-weight: 500; }
.update p { margin: .4rem 0 0; color: var(--muted); font-size: .86rem; }

.empty {
  padding: 1.1rem 1.25rem;
  border: 1px dashed var(--line-strong);
  border-radius: 1rem;
  color: var(--muted);
  font-size: .88rem;
}

@media (max-width: 48rem) {
  .table-panel .panel-head { padding-inline: 1.15rem; }
  .status-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .status-table, .status-table tbody { display: block; }
  .status-table tbody { border-top: 1px solid var(--line); }
  .panel-head .search, .search input { width: 100%; }

  .status-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .85rem 1rem;
    align-items: center;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--line);
  }

  .status-table tbody tr:last-child { border-bottom: 0; }
  .status-table td { display: block; padding: 0; border: 0; }
  .status-table td.history, .status-table td.details { grid-column: 1 / -1; }
  .status-table .empty-row { display: block; }
  .table-note { padding-inline: 1.15rem; }
  .row-meta.keep { min-width: 0; }
}
