/* ============================================================
   THE EXILED :: An Age of Conan Unchained Fan Shrine
   Retro 1990s stylesheet
   ------------------------------------------------------------
   To re-theme the whole site, edit the colour values in the
   :root block below. Everything else inherits from these.
   No em-dashes are used anywhere in this file by request.
   ============================================================ */

:root {
  --page-bg:      #0d0a07;  /* near black page background      */
  --frame:        #8b6f3a;  /* bronze frame colour             */
  --frame-light:  #c8a85f;  /* light bevel edge                */
  --frame-dark:   #4a3717;  /* dark bevel edge                 */
  --parchment:    #e7d7af;  /* main content background         */
  --parchment2:   #d8c49a;  /* inset panel background          */
  --ink:          #2b1c0e;  /* body text colour                */
  --blood:        #6b0f0f;  /* primary heading / accent        */
  --blood-light:  #9b1b1b;  /* secondary heading               */
  --gold:         #d8a93a;  /* highlight / title colour        */
  --link:         #8b0000;  /* link colour                     */
  --link-visited: #5a0a0a;  /* visited link colour             */
  --link-hover:   #b8860b;  /* hovered link colour             */
  --stone:        #211b13;  /* nav bar and footer background   */
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background-color: var(--page-bg);
  /* Layered gradients fake a dark stone texture so no tiled
     image file is required. Drop your own tile in images/ and
     swap this for: background: url('images/tile.gif'); if you
     prefer a real 90s repeating background. */
  background-image:
    radial-gradient(circle at 18% 8%,  rgba(150,100,40,0.10), transparent 55%),
    radial-gradient(circle at 82% 92%, rgba(140,30,30,0.12),  transparent 55%),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.30) 0 2px, transparent 2px 7px);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.55;
  padding: 16px 8px 48px;
}

