/* ═══════════════════════════════════════════════════════════════════════════
   CMS Esoterium — Front-end styles
   Paleta original: negro / carmesí #d52e07 / dorado #a99877 / marrón #12110f
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --crimson:      #d52e07;
  --crimson-dim:  #9e2205;
  --tan:          #a99877;
  --tan-light:    #c8b494;
  --tan-dim:      #6e6050;
  --gold:         #ad835a;
  --gold-light:   #c9a06e;
  --border-brown: #483a30;
  --bg-black:     #000;
  --bg-content:   #12110f;
  --bg-header:    rgba(0, 0, 0, 0.88);

  --header-h:     50px;
  --content-w:    960px;
  --radius:       3px;
  --t:            0.2s ease;

  --font-head: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --font-body: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--tan);
  /* Negro puro — la textura solo aparece en header y canales laterales */
  background: var(--bg-black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--tan); text-decoration: none; transition: color var(--t); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER — textura de piedra roja + borde carmesí
   ═══════════════════════════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  /* Textura oscura sobre negro */
  background-color: #1a0a06;
  background-image: url('/assets/img/tex/main_menu_top.png');
  background-size: auto 100%;
}

.header-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: rgba(0, 0, 0, 0.593);
}

/* ── Logo ──────────────────────────────────────────────────────────────── */
.site-logo { flex-shrink: 0; }

.site-logo a { display: flex; align-items: center; }

.site-logo img {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 1px 8px rgba(213, 46, 7, 0.5));
  transition: filter var(--t);
}

.site-logo a:hover img {
  filter: drop-shadow(0 1px 12px rgba(255, 140, 60, 0.7));
}

/* ── Nav ───────────────────────────────────────────────────────────────── */
.site-nav { flex: 1; display: flex; align-items: center; }

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-list > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .9rem;
  color: var(--tan);
  font-size: .875rem;
  white-space: nowrap;
  transition: color var(--t);
  position: relative;
}

/* Divisor vertical entre items */
.nav-list > li:not(:first-child) > a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-brown);
}

.nav-list > li > a .nav-icon   { font-size: .8em; }
.nav-list > li > a .nav-arrow  { font-size: .62em; opacity: .45; transition: transform var(--t); }
.nav-list > li:hover > a       { color: #fff; }
.nav-list > li.active > a      { color: var(--gold-light); }
.nav-list > li:hover > a .nav-arrow { transform: rotate(180deg); }

/* ── Dropdown ──────────────────────────────────────────────────────────── */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(var(--header-h) + 3px);
  left: 0;
  min-width: 196px;
  background: #0e0906;
  border: 1px solid var(--border-brown);
  border-top: 2px solid var(--crimson);
  box-shadow: 0 8px 24px rgba(0,0,0,.85);
  list-style: none;
  padding: .3rem 0;
  z-index: 100;
}

.nav-list > li:hover .nav-dropdown,
.nav-list > li:focus-within .nav-dropdown {
  display: block;
  animation: dropIn .15s ease;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown li:not(:last-child) {
  border-bottom: 1px solid rgba(157, 34, 5, .45);
}

.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .58rem 1rem;
  color: var(--tan);
  font-size: .86rem;
  transition: color var(--t), background var(--t);
}

.nav-dropdown li a:hover {
  color: #fff;
  background: rgba(213, 46, 7, .18);
}

/* ── Header actions ────────────────────────────────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* Selector idioma */
.lang-switcher { position: relative; }

.lang-btn .arrow { font-size: .58em; opacity: .5; margin-left: -.1rem; transition: transform var(--t); }
.lang-switcher:hover .lang-btn .arrow,
.lang-switcher:focus-within .lang-btn .arrow { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 128px;
  background: #0e0906;
  border: 1px solid var(--border-brown);
  border-top: 2px solid var(--crimson);
  box-shadow: 0 8px 20px rgba(0,0,0,.85);
  list-style: none;
  padding: .25rem 0;
  padding-top: calc(.25rem + 4px);
  z-index: 200;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown {
  display: block;
  animation: dropIn .15s ease;
}

.lang-dropdown li:not(:last-child) { border-bottom: 1px solid rgba(72,58,48,.5); }

.lang-dropdown li a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  color: var(--tan);
  font-size: .86rem;
  font-weight: 500;
  transition: color var(--t), background var(--t);
}

