/*
 * Tanados modern skin (AoWoW overrides)
 *
 * Keep selectors conservative: AoWoW has a lot of JS expecting existing DOM/IDs.
 */

:root {
  --tn-bg: #070a0e;
  --tn-bg2: #0b111a;
  --tn-surface: rgba(17, 22, 30, 0.92);
  --tn-surface2: rgba(12, 16, 23, 0.92);
  --tn-border: rgba(255, 255, 255, 0.06);
  --tn-border2: rgba(255, 255, 255, 0.1);

  --tn-text: rgba(255, 255, 255, 0.9);
  --tn-text-muted: rgba(255, 255, 255, 0.66);

  --tn-accent: #ffc107;
  --tn-accent2: #dd8500;
  --tn-link: #79c0ff;

  --tn-radius: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  color: var(--tn-text);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(255, 193, 7, 0.12), transparent 55%),
    radial-gradient(900px 500px at 85% -10%, rgba(121, 192, 255, 0.12), transparent 55%),
    linear-gradient(180deg, var(--tn-bg), var(--tn-bg2));
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  letter-spacing: 0.1px;
}

a {
  color: var(--tn-link);
}
a:hover {
  color: #a8d7ff;
}

/* Wider, responsive layout */
.layout {
  min-width: 0 !important;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
}

/* Layout shells */
.layout-inner {
  padding-top: 18px;
}

#wrapper.wrapper {
  background: transparent;
}

/* Header */
#header.header {
  background: linear-gradient(180deg, rgba(12, 18, 28, 0.92), rgba(8, 11, 15, 0.92));
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

#header-logo {
  padding: 18px 18px 12px;
}

#header-logo a.header-logo {
  width: 310px;
  height: 78px;
  left: 14px;
  top: 14px;
  background: url(../images/logos/tanados-database.svg) left center / contain no-repeat;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.55));
}

/* Make toplinks part of the normal flow (no absolute positioning) */
.toplinks {
  position: static !important;
  right: auto !important;
  height: auto !important;
  line-height: normal !important;
  overflow: visible !important;
}

/* Top links/menu */
.toplinks.linklist {
  background: var(--tn-surface);
  border: 1px solid var(--tn-border);
  border-top: 0;
  border-radius: 0 0 var(--tn-radius) var(--tn-radius);
  padding: 10px 14px;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.toplinks a,
.toplinks span {
  color: var(--tn-text-muted);
}

.toplinks a:hover {
  color: var(--tn-text);
}

/* Tabs (top) */
.toptabs {
  margin-top: 12px;
  border-bottom: 1px solid var(--tn-border);
  background: transparent !important;
}

.toptabs,
.toptabs a,
.toptabs a span {
  background: none !important;
}

.toptabs a {
  color: rgba(255, 255, 255, 0.78);
  text-transform: none;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid var(--tn-border);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  margin-right: 6px;
  background: rgba(255, 255, 255, 0.03) !important;
}

.toptabs a:hover,
.toptabs a.open {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.05) !important;
}

.toptabs a.active {
  background: rgba(255, 193, 7, 0.14) !important;
  border-color: rgba(255, 193, 7, 0.35) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  top: 1px;
}

/* Search bar */
#topbar.topbar {
  margin-top: 12px;
  background: var(--tn-surface2);
  border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.topbar-search input#livesearch-generic {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--tn-border2);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--tn-text);
  outline: none;
}

.topbar-search input#livesearch-generic:focus {
  border-color: rgba(255, 193, 7, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.12);
}

/* Main content panel */
.main-precontents {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.main-contents {
  border: 1px solid var(--tn-border) !important;
  background: var(--tn-surface) !important;
  border-radius: var(--tn-radius) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  padding: 18px !important;
}

.text h1 {
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.text h2 {
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.92);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  padding: 10px 0 10px 0;
  background: none !important;
  color: var(--tn-text-muted);
}

/* Menu buttons */
span.menu-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 !important;
}