/* ---------- Layout container ---------- */
.container {
  max-width: 800px;
  width: 98%;
  margin: 0 auto;
  background: var(--parchment);
  border: 8px ridge var(--frame);
  box-shadow: 0 0 28px rgba(0,0,0,0.85);
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(#330b0b, #000);
  color: var(--gold);
  text-align: center;
  padding: 20px 10px 0;
  border-bottom: 3px ridge var(--frame);
}
.site-title {
  margin: 0;
  font-size: 54px;
  font-weight: bold;
  letter-spacing: 9px;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow:
    2px 2px 0 #000,
   -1px -1px 0 var(--frame-dark),
    0 0 16px rgba(216,169,58,0.55);
}
.site-tagline {
  margin: 6px 0 14px;
  font-style: italic;
  letter-spacing: 2px;
  color: #cdb98c;
  font-size: 15px;
}

/* ---------- Marquee bar ---------- */
.marquee-bar {
  background: #000;
  border-top: 2px groove var(--frame);
  border-bottom: 2px groove var(--frame);
  color: var(--gold);
  padding: 6px 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  letter-spacing: 1px;
}

/* ---------- Navigation ---------- */
.navbar {
  background: var(--stone);
  text-align: center;
  padding: 8px 6px;
  border-bottom: 3px ridge var(--frame);
}
.navlink {
  display: inline-block;
  margin: 3px;
  padding: 7px 16px;
  color: var(--gold);
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 3px outset var(--frame);
  background: linear-gradient(#3a2c17, #211b13);
}
.navlink:hover {
  color: #fff;
  border-style: inset;
  background: linear-gradient(#7a1010, #3a0707);
}
.navlink.active {
  color: #fff;
  border-style: inset;
  background: linear-gradient(#6b0f0f, #3a0707);
}

/* ---------- Main content ---------- */
.content { padding: 20px 24px; }
.content h2 {
  color: var(--blood);
  border-bottom: 2px solid var(--frame);
  padding-bottom: 4px;
  margin-top: 26px;
  font-size: 27px;
}
.content h2:first-child { margin-top: 4px; }
.content h3 {
  color: var(--blood-light);
  font-size: 20px;
  margin-bottom: 4px;
}
.content p { margin: 10px 0; }
.content a          { color: var(--link); }
.content a:visited  { color: var(--link-visited); }
.content a:hover    { color: var(--link-hover); }

/* ---------- Decorative divider ---------- */
hr.divider {
  border: 0;
  height: 7px;
  margin: 20px 0;
  background: repeating-linear-gradient(
    90deg,
    var(--frame-dark) 0 8px,
    var(--gold)       8px 12px,
    var(--frame-dark) 12px 20px);
}

/* ---------- News / announcement blocks ---------- */
.news {
  border-left: 6px solid var(--blood);
  background: var(--parchment2);
  padding: 8px 16px;
  margin: 14px 0;
}
.news .date {
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  color: var(--blood);
}
.news h3 { margin-top: 2px; }

/* ---------- Panels / info boxes ---------- */
.panel {
  background: var(--parchment2);
  border: 4px ridge var(--frame);
  padding: 12px 16px;
  margin: 14px 0;
}

/* ---------- Retro tables (guild roster etc.) ---------- */
table.retro {
  width: 100%;
  border-collapse: collapse;
  border: 3px ridge var(--frame);
  margin: 14px 0;
  background: var(--parchment2);
}
table.retro caption {
  font-weight: bold;
  color: var(--blood);
  padding: 6px;
  font-size: 18px;
}
table.retro th {
  background: var(--blood);
  color: var(--gold);
  border: 1px solid var(--frame-dark);
  padding: 7px 9px;
  text-align: left;
  letter-spacing: 1px;
}
table.retro td {
  border: 1px solid var(--frame);
  padding: 6px 9px;
}
table.retro tr:nth-child(even) td { background: rgba(0,0,0,0.06); }

/* ---------- Gallery ---------- */
.gallery { text-align: center; }
.frame {
  display: inline-block;
  vertical-align: top;
  width: 212px;
  margin: 10px;
  padding: 8px 8px 10px;
  background: var(--parchment2);
  border: 6px ridge var(--frame);
}
.frame img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--frame-dark);
  background: #cdbb8e;
}
.frame .cap {
  font-size: 13px;
  margin-top: 8px;
  color: var(--ink);
  line-height: 1.35;
}

/* ---------- Retro forms (contact / guestbook) ---------- */
.retro-form {
  background: var(--parchment2);
  border: 4px ridge var(--frame);
  padding: 16px;
  margin: 14px 0;
}
.retro-form label {
  display: block;
  font-weight: bold;
  color: var(--blood);
  margin-top: 12px;
}
.retro-form input,
.retro-form textarea {
  width: 100%;
  border: 2px inset #8a8a8a;
  background: #fffef7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  padding: 6px;
}
.retro-form button {
  margin-top: 14px;
  padding: 7px 18px;
  border: 3px outset var(--frame);
  background: linear-gradient(#3a2c17, #211b13);
  color: var(--gold);
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
}
.retro-form button:hover { border-style: inset; color: #fff; }

/* ---------- The big email link ---------- */
.raven-link {
  display: inline-block;
  margin: 10px 0;
  padding: 10px 18px;
  font-size: 18px;
  font-weight: bold;
  border: 4px outset var(--frame);
  background: linear-gradient(#3a2c17, #211b13);
  color: var(--gold) !important;
  text-decoration: none;
}
.raven-link:hover { border-style: inset; color: #fff !important; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--stone);
  color: #cdb98c;
  border-top: 3px ridge var(--frame);
  margin-top: 18px;
  padding: 16px 14px;
  text-align: center;
  font-size: 13px;
}
.site-footer a         { color: var(--gold); }
.site-footer a:visited { color: var(--frame-light); }
.site-footer p { margin: 8px 0; }

/* Under construction caution sign */
.construction {
  max-width: 440px;
  margin: 6px auto 16px;
  padding: 9px 8px;
  background: #111;
  color: #ffd400;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  border: 7px solid transparent;
  border-image: repeating-linear-gradient(45deg, #ffd400 0 12px, #000 12px 24px) 7;
}

/* Visitor counter odometer */
.counter { margin: 12px 0; color: var(--gold); }
#visitorCount {
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 17px;
  background: #000;
  color: #ffae00;
  padding: 3px 7px;
  letter-spacing: 4px;
  border: 2px inset #555;
}

/* 88x31 retro badges */
.badges { margin: 10px 0; }
.badge88 {
  display: inline-block;
  width: 88px;
  height: 31px;
  margin: 3px;
  padding: 2px;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  line-height: 1.05;
  color: #fff;
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
  border: 1px outset #aaa;
}
.b-netscape { background: #1a1a8a; }
.b-notepad  { background: #006400; }
.b-html     { background: #8b0000; }
.b-neo      { background: #5a2d82; }
.b-res      { background: #b8860b; color: #000; }

/* Web ring navigation */
.webring {
  font-family: "Courier New", Courier, monospace;
  margin: 12px 0;
  color: var(--gold);
}
.webring a { text-decoration: none; }

/* Footer text helpers */
.bestviewed { font-style: italic; }
.lastupdated { font-family: "Courier New", Courier, monospace; }
.disclaimer {
  font-size: 11px;
  color: #9c8a66;
  max-width: 560px;
  margin: 10px auto 0;
  line-height: 1.4;
}

/* Blinking "NEW" badge, used sparingly for that authentic feel */
.new-badge {
  display: inline-block;
  background: var(--blood);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 0 5px;
  margin-left: 4px;
  letter-spacing: 1px;
  vertical-align: super;
}
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Back to top link */
.toplink { display: block; text-align: right; font-size: 12px; margin-top: 14px; }

/* ---------- Item rarity colours (Items page) ---------- */
.r-common    { color: #555555; font-weight: bold; }
.r-uncommon  { color: #1a7a1a; font-weight: bold; }
.r-rare      { color: #14529e; font-weight: bold; }
.r-epic      { color: #7a2da0; font-weight: bold; }
.r-legendary { color: #b5500f; font-weight: bold; }

/* ---------- Download entries (Mods page) ---------- */
.dl-meta {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: var(--frame-dark);
  margin: 2px 0 8px;
}
.dl-button {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 18px;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
  border: 3px outset var(--frame);
  background: linear-gradient(#3a2c17, #211b13);
  color: var(--gold) !important;
}
.dl-button:hover { border-style: inset; color: #fff !important; }

/* Honour visitors who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .blink { animation: none; }
}