.lang-dropdown li a:hover { color: #fff; background: rgba(213,46,7,.18); }
.lang-dropdown li a.active { color: var(--gold-light); }

.lang-flag { font-size: 1.1em; }

/* ── Botón global — técnica sprite (::before=normal / ::after=hover) ───── */
/*    bt164.png (192×98): mitad superior = normal, mitad inferior = hover   */
.btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  padding: .62rem 2.2rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #e2ca7a;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,.95), 0 0 6px rgba(100,40,5,.5);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: color .28s, text-shadow .28s;
  isolation: isolate;
}

/* Capas de imagen — técnica 3 piezas: cap-L + cap-R fijos, centro repeat-x
   Los PNGs incluyen fade doble: exterior→negro, interior→tile               */
.btn::before,
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-position: left center, right center, center center;
  background-size: auto 100%, auto 100%, auto 100%;
  transition: opacity .28s ease;
}

/* Normal state */
.btn::before {
  background-image:
    url('/assets/img/tex/btn-n-l.png'),
    url('/assets/img/tex/btn-n-r.png'),
    url('/assets/img/tex/btn-n-c.png');
  opacity: 1;
}

/* Hover state */
.btn::after {
  background-image:
    url('/assets/img/tex/btn-h-l.png'),
    url('/assets/img/tex/btn-h-r.png'),
    url('/assets/img/tex/btn-h-c.png');
  opacity: 0;
}

.btn:hover::before { opacity: 0; }
.btn:hover::after  { opacity: 1; }

.btn:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255,160,40,.9), 0 0 24px rgba(255,70,0,.45),
               0 1px 2px rgba(0,0,0,.95);
}

/* ─── Bar-frame — Técnica 3 piezas reutilizable (cap-L + cap-R + centro) ─ */
.bar-frame {
  position: relative; 
  background-image:
    url('/assets/img/tex/bar-l.png'),
    url('/assets/img/tex/bar-r.png'),
    url('/assets/img/tex/bar-c.png');
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-position: left center, right center, center center;
  background-size: auto 100%, auto 100%, auto 100%;
}

/* Variante outline — texturas monocromáticas */
.btn--outline {
  color: #c0b8a8;
  border: none;
  padding: .58rem 1.8rem;
  font-family: var(--font-body);
  font-size: .84rem;
  letter-spacing: .06em;
  text-shadow: 0 1px 4px rgba(0,0,0,.95);
}

.btn--outline::before,
.btn--outline::after {
  background-image:
    url('/assets/img/tex/btn-g-l.png'),
    url('/assets/img/tex/btn-g-r.png'),
    url('/assets/img/tex/btn-g-c.png');
}

.btn--outline:hover {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.95);
}

