/* === Base Styles === */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #1a1410;
  background-image: url("../images/background.png");
  background-repeat: repeat;
  color: #eee;
}

/* === Header Styles === */
header {
  text-align: center;
  margin: 1em 0 0.5em 0;
}

.header-logo {
  max-width: 100%;
  height: auto;
  max-height: 140px;
}

.header-subtitle {
  margin-top: 0.3em;
  margin-bottom: 0;
  font-size: 1.6em;
  font-weight: bold;
  color: #f0c040;
}

p {
  line-height: 1.6;
  margin: 0.75em 0;
  color: #eee;
}

a {
  color: #f0c040;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:visited {
  color: #f0c040;
}

.bold-gold {
  color: #f0c040;
  font-weight: bold;
  font-size: 120%;
}

.inline {
  display: inline-block;
  vertical-align: middle; /* optional: aligns with text baseline */
}

/* === Reusable Text Wrap === */
.textwrap {
  width: 250px;
  height: auto;
  margin: 0 0 1em 0;
  border-radius: 8px;
  border: 2px solid #221d10;
}

.textwrap.borderless {
  border: none !important;
}

.textwrap.left {
  float: left;
}

.textwrap.right {
  float: right;
}

@media (max-width: 768px) {
  .textwrap {
    float: none !important;
    display: block;
    margin: 0 auto 1em auto;
    width: 70%;
    max-width: 250px;
  }
}

footer {
  background: none;
  height: auto;
  text-align: center;
  padding: 0;
  margin: 0;
  color: #f0c040;
  font-size: 14px;
  line-height: 1.4;
}

footer p {
  margin: 0;
  padding: 0 0 2em 0;
}

.main-content {
  max-width: 1000px;
  margin: auto;
  padding: 0;
}

section {
  background: rgba(17, 17, 17, 0.9);
  padding: 1.5em;
  margin-bottom: 2em;
  border: 3px solid #221d10;
  border-radius: 12px;
}

h1, h2 {
  color: #f0c040;
  margin: 0;
}

.tagline {
  font-family: Georgia, sans-serif;
  font-style: italic;
  color: #aaa;
  font-size: 1.2em;
  margin: 0.3em 0 0.8em 0;
  letter-spacing: 0.5px;
}

/* Grid for items inside a subcategory */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1em;
  margin-top: 1em;
}

.item-card {
  text-align: center;
}

.item-card img {
  width: 96px;
  height: 96px;
  border: 2px solid #221d10;
  border-radius: 6px;
  background: #111;
  padding: 0.25em;
}

.item-card .item-name {
  margin-top: 0.4em;
  font-size: 0.9em;
  color: #eee;
}

/* === Capsule List Sections === */
.capsule-list {
  display: block;
  margin: 1em 0;
}

.capsule-item {
  background: rgba(26, 26, 26, 0.9);
  padding: 0.8em 1.2em;
  border-left: 4px solid #f0c040;
  max-width: 800px;
  margin: 0.8em auto;
  border-radius: 0 999px 999px 0; /* capsule shape */
}

.soft-border {
  border-radius: 0 15px 15px 0;
}

.capsule-item a {
  color: #f0c040;
  text-decoration: none;
  font-weight: bold;
}

.capsule-item a:hover {
  text-decoration: underline;
}

/* === Capsule Bullet === */
/* Horizontal capsule bullet list */
.capsule-bullet {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;       /* wrap if too many */
  gap: 0.5em;            /* spacing between capsules */
}

.capsule-bullet li {
  background: rgba(26, 26, 26, 0.9);
  border-left: 4px solid #f0c040;   /* gold flat edge */
  border-radius: 0 999px 999px 0;   /* capsule shape */
  padding: 0.4em 1em;
  font-weight: bold;
  color: #f0c040;
  white-space: nowrap;   /* prevents breaking in the middle of words */
}

.capsule-bullet li a {
  color: inherit;        /* inherits gold */
  text-decoration: none;
}

.capsule-bullet li a:hover {
  text-decoration: underline;
}

/* Pill Bullet */
.pill-bullet {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-bullet li {
  margin: 0;
}

.pill-bullet li a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: #2a2520;
  border: 1px solid #c9a14a;
  color: #f0c040;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease, color 0.2s ease;
}

.pill-bullet li a:hover {
  background: #332d1e;
  color: #f1d58c;
  text-decoration: none;
}

.pill-bullet.tiny li a {
  font-size: 0.6rem;
  padding: 0.2em 0.5em;
}
.pill-bullet.small li a {
  font-size: 0.8rem;
  padding: 0.25em 0.75em;
}
.pill-bullet.big li a {
  font-size: 1.1rem;
  padding: 0.5em 1.1em;
}
.pill-bullet.giant li a {
  font-size: 1.2rem;
  padding: 0.75em 1.25em;
}

