/* ===============================================
   GLOBAL THEME — SavageConflicts
   Shared background, navbar, footer, layout
   Author: ChatGPT & Gwezie
=============================================== */

/* ---- Reset ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---- Base ---- */
html,
body {
  font-family: "Cinzel", "Garamond", serif;
  background:
    radial-gradient(1200px 800px at 10% 5%, rgba(202,162,75,0.06), transparent 60%),
    radial-gradient(1000px 700px at 90% 100%, rgba(42,122,83,0.06), transparent 60%),
    linear-gradient(180deg, #0a0604, #130f0b 55%, #050302 100%);
  color: #e4d7b8;
  min-height: 100vh;
}

/* Shared content container */
.sc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==============================================
   GLOBAL LINK STYLING (no more blue links)
============================================== */

a {
  color: #d9b356;
  text-decoration: none;
  font-weight: 600;
  transition: color .18s ease, text-shadow .18s ease;
}

a:hover {
  color: #f4d074;
  text-shadow: 0 0 6px rgba(217,179,86,0.45);
  text-decoration: underline;
}

a:visited {
  color: #c09c5a;
}

/* Footer link refinement */
.sc-foot-links a {
  color: #e4d7b8;
  font-weight: 600;
}

.sc-foot-links a:hover {
  color: #f4d074;
  text-shadow: 0 0 6px rgba(217,179,86,0.4);
}

/* ==============================================
   NAVBAR - DESKTOP
============================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 16px;
  background: radial-gradient(120% 180% at 50% 0%,
            #3b2a18 0%,
            #19110b 55%,
            #050303 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid #2b1a0c;
}

/* Gold trim */
.navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #caa24b, #f4d074, #caa24b);
}

/* Left & Right columns */
.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Left aligns left, right aligns right */
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }

/* Castle always dead center */
.castle-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Castle image */
.castle-icon {
  width: 48px;
  height: auto;
  display: block;
}

/* Nav buttons */
.nav-link {
  color: #f3e3bd;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(234, 215, 177, 0.12);
  border: 1px solid rgba(202, 162, 75, 0.45);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nav-link:hover {
  background: rgba(234, 215, 177, 0.25);
  box-shadow:
    0 0 12px rgba(202, 162, 75, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* ==============================================
    NAVBAR - MOBILE
============================================== */

@media (max-width: 800px) {

  .navbar {
    padding: 8px 10px;
  }

  .castle-icon {
    width: 42px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {

  .navbar {
    grid-template-columns: 1fr auto 1fr;
  }

  .nav-left,
  .nav-right {
    gap: 6px;
  }

  .nav-link {
    padding: 5px 8px;
    font-size: 0.8rem;
  }

  .castle-icon {
    width: 36px;
  }
}

/* ==============================================
   FOOTER
============================================== */

.sc-footer {
  margin-top: 40px;
  background: radial-gradient(130% 200% at 50% 10%,
              #3b2a18 0%,
              #19110b 55%,
              #050303 100%);
  color: #f0e1bf;
  border-top: 1px solid #2b1a0c;
  box-shadow: 0 -14px 30px rgba(0, 0, 0, 0.7);
}

.sc-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, #caa24b, #f4d074, #caa24b);
}

.sc-footer .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 16px;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sc-footer-bottom {
  padding: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: #e9dbba;
}
/* Restore gold buttons in top control strip */
.topbar .btn,
.topbar a.btn {
  background: #20150b;
  border: 1px solid #c19a5b;
  color: #f5e4ba !important;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.topbar .btn:hover,
.topbar a.btn:hover {
  background: #3b2413;
  border-color: #e6c27a;
}