/* Botón login del header — compacto */
.btn-login {
  padding: .28rem 1.1rem;
  font-size: .7rem;
  letter-spacing: .1em;
}
.btn-user {
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.btn-user:hover {
  background: rgba(255,215,0,.1);
}

/* ── Hamburguesa ───────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: .3rem;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--tan);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

.hamburger:hover span { background: #fff; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Menú móvil ────────────────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(0,0,0,.97);
  z-index: 800;
  padding: 1.25rem 1rem;
  overflow-y: auto;
}

.mobile-nav.open { display: block; animation: fadeIn .2s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.mobile-nav-list { list-style: none; display: flex; flex-direction: column; }
.mobile-nav-list > li { border-bottom: 1px solid var(--border-brown); }

.mobile-nav-list > li > a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem .5rem;
  color: var(--tan);
  font-size: 1rem;
}

.mobile-nav-list > li > a:hover { color: #fff; }

.mobile-nav-list .sub-list {
  list-style: none;
  padding: .1rem 0 .4rem 1.8rem;
}

.mobile-nav-list .sub-list li { border-top: 1px solid rgba(72,58,48,.35); }

.mobile-nav-list .sub-list li a {
  display: block;
  padding: .5rem;
  color: var(--tan-dim);
  font-size: .92rem;
}

.mobile-nav-list .sub-list li a:hover { color: #fff; }

.mobile-lang-switcher {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--crimson);
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.mobile-lang-switcher a {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .75rem;
  border: 1px solid var(--border-brown);
  border-radius: var(--radius);
  color: var(--tan);
  font-size: .84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.mobile-lang-switcher a:hover,
.mobile-lang-switcher a.active {
  color: #fff;
  border-color: var(--crimson);
  background: rgba(213,46,7,.15);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE-OUTER — canal exterior con textura de piedra roja visible en gutters
   ═══════════════════════════════════════════════════════════════════════════ */

.page-outer {
  flex: 1;
  /* La textura aparece en los canales fuera del bloque de contenido */
  background-color: #000;
}

/* ── Banda decorativa col-u.png — centrada, toca el borde del bloque dark ── */
.deco-band {
  pointer-events: none;
  display: flex;
  justify-content: center;
  overflow: hidden;
  line-height: 0;
}

.deco-band img {
  max-width: var(--content-w);
  width: 100%;
  height: auto;
  display: block;
  /* Oscurecer ligeramente para que integre bien */
  filter: brightness(.85) contrast(1.05);
}

/* ── page-frame: bloque dark centrado sobre el canal de textura ──────────── */
.page-frame {
  position: relative;
  max-width: var(--content-w);
  margin: 0 auto;
  /* Bordes laterales de 5px que repiten verticalmente */
  background-color: var(--bg-content);
  background-image:
    url('/assets/img/tex/border-l.jpg'),
    url('/assets/img/tex/border-r.jpg');
  background-repeat: repeat-y, repeat-y;
  background-position: 0 0, 100% 0;
  background-size: 5px auto, 5px auto;
}

/* Esquinas decorativas (corner-lt / corner-rt) sobre el bloque */
.page-frame::before,
.page-frame::after {
  content: '';
  position: absolute;
  top: 0;
  pointer-events: none;
  z-index: 2;
}

.page-frame::before {
  left: 0;
  width: 60px;
  height: 60px;
  background: url('/assets/img/tex/corner-lt.webp') no-repeat left top / contain;
}

.page-frame::after {
  right: 0;
  width: 60px;
  height: 60px;
  background: url('/assets/img/tex/corner-rt.webp') no-repeat right top / contain;
}

/* ── Contenido propiamente dicho ─────────────────────────────────────────── */
.site-main {
  position: relative;
  z-index: 1;
  padding: 2rem 2.5rem 3rem;
  /* Mantenemos el bg-content, los 5px de borde son del page-frame */
  margin: 0 5px;
  background: var(--bg-content);
  background-image: url('/assets/img/tex/bg-ts-6.webp');
}

/* Tipografía */
.site-main h1,
.site-main h2,
.site-main h3,
.site-main h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.3;
  color: var(--tan-light);
  margin: 1.8rem 0 .7rem;
}

.site-main h1 { font-size: 2rem; color: #d4c4a0; }
.site-main h2 { font-size: 1.45rem; color: var(--gold-light); }
.site-main h3 { font-size: 1.18rem; }

.site-main p { margin-bottom: 1.1rem; }
.site-main ul, .site-main ol { margin: .5rem 0 1.2rem 1.6rem; }
.site-main li { margin-bottom: .35rem; }

.page-subtitle {
  color: var(--tan-dim);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Separador decorativo */
.site-main hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--crimson-dim), transparent);
  margin: 1.75rem 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.site-footer {
  background: #080604;
  border-top: 2px solid var(--crimson);
  box-shadow: 0 -3px 16px rgba(0,0,0,.7);
}

.footer-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand { display: flex; flex-direction: column; gap: .6rem; }

.footer-brand img {
  height: 27px;
  width: auto;
  opacity: .65;
  filter: drop-shadow(0 1px 5px rgba(213,46,7,.3));
}

.footer-brand p {
  font-size: .8rem;
  color: var(--tan-dim);
  max-width: 300px;
  line-height: 1.5;
}

.footer-nav { display: flex; flex-direction: column; gap: .38rem; }

.footer-nav a {
  font-size: .82rem;
  color: var(--tan-dim);
  text-align: right;
  transition: color var(--t);
}

.footer-nav a:hover { color: var(--tan); }

