/* ===========================================================
   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-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;
}

.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;
  }
}
