/* ============================================================
   IMPORTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 17px;
  color: #f0e6cc;
  background: #0d0b08;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: #c8a44a;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #e8c870;
}

/* ============================================================
   BACKDROP
   Fixed full-viewport background image with dark overlay
   ============================================================ */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('/assets/backdrop.jpg') center top / cover no-repeat;
}

/* Gradient overlay — darker at top (navbar) and bottom, 
   slightly lighter in the middle so the artwork reads */
.backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 3, 1, 0.70) 0%,
    rgba(5, 3, 1, 0.30) 30%,
    rgba(5, 3, 1, 0.30) 65%,
    rgba(5, 3, 1, 0.80) 100%
  );
}

/* ============================================================
   NAVBAR
   Tooled-leather effect using layered gradients — no image needed
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;

  /* Leather: bright ridge at center, dark edges */
  background:
    linear-gradient(
      to bottom,
      rgba(200, 164, 74, 0.25) 0px,   /* gold top sheen  */
      rgba(200, 164, 74, 0.00) 2px
    ),
    linear-gradient(
      to bottom,
      #1a0e04 0%,
      #2d1a08 25%,
      #3a2210 50%,
      #2d1a08 75%,
      #1a0e04 100%
    );

  border-top:    1px solid #c8a44a;
  border-bottom: 1px solid #6b4010;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(200, 164, 74, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 56px;
  gap: 0;
}

/* Logo / server name — left side */
.navbar-brand {
  position: absolute;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-brand img {
  height: 36px;
  width: auto;
}

.navbar-brand span {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: #c8a44a;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(200, 164, 74, 0.5);
  white-space: nowrap;
}

/* Nav links */
.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
}

.navbar-nav li {
  position: relative;
}

/* Vertical gold divider between items */
.navbar-nav li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #6b4010 40%, #6b4010 60%, transparent);
}

.navbar-nav a {
  display: block;
  padding: 0 22px;
  height: 56px;
  line-height: 56px;

  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8a44a;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);

  transition: color 0.15s, background 0.15s;
}

.navbar-nav a:hover {
  color: #f0d078;
  background: rgba(200, 164, 74, 0.08);
}

.navbar-nav a.active {
  color: #f0d078;
}

/* ============================================================
   PAGE WRAPPER
   Pushes content below the navbar
   ============================================================ */
.page {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
}

/* ============================================================
   PANEL
   The semi-transparent dark card used on every page
   ============================================================ */
.panel {
  background: rgba(10, 6, 2, 0.88);
  border: 1px solid #6b4010;
  box-shadow:
    0 0 0 1px rgba(200, 164, 74, 0.12) inset,
    0 8px 40px rgba(0, 0, 0, 0.8);
  position: relative;
}

/* Gold top accent bar */
.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #c8a44a 25%, #c8a44a 75%, transparent);
}

.panel-header {
  padding: 18px 24px 14px;
  border-bottom: 1px solid #2d1a08;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c8a44a;
}

.panel-time {
  font-family: 'Crimson Text', serif;
  font-size: 14px;
  color: #8a7055;
  font-style: italic;
}

.panel-body {
  padding: 20px 24px;
}

/* ============================================================
   FORMS (Register / Login)
   ============================================================ */
.form-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.form-panel {
  width: 100%;
  max-width: 440px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-family: 'Crimson Text', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a7055;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: rgba(5, 3, 1, 0.7);
  border: 1px solid #3a2210;
  border-bottom-color: #6b4010;
  color: #f0e6cc;
  font-family: 'Crimson Text', serif;
  font-size: 16px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: #c8a44a;
  box-shadow: 0 0 0 1px rgba(200, 164, 74, 0.2), inset 0 0 8px rgba(200, 164, 74, 0.05);
}

.form-input::placeholder {
  color: #4a3520;
}

