/* ===========================================================
   Almighty Games / Crown of Kings
   Shared Style Sheet (Single Page Layouts)
   Used by: Developer Root Page + Publisher Portal
   =========================================================== */

/* ============================= */
/* === Base & Typography === */
/* ============================= */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #1a1410;
  background-image: url("../images/background.png");
  background-repeat: repeat;
  color: #eee;
}

p {
  line-height: 1.6;
  margin: 0.75em 0;
}

a {
  color: #f0c040;
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.bold-gold {
  color: #f0c040;
  font-weight: bold;
  font-size: 120%;
}

/* ============================= */
/* === Header === */
/* ============================= */
header {
  text-align: center;
  margin: 1em 0 0.5em 0;
}

header h1 {
  margin-top: 0.3em;
  margin-bottom: 0;
  font-size: 1.6em;
  font-weight: bold;
  color: #f0c040;
}

header .logo {
  max-width: 100%;
  height: auto;
  max-height: 200px;
}

header .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;
}

/* ============================= */
/* === Layout & Containers === */
/* ============================= */
.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;
}

/* ============================= */
/* === Footer === */
/* ============================= */
footer {
  background: none;
  text-align: center;
  color: #f0c040;
  font-size: 14px;
  line-height: 1.4;
  padding: 0 0 2em 0;
}

/* =========================================================== */
/* === Almighty Games Modular Layout System === */
/* =========================================================== */

.btn {
  display: inline-block;
  padding: 0.5em 1.4em;
  margin: 0.6em 0 1em 0;
  background-color: #221d10;
  border: 1px solid #c9a14a;
  color: #f0c040;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none !important;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background-color: #3a2e1a;
  color: #f1d58c;
  box-shadow: 0 0 6px rgba(240, 192, 64, 0.4);
  text-decoration: none !important;
}

.btn.small {
  font-size: 0.85rem;
  padding: 0.3em 1em;
}

.btn.centered {
  display: block;
  margin: 0.6em auto 1em auto;
  width: fit-content;
  text-align: center;
}

/* ---- Content Card Wrapper ---- */
.content,
.content-card {
  background: rgba(17, 17, 17, 0.92);
  border: 3px solid #221d10;
  border-radius: 14px;
  padding: 1.5em 1.8em;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.45);
  overflow: auto; /* allows text wrapping around floated images */
  color: #eee;
  line-height: 1.5;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
  transform: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.content-card.highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 14px rgba(240,192,64,0.4);
}

/* ---- Grid Layout ---- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2em;
  margin-top: 2em;
}

.content-card.full {
  grid-column: span 2;
}

/* ============================= */
/* === Images === */
/* ============================= */
.content-image {
  display: block;
  border-radius: 18px;
  padding: 3px;
  background: #1a1410;
  border: 3px solid #3a2e1a;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.content-image.gold { border-color: #c9a14a; }
.content-image.dark { border-color: #3a2e1a; }

.content-image:hover {
  transform: scale(1.04);
  box-shadow: 0 0 14px rgba(240, 192, 64, 0.65);
}

/* ---- Image Sizes ---- */
.small  { width: 120px; height: auto; }
.medium { width: 200px; height: auto; }
.large  { width: 300px; height: auto; }
.xlarge { width: 400px; height: auto; }

/* ---- Alignment ---- */
.left {
  float: left;
  margin: 0 1.2em 0.6em 0;
}
.right {
  float: right;
  margin: 0 0 0.6em 1.2em;
}
.center {
  display: block;
  margin: 0 auto 1em auto;
  float: none;
}

/* ---- Responsive Image Reset ---- */
@media (max-width: 768px) {
  .left, .right {
    float: none !important;
    display: block;
    margin: 0 auto 1em auto;
  }
  .small, .medium, .large, .xlarge {
    width: 70%;
    max-width: 300px;
  }
}

/* ---- Containment Fix ---- */
.content::after,
.content-card::after {
  content: "";
  display: block;
  clear: both;
}

/* ============================= */
/* === Text & Headings === */
/* ============================= */
.content-card h3 {
  color: #f0c040;
  font-size: 1.2em;
  margin-top: 0;
  margin-bottom: 0.4em;
}

.content-card p {
  margin: 0.4em 0 0.6em 0;
}

.content-card a {
  color: #f0c040;
  font-weight: bold;
  text-decoration: none;
}
.content-card a:hover { text-decoration: underline; }

/* ============================= */
/* === Pill Bullet Lists === */
/* ============================= */
.pill-bullet {
  list-style: none;
  padding: 0;
  margin: 1em 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  align-items: center;
}

.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;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.pill-bullet li a:hover {
  background: #332d1e;
  color: #f1d58c;
}

/* ---- Pill Bullet Sizes ---- */
.pill-bullet.small li a {
  font-size: 0.85rem;
  padding: 0.3em 0.7em;
}
.pill-bullet.big li a {
  font-size: 1.15rem;
  padding: 0.5em 1.1em;
}

/* Prevents interference from image-size classes */
ul.pill-bullet.small,
ul.pill-bullet.big {
  width: auto;
  height: auto;
}

/* ============================= */
/* === Responsive Design === */
/* ============================= */
@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================*/
/* 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;
}

/* ============================= */
/* 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;
  }
}

/* ================== */
/* === Navigation === */
/* ================== */

.navigation {
  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);
}

.navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.navigation li {
  padding: 0.4em 1em;
  font-size: 0.95em;
  font-weight: bold;
  color: #eee;
  white-space: nowrap;
  background: rgba(17, 17, 17, 0.9);
  border-left: 2px dashed #3a2e1a;
}

.navigation li:first-child {
  border-left: none;
}

.navigation li a {
  color: #f0c040;
  text-decoration: none;
}

.navigation li a:hover {
  text-decoration: underline;
}

.navigation li.active {
  background: rgba(32, 32, 32, 0.95);
}

.navigation li.active a {
  color: #dbdccf;
  cursor: default;
  text-decoration: none;
}

.navigation.left ul {
  justify-content: flex-start;
}

.navigation.right ul {
  justify-content: flex-end;
}

/* === Responsive Behavior === */
@media (max-width: 768px) {
  .navigation {
    margin: 0.5em auto 0 auto;
  }

  .navigation ul {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ============================= */
/* Section Flush Fix             */
/* ============================= */
section {
  margin-top: 0; /* prevent pushing navs away */
}

/* ===========================================================
   Legacy Modular Grid (Required for Game Plan & similar pages)
   Safe additive patch – does not override existing systems
   =========================================================== */

/* --- 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;
}

.screenshots img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive fallback */
@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;
  }
}

/* --- Capsule Items --- */
.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-item.soft-border {
  border-radius: 0 15px 15px 0;
}

/* --- Asset Lists --- */
.asset-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1em 0;
}

.asset-list li {
  padding-left: 1.2em;
  text-indent: -1.2em;
  margin: 0.25em 0;
  line-height: 1.4;
}

.asset-list li::before {
  content: "◇ ";
  color: #f0c040;
}

/* --- itch banner center --- */
.embed-wrap {
  margin: 0 auto 10px auto;
  padding: 0 100px;
}

.embed-wrap iframe {
  width: 100%;
}