.footer-bottom {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: .8rem 1.5rem;
  border-top: 1px solid rgba(72,58,48,.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .73rem;
  color: var(--tan-dim);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .header-actions .btn-login { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { align-items: flex-start; }
  .footer-nav a { text-align: left; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .4rem; }
}

@media (max-width: 600px) {
  :root { --header-h: 46px; }
  .site-logo img { height: 26px; }
  .site-main { padding: 1.25rem 1rem 2rem; margin: 0; }
  .page-frame {
    background-image: none;
    background-color: var(--bg-content);
  }
  .page-frame::before, .page-frame::after { display: none; }
  .deco-band { display: none; }
  .page-outer {
    background-image: none;
    background-color: var(--bg-content);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORMULARIOS DE AUTENTICACIÓN (/user/login, /user/register)
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 1rem 0 2rem;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  background: #0e0c0a;
  border: 1px solid var(--border-brown);
  border-top: 3px solid var(--crimson);
  padding: 2.25rem 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.7);
}

.auth-box h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--tan-light);
  margin: 0 0 1.5rem;
}

.auth-error {
  background: rgba(213,46,7,.15);
  border: 1px solid var(--crimson-dim);
  border-radius: var(--radius);
  color: #f87171;
  padding: .65rem .9rem;
  font-size: .88rem;
  margin-bottom: 1.25rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.auth-field label {
  font-size: .82rem;
  color: var(--tan-dim);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-icon {
  position: absolute;
  left: .75rem;
  width: 16px;
  height: 16px;
  color: var(--tan-dim);
  pointer-events: none;
  flex-shrink: 0;
}

.auth-input-wrap input {
  width: 100%;
  padding: .62rem .75rem .62rem 2.4rem;
  background: #1a1612;
  border: 1px solid var(--border-brown);
  border-radius: var(--radius);
  color: var(--tan-light);
  font-size: .92rem;
  font-family: var(--font-body);
  transition: border-color var(--t);
  outline: none;
}

.auth-input-wrap input:focus {
  border-color: var(--crimson);
}

.auth-input-wrap input::placeholder {
  color: var(--tan-dim);
  opacity: .6;
}

.auth-eye {
  position: absolute;
  right: .6rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tan-dim);
  display: flex;
  align-items: center;
  padding: .2rem;
  transition: color var(--t);
}

.auth-eye:hover { color: var(--tan); }

/* .auth-btn → alias de .btn */
.auth-btn { display: flex; margin-top: .4rem; }

/* .auth-btn--outline → alias de .btn--outline */
.auth-btn--outline {
  color: var(--tan);
  border: 1px solid var(--border-brown);
  padding: .58rem 1.8rem;
  font-family: var(--font-body);
  font-size: .84rem;
  letter-spacing: .06em;
  text-shadow: none;
}
.auth-btn--outline::before,
.auth-btn--outline::after { display: none; }
.auth-btn--outline:hover { color: #fff; border-color: var(--crimson); background-color: rgba(213,46,7,.12); text-shadow: none; }

.auth-links {
  margin-top: 1.25rem;
  text-align: center;
  font-size: .86rem;
}

.auth-links a {
  color: var(--tan-dim);
  transition: color var(--t);
}

.auth-links a:hover { color: var(--tan); }

/* ── OAuth ────────────────────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0;
  color: var(--tan-dim);
  font-size: .82rem;
  text-transform: lowercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-brown);
}

.auth-oauth {
  display: flex;
  gap: .75rem;
}

.auth-oauth-btn {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .88rem;
  padding: .6rem .75rem;
  min-height: 42px;
}

.auth-oauth-btn svg {
  flex-shrink: 0;
}

/* ── Mensaje de éxito ─────────────────────────────────────────────────── */
.auth-success {
  background: rgba(34,197,94,.12);
  border: 1px solid #166534;
  border-radius: var(--radius);
  color: #4ade80;
  padding: .65rem .9rem;
  font-size: .88rem;
  margin-bottom: 1.25rem;
}

/* ── Sección avatar ───────────────────────────────────────────────────── */
.avatar-section {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: .5rem;
}

.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--border-brown);
  object-fit: cover;
  flex-shrink: 0;
}

svg.avatar-placeholder {
  background: #1a1612;
}

