/* Tantra Kathana - Portal Clasico MMORPG (PC & Movil) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=PT+Sans:wght@400;700&display=swap');

:root {
  --bg-deep: #0b0907;
  --bg-panel: #14110e;
  --bg-panel-2: #1b1612;
  --bg-inset: #0d0a08;
  --border-dark: #2c2218;
  --border-gold: #7a5c2e;
  --border-bright: #b88b44;
  --gold: #d9ad5b;
  --gold-light: #f3d796;
  --text-main: #ddd3c2;
  --text-muted: #9a8d79;
  --crimson: #8f2323;
  --crimson-bright: #c93b3b;
  --emerald: #2c6e41;
  --emerald-bright: #58c97b;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'PT Sans', Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

body {
  background-image:
    linear-gradient(180deg, rgba(11, 9, 7, 0.42) 0%, rgba(11, 9, 7, 0.86) 440px, #0b0907 760px),
    url('/tf/img/diosa.jpg');
  background-repeat: no-repeat, no-repeat;
  background-position: top center, center 28px;
  background-size: 100% 100%, 100% auto;
  background-attachment: scroll, fixed;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); text-decoration: underline; }
img { border: 0; max-width: 100%; }

/* Franja superior de estado */
.top-strip {
  background: linear-gradient(180deg, #1b1611 0%, #0e0b08 100%);
  border-bottom: 1px solid #3a2c1c;
  font-size: 12px;
  color: var(--text-muted);
}
.top-strip-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 6px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.top-realm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.realm-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.realm-dot.on { background: #48d174; box-shadow: 0 0 6px #48d174; }
.realm-dot.off { background: #c93b3b; }

/* Cabecera con emblema y barra metalica */
.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 14px 12px;
}
.brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.brand-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 3px;
  margin: 0;
  line-height: 1.05;
  color: #f3d796;
  text-shadow: 0 2px 0 #2b1a09, 0 4px 14px rgba(0, 0, 0, 0.95);
}
.brand-sub {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d6c5a7;
  text-shadow: 0 1px 6px #000;
}

.mmo-nav {
  display: flex;
  flex-wrap: wrap;
  background: linear-gradient(180deg, #35291c 0%, #20170f 48%, #150f0a 100%);
  border: 1px solid var(--border-gold);
  box-shadow: inset 0 1px 0 rgba(255, 226, 165, 0.22), 0 6px 18px rgba(0, 0, 0, 0.75);
}
.mmo-nav a {
  padding: 11px 18px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #e6d8c3;
  border-right: 1px solid #3c2d1d;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.mmo-nav a:hover,
.mmo-nav a.active {
  background: linear-gradient(180deg, #5e4321 0%, #3a2712 100%);
  color: var(--gold-light);
}

/* Contenedor principal de 2 columnas */
.portal-wrap {
  max-width: 1120px;
  margin: 0 auto 36px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 285px 1fr;
  gap: 16px;
  align-items: start;
}

/* Marco RPG con remaches */
.rpg-box {
  position: relative;
  background: linear-gradient(180deg, var(--bg-panel-2) 0%, var(--bg-panel) 100%);
  border: 1px solid var(--border-gold);
  box-shadow: inset 0 0 0 1px #090705, 0 8px 22px rgba(0, 0, 0, 0.75);
  margin-bottom: 16px;
}
.rpg-box::before,
.rpg-box::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #b88b44;
  border: 1px solid #2b1d0d;
  z-index: 2;
}
.rpg-box::before { top: 3px; left: 3px; }
.rpg-box::after { top: 3px; right: 3px; }

.rpg-hd {
  background: linear-gradient(180deg, #3a2b1a 0%, #241a10 100%);
  border-bottom: 1px solid var(--border-gold);
  padding: 9px 14px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rpg-hd-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rpg-hd-ico {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.mmo-ico {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 7px;
}
.rate-ico {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin: 0 auto 6px;
  display: block;
}
.item-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.item-ico-slot {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: radial-gradient(circle at center, #251d14 0%, #0a0806 100%);
  border: 1px solid #7a5c2e;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-ico-slot img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.rpg-bd { padding: 14px; }

/* Botones biselados clasicos */
.rpg-btn {
  display: inline-block;
  padding: 8px 15px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fff2d6;
  background: linear-gradient(180deg, #8b6229 0%, #5c3e16 52%, #472e0e 100%);
  border: 1px solid #c99c4e;
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.3), 0 2px 6px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.rpg-btn:hover {
  background: linear-gradient(180deg, #a87834 0%, #714d1c 100%);
  color: #fff;
  text-decoration: none;
}
.rpg-btn.crimson {
  background: linear-gradient(180deg, #962828 0%, #631616 100%);
  border-color: #c95252;
}
.rpg-btn.crimson:hover {
  background: linear-gradient(180deg, #b33232 0%, #7a1d1d 100%);
}
.rpg-btn.full { display: block; width: 100%; }

/* Formularios clasicos */
.rpg-field { margin-bottom: 10px; }
.rpg-field label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rpg-input {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-inset);
  border: 1px solid #4a3925;
  color: #f4ead9;
  font-size: 13px;
}
.rpg-input:focus {
  outline: none;
  border-color: var(--border-bright);
}

/* Listas de estado y descargas */
.stat-list { list-style: none; margin: 0; padding: 0; }
.stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed #2e2419;
  font-size: 13px;
}
.stat-list li:last-child { border-bottom: 0; }
.badge-on { color: var(--emerald-bright); font-weight: 700; }
.badge-off { color: var(--crimson-bright); font-weight: 700; }

/* Banner central */
.hero-banner {
  position: relative;
  min-height: 230px;
  background: linear-gradient(90deg, rgba(13, 10, 8, 0.92) 0%, rgba(13, 10, 8, 0.65) 55%, rgba(13, 10, 8, 0.25) 100%),
              url('/tf/img/guerreros.jpg') center center / cover no-repeat;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-banner h2 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 25px;
  color: var(--gold-light);
  margin: 0 0 8px;
  text-shadow: 0 2px 8px #000;
}
.hero-banner p {
  max-width: 520px;
  margin: 0 0 16px;
  color: #e2d7c5;
  text-shadow: 0 1px 4px #000;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Tablas MMORPG */
.mmo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.mmo-table th {
  background: #231a11;
  color: var(--gold-light);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 12px;
  text-transform: uppercase;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-gold);
}
.mmo-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #292017;
}
.mmo-table tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
.mmo-table tr:hover td { background: rgba(217, 173, 91, 0.07); }
.rank-1 { color: #ffd86b; font-weight: 700; }
.rank-2 { color: #d8dee9; font-weight: 700; }
.rank-3 { color: #e29d67; font-weight: 700; }

/* Rejilla de caracteristicas y catalogo */
.rates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.rate-cell {
  background: var(--bg-inset);
  border: 1px solid #3c2e1f;
  padding: 12px;
  text-align: center;
}
.rate-cell span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.rate-cell strong {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 17px;
  color: var(--gold-light);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.item-card {
  position: relative;
  background: var(--bg-inset);
  border: 1px solid #473623;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.15s;
}
.item-card:hover {
  border-color: var(--border-bright);
  z-index: 20;
}
.item-tooltip {
  display: none;
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: calc(100% + 6px);
  background: rgba(12, 9, 7, 0.98);
  border: 1px solid #c99c4e;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.95);
  padding: 10px 12px;
  z-index: 60;
  pointer-events: none;
}
.item-card:hover .item-tooltip,
.item-card:focus-within .item-tooltip {
  display: block;
}
.tt-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  color: #f3d796;
  margin-bottom: 4px;
}
.tt-tribu {
  font-size: 11px;
  color: #7cc4ff;
  margin-bottom: 6px;
}
.tt-stats {
  list-style: none;
  margin: 0 0 6px;
  padding: 6px 0;
  border-top: 1px solid #3b2d1d;
  border-bottom: 1px solid #3b2d1d;
  font-size: 12px;
  color: #7df09e;
}
.tt-stats li { margin-bottom: 2px; }
.tt-desc {
  font-size: 11px;
  color: #c2b092;
  line-height: 1.35;
}
.item-cat {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.7px;
  font-weight: 700;
}
.item-name {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 15px;
  color: #f6ecdb;
  margin: 2px 0 0;
}
.item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #2c2217;
  padding-top: 10px;
}
.item-cost { font-weight: 700; color: var(--gold-light); font-size: 15px; }

.alert-box {
  padding: 10px 14px;
  margin-bottom: 14px;
  border: 1px solid;
  font-weight: 700;
}
.alert-ok { background: rgba(44, 110, 65, 0.24); border-color: #46a866; color: #b7f5ca; }
.alert-err { background: rgba(143, 35, 35, 0.28); border-color: #c94b4b; color: #ffc2c2; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.filter-tab {
  padding: 6px 12px;
  background: #1b150f;
  border: 1px solid #4a3824;
  color: var(--text-main);
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
}
.filter-tab.active, .filter-tab:hover {
  background: #4e371b;
  border-color: var(--border-bright);
  color: var(--gold-light);
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto 24px;
  padding: 14px;
  border-top: 1px solid #342719;
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

@media (max-width: 860px) {
  .portal-wrap { grid-template-columns: 1fr; }
  .rates-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-title { font-size: 28px; }
}
