/* ============================
   Toro Loco — style.css
   Geo: Netherlands | Lang: nl
   ============================ */

:root {
  --clr-bg:       #0f0a0a;
  --clr-surface:  #1a0f0f;
  --clr-card:     #231414;
  --clr-red:      #9b1515;
  --clr-red-dark: #6e0d0d;
  --clr-red-glow: #c41e1e;
  --clr-gold:     #c8a951;
  --clr-gold-lt:  #e0c06a;
  --clr-cream:    #f5ede0;
  --clr-text:     #e8ddd0;
  --clr-muted:    #9a8a7a;
  --clr-border:   #3a2020;
  --clr-popup-bg: #1e0d0d;

  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius:   8px;
  --radius-lg: 14px;
  --max-w:    860px;
  --gap:      1.5rem;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.75;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--clr-gold); text-decoration: none; }
a:hover { color: var(--clr-gold-lt); text-decoration: underline; }

/* === POPUP BANNER (CSS checkbox hack) === */
.popup-check { display: none; }

.popup-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.25rem;
  background: var(--clr-popup-bg);
  border-top: 2px solid var(--clr-red);
  box-shadow: 0 -4px 24px rgba(155, 21, 21, 0.35);
}

.popup-check:checked ~ .popup-banner { display: none; }

.popup-text {
  font-size: 0.95rem;
  color: var(--clr-cream);
  font-weight: 600;
}

.popup-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--clr-muted);
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.2s;
}
.popup-close:hover { color: var(--clr-cream); }

/* === HEADER === */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--clr-border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--clr-gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.logo:hover { color: var(--clr-gold-lt); text-decoration: none; }

/* === LAYOUT === */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem 6rem;
}

/* === H1 === */
.page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--clr-gold);
  text-align: center;
  line-height: 1.25;
  padding: 2rem 0 1.5rem;
  text-shadow: 0 2px 12px rgba(200, 169, 81, 0.25);
}

/* === HERO SECTION === */
.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--clr-border);
  box-shadow: 0 8px 40px rgba(155, 21, 21, 0.3);
  margin-bottom: 1.5rem;
  line-height: 0;
}

.hero-img-wrap img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--clr-red);
  color: #fff;
  border: 2px solid var(--clr-red-glow);
  box-shadow: 0 4px 18px rgba(196, 30, 30, 0.4);
}
.btn-primary:hover {
  background: var(--clr-red-glow);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196, 30, 30, 0.55);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--clr-gold);
  border: 2px solid var(--clr-gold);
}
.btn-secondary:hover {
  background: rgba(200, 169, 81, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--clr-gold-lt);
}

/* === TOC === */
.toc {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-red);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  overflow: hidden;
}

.toc summary {
  cursor: pointer;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  color: var(--clr-gold);
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::before {
  content: '▶';
  display: inline-block;
  transition: transform 0.2s;
  font-size: 0.7rem;
  color: var(--clr-red-glow);
}
.toc[open] summary::before { transform: rotate(90deg); }

.toc-list {
  padding: 0.5rem 1.2rem 1rem 2.2rem;
  list-style: none;
  counter-reset: toc;
}
.toc-list li {
  counter-increment: toc;
  padding: 0.2rem 0;
}
.toc-list li::before {
  content: counter(toc) '. ';
  color: var(--clr-red-glow);
  font-weight: 700;
  font-size: 0.85rem;
}
.toc-list a {
  color: var(--clr-text);
  font-size: 0.9rem;
}
.toc-list a:hover { color: var(--clr-gold); }

/* === CTA CARD === */
.cta-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.cta-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
  border: 2px solid var(--clr-border);
}

.cta-body { flex: 1; }

.cta-body h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--clr-gold);
  margin-bottom: 0.4rem;
}

.cta-body p {
  font-size: 0.9rem;
  color: var(--clr-muted);
  margin-bottom: 0.9rem;
}

@media (max-width: 500px) {
  .cta-card { flex-direction: column; text-align: center; }
  .cta-img { width: 100px; height: 100px; }
}

/* === CONTENT SECTIONS === */
.content-section {
  margin-bottom: 2.5rem;
}

.content-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--clr-gold);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--clr-border);
  line-height: 1.3;
}

.content-section p { margin-bottom: 1rem; }

.content-section ul,
.content-section ol {
  padding-left: 1.6rem;
  margin-bottom: 1rem;
}
.content-section li { margin-bottom: 0.4rem; }

.content-section strong { color: var(--clr-gold-lt); }

/* === FAQ === */
.faq-list { list-style: none; padding: 0; }

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

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--clr-cream);
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--clr-surface);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '+';
  color: var(--clr-red-glow);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.2;
  transition: transform 0.2s;
}
.faq-item[open] summary::before { content: '−'; }

.faq-answer {
  padding: 0.9rem 1.2rem 1rem 2.6rem;
  background: var(--clr-card);
  font-size: 0.95rem;
  color: var(--clr-text);
}

/* === GAMEPLAY IMAGE === */
.gameplay-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--clr-border);
  box-shadow: 0 6px 30px rgba(0,0,0,0.5);
  margin: 2.5rem 0;
  line-height: 0;
}
.gameplay-wrap img {
  width: 100%;
  height: auto;
}

/* === TABLE (horizontal scroll) === */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
}
.table-wrapper table {
  min-width: 480px;
  width: 100%;
  border-collapse: collapse;
}
.table-wrapper th,
.table-wrapper td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.9rem;
}
.table-wrapper th {
  background: var(--clr-surface);
  color: var(--clr-gold);
  font-weight: 700;
  white-space: nowrap;
}
.table-wrapper tr:last-child td { border-bottom: none; }
.table-wrapper tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* === DIVIDER === */
.section-divider {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: 2rem 0;
}

/* === FOOTER === */
footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.2rem;
}
.footer-logo:hover { color: var(--clr-gold-lt); text-decoration: none; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.2rem;
  list-style: none;
  margin-bottom: 0;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--clr-muted);
}
.footer-nav a:hover { color: var(--clr-gold); }

/* === RESPONSIVE === */
@media (max-width: 640px) {
  main { padding: 0 1rem 5rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 320px; }
  .popup-banner { padding: 0.75rem 3rem 0.75rem 1rem; }
  .popup-text { font-size: 0.85rem; }
}

@media (min-width: 641px) {
  header { padding: 0.85rem 2rem; }
  main { padding: 0 1.5rem 6rem; }
}