.avatar-actions {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.avatar-upload-label {
  display: inline-block;
  cursor: pointer;
  font-size: .82rem;
  color: var(--tan-dim);
  border: 1px solid var(--border-brown);
  padding: .4rem .8rem;
  border-radius: var(--radius);
  transition: color var(--t), border-color var(--t), background var(--t);
}

.avatar-upload-label:hover {
  color: #fff;
  border-color: var(--crimson);
  background: rgba(213,46,7,.12);
}

/* Zodiac badge */
.zodiac-badge {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem .8rem;
  margin-bottom: .3rem;
  background: rgba(255,215,0,.05);
  border: 1px solid rgba(255,215,0,.15);
  border-radius: var(--radius);
}
.zodiac-badge-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255,215,0,.3));
}
.zodiac-badge-name {
  font-size: .95rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: .03em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HORÓSCOPO
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Listing ────────────────────────────────────────────────────────────── */
.horo-listing-h1 {
  text-align: center;
  margin-bottom: 1rem;
}

.horo-logo {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

.horo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.horo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: .5rem;
  border-radius: var(--radius);
  transition: transform var(--t), box-shadow var(--t);
}

.horo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(213,46,7,.25);
}

.horo-card.current {
  box-shadow: 0 0 0 2px var(--crimson);
}

.horo-card img {
  width: 100%;
  max-width: 130px;
  height: auto;
  border-radius: var(--radius);
}

.horo-card-name {
  display: block;
  margin-top: .4rem;
  font-size: .9rem;
  color: var(--tan-light);
  font-family: var(--font-head);
}

/* ── Sign page ──────────────────────────────────────────────────────────── */
.horo-sign-page {
  max-width: 720px;
  margin: 0 auto;
}

.horo-sign-h1 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--tan-light);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.horo-sign-h1 .horo-ico {
  font-size: 1.4em;
  margin-right: .2em;
}

.horo-sign-h1 small {
  display: block;
  font-size: .55em;
  color: var(--tan-dim);
  font-weight: normal;
  margin-top: .25em;
}

.horo-sign-card {
  float: left;
  margin: 0 1.2rem 1rem 0;
  width: 25%;
  min-width: 120px;
}

.horo-sign-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.horo-section {
  margin-bottom: 1.5rem;
}

.horo-section-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: normal;
  color: var(--tan-light);
  display: flex;
  align-items: center;
  gap: .4em;
  margin-bottom: .5rem;
}

.horo-section-title svg {
  flex-shrink: 0;
}

.horo-text {
  color: var(--tan);
  line-height: 1.7;
}

.horo-text p {
  margin-bottom: .8em;
}

.horo-daterange {
  clear: both;
  text-align: center;
  color: var(--tan-dim);
  margin: 1.5rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-brown);
}

/* ── Horoscope Share ── */
.horo-share {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin: 1rem 0 0;
}

.horo-share-label {
  font-size: .75rem;
  color: var(--tan-dim);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.horo-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(204, 153, 102, .25);
  background: rgba(30, 20, 10, .6);
  color: #cc9966;
  transition: all .2s ease;
  text-decoration: none;
}

.horo-share-btn:hover {
  border-color: rgba(204, 153, 102, .6);
  transform: scale(1.12);
}

