/* --- Global theme --- */
:root {
  --brand: #d4af37;
  --text: #f5e6c8;
  --bg: #000;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Cardo', serif;
  color: var(--text);
  text-align: center;
  background: var(--bg) url("map.webp") center 40% / cover no-repeat fixed;
  padding-bottom: 72px;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
    background-position: center 30%;
  }
}

h1, .uor-brand {
  font-family: 'Cinzel Decorative', serif;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.uor-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  width: 100%;
  background: rgba(10, 8, 5, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--brand);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.uor-navwrap {
  max-width: 1420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  position: relative;
}

.uor-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.2rem;
  color: var(--text) !important;
  font-family: 'Cinzel Decorative', serif;
  z-index: 2100;
  transition: opacity 0.2s ease;
}

.uor-brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.uor-brand:hover {
  opacity: 0.85;
}

/* Nav Menu Wrapper */
.uor-nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.7rem, 1.4vw, 1.4rem);
  flex-grow: 1;
  margin-left: clamp(1rem, 2vw, 2rem);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Text navigation links */
.uor-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.4vw, 1.4rem);
}

.uor-nav-link {
  display: inline-block;
  text-align: center;
  line-height: 1.1;
  vertical-align: middle;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text) !important;
  text-decoration: none;
  position: relative;
  padding: 0.3rem 0;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.uor-nav-link:hover {
  color: #fff !important;
}

.uor-nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1.5px;
  bottom: 0;
  left: 50%;
  background-color: var(--brand);
  transition: width 0.25s ease, left 0.25s ease;
}

.uor-nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Dropdown Menu (Tools & Guides) */
.uor-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.uor-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1.1;
  text-align: center;
}

.uor-dropdown-arrow {
  display: inline-block;
  font-size: 0.65rem;
  transition: transform 0.2s ease;
  color: var(--brand);
}

.uor-dropdown:hover .uor-dropdown-arrow,
.uor-dropdown.is-open .uor-dropdown-arrow {
  transform: rotate(180deg);
}

.uor-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  width: max-content;
  background: rgba(10, 8, 5, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75), 0 0 15px rgba(212, 175, 55, 0.15);
  padding: 0.5rem 0;
  margin-top: 4px;
  z-index: 2500;
}

/* Invisible hover bridge */
.uor-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}

@media (min-width: 1181px) {
  .uor-dropdown:hover .uor-dropdown-menu {
    display: block;
  }
}

.uor-dropdown.is-open .uor-dropdown-menu {
  display: block;
}

.uor-dropdown-item {
  display: block;
  padding: 0.65rem 1.3rem;
  font-family: 'Cardo', serif;
  font-size: 0.95rem;
  color: #e5f5e0 !important;
  text-decoration: none;
  transition: all 0.18s ease;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  text-align: left;
  white-space: nowrap;
}

.uor-dropdown-item:last-child {
  border-bottom: none;
}

.uor-dropdown-item:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #ffdf6a !important;
  padding-left: 1.5rem;
  text-decoration: none !important;
}

/* Actions container */
.uor-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Global / Navbar Action Buttons */
.uor-nav-actions .uor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-family: 'Cardo', serif;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.85rem;
  color: #1a1300 !important;
  background: linear-gradient(180deg, #ffd700, #b8860b);
  border: 1px solid #caa700;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .35), 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform .15s, box-shadow .15s, filter 0.15s;
  cursor: pointer;
  white-space: nowrap;
}

.uor-nav-actions .uor-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .5), inset 0 1px 2px rgba(255, 255, 255, .4);
  filter: brightness(1.05);
}

.uor-nav-actions .uor-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .4);
}

/* Discord Button in Navbar */
.uor-btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-family: 'Cardo', serif;
  font-weight: bold;
  font-size: 0.85rem;
  text-decoration: none;
  color: #fff !important;
  background: #5865F2;
  border: 1px solid #4752C4;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform .15s, box-shadow .15s, background .15s;
}

.uor-btn-discord:hover {
  background: #4752C4;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .4);
}

.uor-btn-discord:active {
  transform: translateY(0);
}

.uor-btn-discord svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

/* Toggle button (Hamburger) */
.uor-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2100;
}