.pill-box {
  display: inline-block;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  background: #2a2520;
  border: 1px solid #c9a14a;
  color: #f0c040;
  font-weight: bold;
  font-size: 0.8rem;
  margin-top: 0.5em;
}
.pill-box a {
  color: inherit;
  text-decoration: none;
}
.pill-box a:hover {
  background: #332d1e;
  color: #f1d58c;
  text-decoration: none;
}

/* === === */

.label {
  display: block;
  font-weight: bold;
  color: #888;
  font-size: 0.8em;
  text-transform: uppercase;
  margin-bottom: 0.2em;
}

.value {
  font-size: 1.1em;
  color: #fff;
}

.note {
  font-size: 0.85em;
  font-style: italic;
  color: #aaa;
  margin-left: 0.25em;
}

.note.right {
  display: inline-block;
  min-width: 100px;
  text-align: right;
  margin-left: auto;
}

/* === MODULAR GRID === */
.modular-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.modular-grid.cols2 { grid-template-columns: repeat(2, 1fr); }
.modular-grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.modular-grid.cols4 { grid-template-columns: repeat(4, 1fr); }
.modular-grid.cols5 { grid-template-columns: repeat(5, 1fr); }
.modular-grid.cols6 { grid-template-columns: repeat(6, 1fr); }

.modular-grid > * {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .modular-grid.cols2,
  .modular-grid.cols3,
  .modular-grid.cols4,
  .modular-grid.cols5,
  .modular-grid.cols6 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .modular-grid.cols2,
  .modular-grid.cols3,
  .modular-grid.cols4,
  .modular-grid.cols5,
  .modular-grid.cols6 {
    grid-template-columns: 1fr;
  }
}

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.features-grid .capsule-item {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  background: rgba(26, 26, 26, 0.9);
  padding: 1em;
  border-left: 4px solid #f0c040;
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  border-radius: 0 15px 15px 0;
}

.feature .icon {
  flex: 0 0 72px;
  margin-right: 15px;
}

.feature .icon img {
  width: 180px;
  height: 180px;
  margin-right: 0.75em;
  flex-shrink: 0;
  border: 2px solid #221d10;
  border-radius: 8px;
  background: #111;
  padding: 0.25em;
}

.feature-text {
  color: #fff;
  line-height: 1.4;
  font-size: large;
}

.feature-text strong {
  color: #f1d58c;
  display: block;
  margin-bottom: 4px;
}

.feature-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 15px;
}

.feature-link:hover {
  background: rgba(255, 215, 0, 0.08);
  border-radius: 8px;
  text-decoration: none;
}

/* === Trailers Grid === */
.trailers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
}

.trailer {
  flex: 1 1 45%;
  text-align: center;
}

.trailer h3 {
  color: #f0c040;
  margin-bottom: 0.5em;
}

.trailer video {
  width: 100%;
  border: 3px solid #221d10;
  border-radius: 8px;
  background: #000;
  margin-bottom: 0.5f;
}

/* === Screenshots === */

.screenshot { 
  display: none; 
  text-align: center;
}

.screenshot.preview { 
  display: block; 
}

.screenshots-carousel {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1em;
  margin-bottom: 1em;
  flex-wrap: nowrap;
}

.screenshot.preview img {
  width: 160px;
  height: auto;
  border: 3px solid #221d10;
  border-radius: 6px;
  background: #000;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.screenshot.preview.center img,
.screenshot.preview:nth-child(3) img {
  width: 220px;
  opacity: 1;
}

.screenshot.preview img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(240, 192, 64, 0.7);
}

.screenshots-download {
  text-align: center;
  margin-top: 1em;
}

@media (max-width: 768px) {
  .screenshots-carousel {
    flex-wrap: wrap;
    justify-content: center;
  }

  .screenshot.preview img {
    width: 45%;
  }

  .screenshot.preview.center img {
    width: 70%;
  }
}

/* === Generic Button === */
.btn {
  display: inline-block;
  margin: 0.5em 0 1em 0;
  padding: 0.5em 1em;
  background: #221d10;
  color: #f0c040;
  text-decoration: none;
  border: 1px solid #f0c040;
  border-radius: 4px;
  font-weight: bold;
}

.btn:hover {
  background: #332d1e !important;
  color: #f1d58c !important;
  text-decoration: none !important;
}

.btn.small {
  font-size: 0.8em;
  padding: 0.3em 0.6em;
  margin-left: 0.75em;
  vertical-align: middle;
}

.zip-size {
  font-size: 0.9em;
  color: #aaa;
  margin: 0.2em 0 1em 0;
}

/* === Developer Section === */
.developer {
  position: relative;
}

.developer .headshot {
  float: right;
  width: 250px;
  height: auto;
  margin: 0 0 1em 1em;
  border-radius: 8px;
  border: 2px solid #221d10;
}

/* === Asset Sections === */
.asset-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  align-items: flex-start;
}

.asset-preview {
  flex: 1 1 300px;
  text-align: center;
}

.asset-preview img {
  max-width: 300px;
  border: 2px solid #221d10;
  border-radius: 6px;
  background: #111;
  padding: 0.5em;
}