span.menu-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--tn-border);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 600;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
}

span.menu-buttons a:hover {
  text-decoration: none;
  border-color: rgba(255, 193, 7, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

span.menu-buttons a:active {
  transform: translateY(0);
}

/* Listview containers */
.listview {
  border-radius: var(--tn-radius);
  overflow: hidden;
  border: 1px solid var(--tn-border);
  background: rgba(0, 0, 0, 0.18);
}

.listview table {
  border-collapse: separate;
  border-spacing: 0;
}

.listview tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.listview-mode-default thead th {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.listview-mode-default tbody td {
  background: rgba(0, 0, 0, 0.18);
}

.listview-mode-default tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.listview tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.listview th {
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--tn-border);
}

.listview th,
.listview td {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Generic tables used in account/tool pages */
.text table,
.inputbox table,
div.dialog table,
.wsa-tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--tn-border);
  border-radius: 12px;
  overflow: hidden;
}

.text table th,
.inputbox table th,
div.dialog table th,
.wsa-tbl th {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.text table th,
.text table td,
.inputbox table th,
.inputbox table td,
div.dialog table th,
div.dialog table td,
.wsa-tbl th,
.wsa-tbl td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
}

.text table tr:last-child th,
.text table tr:last-child td,
.inputbox table tr:last-child th,
.inputbox table tr:last-child td,
div.dialog table tr:last-child th,
div.dialog table tr:last-child td,
.wsa-tbl tr:last-child th,
.wsa-tbl tr:last-child td {
  border-bottom: 0;
}

/* Input boxes (signin, not found, etc.) */
.inputbox {
  background: var(--tn-surface2) !important;
  border: 1px solid var(--tn-border) !important;
  border-radius: var(--tn-radius);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

/* Footer */
.footer {
  padding: 34px 0 !important;
  color: var(--tn-text-muted) !important;
}

.footer a {
  color: rgba(255, 255, 255, 0.72);
}

.footer a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.tn-footer-inner {
  margin-top: 14px;
}

.tn-footer-brand {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.78);
}

.tn-footer-meta {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

/* Homepage */
body.home .home-wrapper {
  padding: 68px 18px 30px;
  max-width: 1040px;
  margin: 0 auto;
}

body.home .home-logo {
  width: min(520px, 100%);
  height: 120px;
  background: url(../images/logos/tanados-database.svg) center / contain no-repeat;
  margin: 0 auto 10px;
}

body.home .home-logo a {
  display: block;
  width: 100%;
  height: 100%;
  text-indent: -9999px;
}

body.home .tn-home-tagline {
  margin: 0 auto 22px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.6;
}

body.home .home-search form {
  width: min(760px, 100%);
}

body.home .home-search input {
  background: rgba(0, 0, 0, 0.42) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  color: var(--tn-text) !important;
  padding: 14px 16px !important;
  font-size: 18px !important;
}

body.home .home-search input:focus {
  border-color: rgba(255, 193, 7, 0.55) !important;
  box-shadow: 0 0 0 5px rgba(255, 193, 7, 0.12);
}

body.home .home-search a {
  right: 10px !important;
  top: 10px !important;
  width: 26px !important;
  height: 26px !important;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

body.home #home-menu .menu-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  padding: 0;
}

body.home #home-menu .menu-buttons a {
  border-radius: 16px;
  padding: 14px 14px;
  background: rgba(255, 255, 255, 0.04);
}

body.home .toplinks.linklist {
  justify-content: center;
}

/* Tooltips: keep original look but slightly soften edges */
.wowhead-tooltip,
.wowhead-tooltip table {
  border-radius: 10px !important;
}

@media (max-width: 760px) {
  #header-logo a.header-logo {
    width: 260px;
    height: 70px;
  }

  body.home .home-wrapper {
    padding-top: 52px;
  }
}