.uor-nav-toggle:focus {
  outline: none;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Responsive Navbar Drawer */
@media (max-width: 1180px) {
  .uor-nav-toggle {
    display: flex;
  }

  .uor-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(12, 10, 8, 0.97);
    border-left: 1px solid var(--brand);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 90px 24px 40px;
    gap: 2.5rem;
    margin-left: 0;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.8);
  }

  .uor-nav-menu.is-active {
    right: 0;
  }

  .uor-nav-links {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1.8rem;
  }

  .uor-nav-link {
    font-size: 1.05rem;
    width: 100%;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  }

  .uor-nav-link::after {
    display: none;
  }

  .uor-dropdown {
    flex-direction: column;
    width: 100%;
  }

  .uor-dropdown-toggle {
    width: 100%;
    justify-content: center;
  }

  .uor-dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: none;
    margin-top: 0.5rem;
  }

  .uor-dropdown-item {
    text-align: center;
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }

  .uor-nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: auto;
  }

  .uor-nav-actions .uor-btn,
  .uor-nav-actions .uor-btn-discord {
    width: 100%;
    padding: 0.6rem 1.1rem;
  }

  /* Hamburger Animations when open */
  .uor-nav-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .uor-nav-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .uor-nav-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ==========================================================================
   SHARD STATUS CONTENT & CARDS
   ========================================================================== */
.p-body {
  max-width: 1200px;
  margin: 100px auto 20px;
  padding: 0 16px;
  width: 100%;
  flex: 1;
  box-sizing: border-box;
}

.block {
  background: rgba(0, 0, 0, .6);
  border: 1px solid var(--brand);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .55);
  margin-bottom: 16px;
}

.block-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--brand);
  font-weight: 600;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.block-body {
  padding: 16px;
}

.block-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--brand);
  font-size: .92rem;
  color: #ddd;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(0, 0, 0, .45);
  border: 1px solid var(--brand);
  color: #ddd;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .9rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.up {
  background: #39d08a;
  box-shadow: 0 0 14px #39d08a66;
}

.down {
  background: #f05252;
  box-shadow: 0 0 14px #f0525266;
}

.pairs {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.pair {
  background: rgba(0, 0, 0, .5);
  border: 1px solid var(--brand);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.pair .label {
  color: #cfcfcf;
  font-size: .85rem;
  margin-bottom: 6px;
}

.pair .value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brand);
}

.btn {
  background: linear-gradient(180deg, #ffd700, #b8860b);
  border: 1px solid #caa700;
  color: #1a1300;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: transform .15s, box-shadow .15s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .6);
}

.credit {
  text-align: right;
  color: #aaa;
  font-size: .85rem;
  margin: 4px 2px 0;
}

/* Compact status block spacing */
.status-tight .block-header,
.status-tight .block-body,
.status-tight .block-footer {
  padding: 4px 8px;
}

.status-tight .chips {
  gap: 3px;
}

.status-tight .chip {
  padding: 1px 5px;
}

.status-tight .dot {
  width: 7px;
  height: 7px;
}

.status-tight .pairs {
  gap: 4px 8px;
}

@media (min-width: 1100px) {
  .status-tight .pairs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.status-tight .pair {
  padding: 1px 0;
}

.status-tight .btn {
  padding: 3px 7px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.uor-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, .88);
  border-top: 1px solid var(--brand);
  color: #cfcfcf;
  font-size: .8rem;
  z-index: 1000;
}

.uor-footwrap {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
}

.uor-footer a {
  color: #ddd;
  text-decoration: none;
}

.uor-footer a:hover {
  color: var(--brand);
}

.uor-footer .social a {
  margin-left: 4px;
  padding: 4px;
  color: #ddd;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.uor-footer .social a svg {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  transition: transform .2s ease, color .2s ease;
}

.uor-footer .social a:hover {
  color: var(--brand);
}

.uor-footer .social a:hover svg {
  transform: scale(1.15);
}

.uor-footwrap > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.uor-footer .social {
  display: flex;
  align-items: center;
}

@media (max-width: 600px) {
  .uor-footwrap > div:first-child {
    justify-content: center;
  }
  .uor-footwrap {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