.horo-share-x:hover  { color: #fff; background: #000; border-color: #333; }
.horo-share-fb:hover { color: #fff; background: #1877f2; border-color: #1877f2; }
.horo-share-wa:hover { color: #fff; background: #25d366; border-color: #25d366; }
.horo-share-tg:hover { color: #fff; background: #0088cc; border-color: #0088cc; }

.horo-share-native {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(204, 153, 102, .3);
  background: rgba(30, 20, 10, .6);
  color: #cc9966;
  font-size: .8rem;
  cursor: pointer;
  transition: all .2s ease;
}

.horo-share-native:hover {
  border-color: rgba(204, 153, 102, .6);
  background: rgba(60, 40, 20, .6);
}

.horo-grid-bottom {
  clear: both;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-brown);
  grid-template-columns: repeat(6, 1fr);
  gap: .5rem;
}

.horo-grid-bottom .horo-card img {
  max-width: 80px;
}

.horo-listing-date {
  text-align: center;
  color: var(--tan-dim);
  font-size: .95rem;
  margin: -.5rem 0 1.5rem;
}

/* Horoscope nudge pill */
.horo-nudge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  padding: .6rem 1.2rem;
  background: rgba(255,215,0,.06);
  border: 1px solid rgba(255,215,0,.18);
  border-radius: 2rem;
  text-decoration: none;
  transition: background var(--t), border-color var(--t);
}
.horo-nudge:hover {
  background: rgba(255,215,0,.1);
  border-color: rgba(255,215,0,.3);
}
.horo-nudge-text {
  font-size: .85rem;
  color: var(--tan-light);
}
.horo-nudge-btn {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(255,215,0,.1);
  padding: .3rem .8rem;
  border-radius: 1rem;
  white-space: nowrap;
  transition: background var(--t);
  text-decoration: none;
}
.horo-nudge-btn:hover {
  background: rgba(255,215,0,.2);
}
.horo-nudge-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255,215,0,.3));
}
.horo-nudge-sign {
  border-color: rgba(255,215,0,.25);
}
@media (max-width: 480px) {
  .horo-nudge {
    flex-direction: column;
    gap: .4rem;
    text-align: center;
    border-radius: var(--radius);
    padding: .8rem 1rem;
  }
}

.horo-card-dates {
  display: block;
  font-size: .7rem;
  color: var(--tan-dim);
  margin-top: .1em;
}

/* ── FAQ ── */
.horo-faq {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-brown);
}

.horo-faq h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--tan-light);
  margin-bottom: 1rem;
}

.horo-faq-item {
  margin-bottom: .6rem;
  border: 1px solid var(--border-brown);
  border-radius: 6px;
  overflow: hidden;
}

.horo-faq-item summary {
  cursor: pointer;
  padding: .7rem 1rem;
  font-weight: 600;
  color: var(--tan-light);
  background: rgba(255,255,255,.03);
  list-style: none;
}

.horo-faq-item summary::-webkit-details-marker { display: none; }

.horo-faq-item summary::before {
  content: '▸ ';
  color: var(--tan-dim);
}

.horo-faq-item[open] summary::before {
  content: '▾ ';
}

.horo-faq-item p {
  padding: .5rem 1rem .8rem;
  margin: 0;
  color: var(--tan);
  font-size: .92rem;
  line-height: 1.5;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .horo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: .7rem;
  }
  .horo-grid-bottom {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 500px) {
  .horo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .horo-grid-bottom {
    grid-template-columns: repeat(3, 1fr);
  }
  .horo-sign-card {
    float: none;
    width: 50%;
    margin: 0 auto 1rem;
  }
  .horo-sign-h1 {
    font-size: 1.3rem;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Homepage
   ═══════════════════════════════════════════════════════════════════════════ */

.home-welcome {
  text-align: center;
  padding: 2rem 0 1.5rem;
}
.home-welcome h2 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--gold-light);
  margin-bottom: .6rem;
}
.home-welcome p {
  color: var(--tan);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Game cards ───────────────────────────────────────────────────────── */
.home-games {
  padding: 1rem 0 2rem;
}
.home-games > h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--tan-light);
  text-align: center;
  margin-bottom: 1.2rem;
}
.home-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.home-game-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-content);
  border: 1px solid var(--border-brown);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.home-game-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
}
.home-game-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  background: #000;
}
.home-game-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.home-game-card:hover .home-game-img img {
  transform: scale(1.05);
}
.home-game-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.home-game-info h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: .4rem;
}
.home-game-info p {
  color: var(--tan-dim);
  font-size: .88rem;
  line-height: 1.5;
  flex: 1;
  margin-bottom: .8rem;
}
.home-game-btn {
  display: inline-block;
  align-self: flex-start;
  padding: .35rem 1.2rem;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  background: var(--crimson);
  border-radius: var(--radius);
  transition: background var(--t);
}
.home-game-card:hover .home-game-btn {
  background: var(--crimson-dim);
}

/* ── SEO text ─────────────────────────────────────────────────────────── */
.home-seo {
  padding: 2rem 0;
  border-top: 1px solid var(--border-brown);
  margin-top: 1rem;
}
.home-seo h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--tan-light);
  margin-bottom: .8rem;
}
.home-seo p {
  color: var(--tan-dim);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: .7rem;
}
.home-seo p strong {
  color: var(--tan);
}