.asset-details {
  flex: 2 1 500px;
  color: #eee;
}

.asset-details h3,
.asset-details h4 {
  color: #f0c040;
  margin: 1em 0 0.3em 0;
}

.asset-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1em 0;
}

.asset-list li::before {
  content: "⟡ ";
  color: #f0c040;
}

.asset-list.pointless li::before {
  content: none;
}

.asset-list li {
  margin: 0.25em 0;
}

.asset-list a {
  color: #ccc;
  text-decoration: none;
  font-weight: bold;
}

.asset-list a.gold {
  color: #f0c040;
}

.asset-list a:hover {
  color: #f0c040;
  text-decoration: underline;
}


.image-placeholder, .video-placeholder {
  width: 300px;
  height: 180px;
  background: #444;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1px solid #666;
}

/* === Mobile Responsive === */
@media (max-width: 700px) {
  .facts-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .image-placeholder,
  .video-placeholder {
    width: 100%;
  }
}

/* ============================= */
/* GLightbox Caption - Slim Text */
/* ============================= */

/* Caption container */
.gslide-description {
  background: none !important;
  border: none !important;
  padding: 0.25em 0 !important;
  margin: 0 auto 0.5em auto !important;
  text-align: center !important;
  max-width: 95% !important;
}

/* Caption text */
.glightbox-clean .gslide-title {
  color: #f0c040 !important;
  font-size: 1.1em !important;
  font-style: italic;
  font-weight: bold !important;
  line-height: 1.4em !important;
  text-align: center !important;
}

.return-home {
  text-align: center;
  margin-top: 2em;
}

.imbue-icon {
  width: 64px;
  height: 64px;
  vertical-align: middle;
  margin-right: 8px;
}


/* =================*/
/* Accordion Stuffs */
/* =================*/
.accordion-block {
  width: 100%;
  margin-bottom: 1em;
  border: 2px solid #221d10;
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.9);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.8em 1.2em;
  color: #f0c040;
  font-size: 1.2em;
  font-weight: bold;
}

.accordion-toggle {
  font-size: 1.2em;
  transition: transform 0.3s;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 1.2em;
}

.accordion-content.active {
  max-height: 1000px; /* plenty of room */
  transition: max-height 0.35s ease-in;
  padding: 1.2em;
}

/* ===================*/
/* Navigation Wrapper */
/* ===================*/
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* align bottoms evenly */
  margin: 0 2em;
  position: relative;
  z-index: 2; /* ensure tabs stay on top */
}

/* ===================*/
/* Breadcrumbs Stuffs */
/* ===================*/
.breadcrumbs {
  font-size: 0.95em;
  padding: 0;
  margin: 0;
  border: 2px solid #3a2e1a;
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.9);
}

.breadcrumbs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.breadcrumbs li {
  border-left: 2px dashed #3a2e1a;
  padding: 0.4em 1em;
  font-size: 0.95em;
  font-weight: bold;
  color: #eee;
  white-space: nowrap;
}

.breadcrumbs li:first-child {
  border-left: none;
}

.breadcrumbs li:last-child {
  border-radius: 0 20px 0 0;
  background: rgba(32, 32, 32, 0.95);
}

.breadcrumbs li a {
  color: #f0c040;
  text-decoration: none;
}

.breadcrumbs li a:hover {
  text-decoration: underline;
}

.breadcrumbs li strong {
  color: #dbdccf;
  font-weight: bold;
}

/* ============================= */
/* Steam Outbound Links Section  */
/* ============================= */
.outbound-links {
  font-size: 0.95em;
  padding: 0;
  margin: 0;
  border: 2px solid #3a2e1a;
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.9);
}

.outbound-links ul {
  list-style: none;
  margin: 0 0 -5px 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
}

.outbound-links li {
  border-right: 2px dashed #3a2e1a; /* mirror of breadcrumbs’ left border */
  padding: 0.4em 1em;
  font-size: 0.95em;
  font-weight: bold;
  color: #eee;
  white-space: nowrap;
}

.outbound-links li:last-child {
  border-right: none;
}

.outbound-links li.label {
  border-radius: 20px 0 0 0;
  background: rgba(32, 32, 32, 0.95); /* lighter start */
  color: #dbdccf;
}

.outbound-links li a {
  color: #f0c040;
  text-decoration: none;
}

.outbound-links li a:hover {
  text-decoration: underline;
}

/* Responsive stacking */
@media (max-width: 768px) {
  .nav-bar {
    flex-direction: column;
    align-items: center;
    margin: 0;
    top: 0; /* no overlap on mobile */
  }

  .breadcrumbs,
  .outbound-links {
    margin: 0.5em auto 0 auto;
  }

  .outbound-links ul {
    justify-content: center;
  }
}

/* ============================= */
/* Section Flush Fix             */
/* ============================= */
section {
  margin-top: 0; /* prevent pushing navs away */
}