.form-error {
  background: rgba(120, 20, 20, 0.5);
  border: 1px solid #8b2020;
  border-left: 3px solid #cc3333;
  color: #f0a0a0;
  font-size: 14px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.form-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: #6b5535;
}

/* ============================================================
   BUTTON
   ============================================================ */
.btn-wow {
  display: inline-block;
  width: 100%;
  padding: 11px 24px;
  cursor: pointer;
  border: none;

  background: linear-gradient(to bottom, #4a2e08 0%, #2d1a04 50%, #1f1002 100%);
  border-top:    1px solid #c8a44a;
  border-left:   1px solid #6b4010;
  border-right:  1px solid #6b4010;
  border-bottom: 1px solid #3a2008;

  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c8a44a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);

  transition: background 0.2s, color 0.2s;
}

.btn-wow:hover {
  background: linear-gradient(to bottom, #5a3a0a 0%, #3a2208 50%, #2d1a06 100%);
  color: #f0d078;
}

.btn-wow:active {
  transform: translateY(1px);
}

/* ============================================================
   REALM STATUS (home page)
   ============================================================ */
.realm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 15px;
}

.realm-row:last-child {
  border-bottom: none;
}

.realm-logo {
  width: 31px;
  height: 11px;
  object-fit: contain;
  flex-shrink: 0;
}

.realm-name {
  flex: 1;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #c8a44a;
}

.realm-players {
  color: #f0e6cc;
  font-size: 14px;
}

.realm-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.realm-status-dot.online  { background: #4caf50; box-shadow: 0 0 4px #4caf50; }
.realm-status-dot.offline { background: #cc3333; box-shadow: 0 0 4px #cc3333; }

.realm-total {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #2d1a08;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #8a7055;
  text-align: center;
}

.realm-total span {
  color: #c8a44a;
}

/* ============================================================
   ACCOUNT PAGE
   ============================================================ */
.account-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.account-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #1e1108;
  font-size: 15px;
}

.account-field:last-child {
  border-bottom: none;
}

.account-field-label {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b5535;
}

.account-field-value {
  color: #f0e6cc;
  font-style: italic;
}

/* ============================================================
   DOWNLOAD PAGE
   ============================================================ */
.download-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

/* Wider than the login/register panels */
.download-panel {
  width: 100%;
  max-width: 620px;
}

.download-intro {
  font-size: 15px;
  color: #8a7055;
  margin-bottom: 18px;
  font-style: italic;
}

/* Dropdown wrapper */
.dl-select-wrap {
  position: relative;
  margin-bottom: 16px;
}

.dl-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(5, 3, 1, 0.75);
  border: 1px solid #6b4010;
  border-bottom-color: #c8a44a;
  color: #f0e6cc;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 40px 12px 16px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.dl-select:focus {
  border-color: #c8a44a;
  box-shadow: 0 0 0 1px rgba(200, 164, 74, 0.2);
}

.dl-select option {
  background: #1a0e04;
  color: #f0e6cc;
  font-family: Georgia, serif;
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
}

/* Custom arrow */
.dl-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #c8a44a;
  font-size: 11px;
  pointer-events: none;
}

/* Description text below dropdown */
.dl-desc {
  font-size: 14px;
  color: #8a7055;
  line-height: 1.7;
  padding: 10px 0 16px;
  border-bottom: 1px solid #1e1108;
  margin-bottom: 18px;
}

.dl-not-configured {
  color: #8a7055;
  font-style: italic;
  text-align: center;
  font-size: 14px;
  padding: 12px 0;
}

.dl-btn {
  margin-bottom: 22px;
}

.download-instructions {
  margin-top: 4px;
  color: #6b5535;
  font-size: 14px;
  line-height: 1.8;
}

.download-instructions li {
  margin-left: 18px;
  margin-bottom: 4px;
}

/* ============================================================
   SCROLLBAR — dark themed
   ============================================================ */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: #0d0b08; }
::-webkit-scrollbar-thumb { background: #3a2210; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #6b4010; }
