/* ============================================================
   Belts of Iron — Shared Stylesheet
   ============================================================ */

/* Variables */
:root {
  --card: #0f0f0e;
  --card-border: rgba(255, 255, 255, 0.13);
  --muted: #9aa4ad;
  --accent: #d4a017;
  --accent-dim: rgba(212, 160, 23, 0.12);
  --radius: 1px;
  --text: #e6eef6;
  --text-body: #ccd3da;
}

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

/* Base */
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background-image: url("images/triangles-bg-small.png");
  background-size: auto;
  background-repeat: repeat;
  background-color: #14110d;
  background-color: #1d1a1a;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a {
  color: var(--accent);
}

/* Nav */
nav {
  background: rgba(0, 0, 0, 0.8);
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

/* Header */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 10px 20px;
  text-align: center;
}

.logo {
  width: 640px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  display: block;
  max-width: 100%;
}

.page-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 10px;
  margin-bottom: 30px;
}

/* Card — base style shared by .card (press-kit) and .patch-card (release notes) */
.card,
.patch-card {
  position: relative;
  background-color: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.card::before,
.patch-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("images/patch-notes-bg.jpg");
  background-size: 600px 600px;
  background-repeat: repeat;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

.card>*,
.patch-card>* {
  position: relative;
  z-index: 1;
}

.card:hover,
.patch-card:hover {
  border-color: rgba(212, 160, 23, 0.3);
}

/* Section label */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 160, 23, 0.2);
}

/* Screenshots */
.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.shot:hover img {
  opacity: 0.85;
}

/* Video embed */
.video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Change/feature list */
.change-list,
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.change-list li,
.feature-list li {
  font-size: 0.875rem;
  color: var(--text-body);
  padding: 5px 0;
  line-height: 1.5;
}

.change-list li::before,
.feature-list li::before {
  content: '▶';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  padding-right: 10px;
  font-size: 0.75rem;
}

/* Anchor link icon (release notes) */
.patch-anchor {
  text-decoration: none;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
  line-height: 1;
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20height%3D%2248px%22%20viewBox%3D%220%20-960%20960%20960%22%20width%3D%2248px%22%3E%3Cpath%20d%3D%22M313-120q-81%200-137-56t-56-137q0-38%2014.5-73.5T176-449l146-146%2042%2043-146%20145q-19%2019-29%2043.5T179-313q0%2056%2039%2094.5t95%2038.5q26%200%2050.5-10t43.5-29l146-145%2042%2042-146%20146q-27%2027-62.5%2041.5T313-120Zm81-231-43-43%20215-214%2042%2042-214%20215Zm244-14-43-42%20146-146q18-18%2028-41.5t10-49.5q0-56-38.5-95.5T646-779q-26%200-50%209.5T553-741L407-595l-42-42%20146-146q27-27%2062.5-42t73.5-15q81%200%20137%2056.5T840-646q0%2038-14.5%2073.5T784-510L638-365Z%22/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20height%3D%2248px%22%20viewBox%3D%220%20-960%20960%20960%22%20width%3D%2248px%22%3E%3Cpath%20d%3D%22M313-120q-81%200-137-56t-56-137q0-38%2014.5-73.5T176-449l146-146%2042%2043-146%20145q-19%2019-29%2043.5T179-313q0%2056%2039%2094.5t95%2038.5q26%200%2050.5-10t43.5-29l146-145%2042%2042-146%20146q-27%2027-62.5%2041.5T313-120Zm81-231-43-43%20215-214%2042%2042-214%20215Zm244-14-43-42%20146-146q18-18%2028-41.5t10-49.5q0-56-38.5-95.5T646-779q-26%200-50%209.5T553-741L407-595l-42-42%20146-146q27-27%2062.5-42t73.5-15q81%200%20137%2056.5T840-646q0%2038-14.5%2073.5T784-510L638-365Z%22/%3E%3C/svg%3E") no-repeat center / contain;
}

.patch-anchor img {
  display: none;
}

.patch-anchor:hover {
  background-color: var(--accent);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

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

/* Responsive */
@media only screen and (max-width: 1000px) {
  .logo {
    width: 100%;
  }
}