/* ── Homepage responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .home-games-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .home-game-card {
    flex-direction: row;
  }
  .home-game-img {
    width: 40%;
    min-width: 140px;
    aspect-ratio: auto;
  }
  .home-game-info {
    width: 60%;
  }
  .home-welcome h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .home-game-card {
    flex-direction: column;
  }
  .home-game-img {
    width: 100%;
    aspect-ratio: 2 / 1;
  }
  .home-game-info {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Cookie consent banner
   ═══════════════════════════════════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  border-top: 1px solid var(--border-brown);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem;
  animation: cookieSlideUp .4s ease;
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner-hide {
  animation: cookieSlideDown .3s ease forwards;
}
@keyframes cookieSlideDown {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; pointer-events: none; }
}
.cookie-banner-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.cookie-banner-inner p {
  flex: 1;
  min-width: 200px;
  color: var(--tan);
  font-size: .85rem;
  line-height: 1.5;
  margin: 0;
}
.cookie-banner-inner a {
  color: var(--gold-light);
  text-decoration: underline;
  white-space: nowrap;
}
.cookie-banner-actions {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: .45rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t), color var(--t);
}
.cookie-btn-accept {
  background: var(--crimson);
  color: #fff;
}
.cookie-btn-accept:hover {
  background: #b82506;
}
.cookie-btn-reject {
  background: transparent;
  color: var(--tan-dim);
  border: 1px solid var(--border-brown);
}
.cookie-btn-reject:hover {
  color: var(--tan-light);
  border-color: var(--tan-dim);
}

.cookie-btn-config {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold-light);
}
.cookie-btn-config:hover {
  background: rgba(255,215,0,.1);
}

/* Config panel */
.cookie-cfg {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.cookie-cfg-open {
  max-height: 400px;
  padding-top: .8rem;
}
.cookie-cfg-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  border-top: 1px solid var(--border-brown);
  padding-top: .8rem;
}
.cookie-cfg-inner h3 {
  color: var(--tan-light);
  font-size: .9rem;
  margin: 0 0 .6rem;
}
.cookie-cfg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cookie-cfg-info {
  flex: 1;
}
.cookie-cfg-info strong {
  color: var(--tan-light);
  font-size: .82rem;
}
.cookie-cfg-desc {
  display: block;
  color: var(--tan-dim);
  font-size: .75rem;
  line-height: 1.4;
  margin-top: .1rem;
}
.cookie-cfg-always {
  color: var(--tan-dim);
  font-size: .72rem;
  font-style: italic;
  white-space: nowrap;
}
.cookie-cfg-actions {
  padding-top: .6rem;
  text-align: right;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #444;
  border-radius: 22px;
  cursor: pointer;
  transition: background .25s;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--crimson);
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(18px);
}

/* Cookie preferences button (floating) */
.cookie-prefs-btn {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 9998;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-brown);
  border-radius: 50%;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: .6;
  transition: opacity var(--t);
}
.cookie-prefs-btn:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .cookie-cfg-item {
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Legal pages
   ═══════════════════════════════════════════════════════════════════════════ */

.legal-content {
  line-height: 1.8;
  color: var(--tan);
}
.legal-content h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin: 2rem 0 .6rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--border-brown);
}
.legal-content h3 {
  font-size: 1rem;
  color: var(--tan-light);
  margin: 1.5rem 0 .4rem;
}
.legal-content p {
  margin-bottom: .8rem;
  font-size: .92rem;
}
.legal-content ul,
.legal-content ol {
  margin: .5rem 0 1rem 1.5rem;
  font-size: .92rem;
}
.legal-content li {
  margin-bottom: .4rem;
}
.legal-content a {
  color: var(--gold-light);
  text-decoration: underline;
}
.legal-content a:hover {
  color: #fff;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: .88rem;
}
.legal-table th,
.legal-table td {
  border: 1px solid var(--border-brown);
  padding: .5rem .7rem;
  text-align: left;
}
.legal-table th {
  background: rgba(255,255,255,.04);
  color: var(--tan-light);
  font-weight: 600;
}
.legal-table td {
  color: var(--tan-dim);
}
