/*
Theme Name: Bastist
Theme URI: https://bastist.org
Author: Bastist
Description: Egyedi WordPress-téma a Bastist dominóklub és -verseny számára. Hat oldalt tartalmaz: Kezdőlap, Versenyek, Klubtagság, Kapcsolat, Szolgáltatási feltételek és Adatvédelmi irányelvek, saját oldalsablonokkal és automatikus telepítéssel a téma aktiválásakor.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bastist
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Libre+Franklin:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #1a0f12;
  --bg-secondary: #231318;
  --bg-card: #2b171d;
  --bg-elevated: #351d24;
  --wine: #a13146;
  --wine-bright: #c14257;
  --brass: #c8a24a;
  --brass-bright: #e0bd6a;
  --emerald: #2f7d5b;
  --emerald-bright: #3f9b72;
  --ivory: #f0e6d2;
  --text-primary: #f2e9dc;
  --text-secondary: #bcaa9a;
  --text-muted: #7c6a5e;
  --border-subtle: rgba(240, 230, 210, 0.10);
  --border-strong: rgba(200, 162, 74, 0.4);
  --max-width: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Libre Franklin', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: radial-gradient(ellipse at top, rgba(200, 162, 74, 0.06) 0%, transparent 55%);
  background-attachment: fixed;
}

a { color: var(--brass-bright); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--wine-bright); }

img { max-width: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============ PIP DIVIDER (signature element) ============ */
.pip-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.8rem 0;
}
.pip-divider::before,
.pip-divider::after {
  content: '';
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}
.pip-divider .pips { display: flex; gap: 6px; }
.pip-divider .pips span { width: 8px; height: 8px; border-radius: 50%; background: var(--ivory); }
.pip-divider .pips span:nth-child(2) { background: var(--brass-bright); }

/* ============ HEADER ============ */
.site-header {
  background: rgba(26, 15, 18, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  color: var(--ivory);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.logo .logo-mark { width: 22px; height: 30px; flex-shrink: 0; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.7rem;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0;
}
.main-nav a:hover, .main-nav a.active { color: var(--brass-bright); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 100%; height: 2px;
  background: var(--wine);
}
.header-cta {
  display: inline-block;
  background: var(--wine);
  color: var(--ivory);
  padding: 0.6rem 1.3rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
.header-cta:hover { background: var(--wine-bright); color: #fff; }

/* ============ HERO ============ */
.hero {
  padding: 4.5rem 2rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-eyebrow {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.78rem;
  color: var(--brass-bright);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-bottom: 1.3rem;
  font-weight: 600;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  line-height: 1.12;
  margin-bottom: 1.4rem;
  color: var(--ivory);
}
.hero h1 em { font-style: italic; color: var(--brass-bright); }
.hero-lead { font-size: 1.08rem; color: var(--text-secondary); max-width: 500px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { border-radius: 6px; overflow: hidden; border: 1px solid var(--border-subtle); box-shadow: 0 24px 55px rgba(0,0,0,0.5); aspect-ratio: 4/5; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ============ PAGE TITLE ============ */
.page-title-section { padding: 4rem 2rem 2.5rem; max-width: var(--max-width); margin: 0 auto; }
.page-title-section .eyebrow {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.78rem;
  color: var(--brass-bright);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-bottom: 1.1rem;
  font-weight: 600;
}
.page-title-section h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 1.2rem;
  color: var(--ivory);
}
.page-title-section p { color: var(--text-secondary); max-width: 640px; font-size: 1.02rem; }

/* ============ MAIN ============ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem 5rem; }
section { margin-bottom: 4rem; }

h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 2.2rem;
  letter-spacing: 0;
  margin-bottom: 1.4rem;
  color: var(--ivory);
}
h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.4rem; margin-bottom: 0.7rem; color: var(--ivory); }
p { margin-bottom: 1.1rem; color: var(--text-secondary); }
ul, ol { margin: 0 0 1.4rem 1.4rem; color: var(--text-secondary); }
li { margin-bottom: 0.5rem; }
strong { color: var(--brass-bright); font-weight: 600; }

/* ============ ICON SECTIONS ============ */
.icon-section { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 2.5rem; }
.icon-section .isec-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  color: var(--brass-bright);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px;
}
.icon-section h2 { margin-bottom: 0.6rem; }
.icon-section p:last-child { margin-bottom: 0; }

/* ============ PHOTO SECTIONS ============ */
.photo-section { border-radius: 6px; overflow: hidden; margin: 2rem 0; border: 1px solid var(--border-subtle); box-shadow: 0 18px 44px rgba(0,0,0,0.4); }
.photo-section img { width: 100%; height: auto; }
.split-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin: 2rem 0;
}
@media (max-width: 800px) { .split-photo-grid { grid-template-columns: 1fr; } }
.split-photo-grid .photo-wrap { border-radius: 6px; overflow: hidden; border: 1px solid var(--border-subtle); box-shadow: 0 18px 44px rgba(0,0,0,0.4); aspect-ratio: 4/3; }
.split-photo-grid .photo-wrap.portrait { aspect-ratio: 4/5; }
.split-photo-grid .photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.split-photo-grid.reverse { direction: rtl; }
.split-photo-grid.reverse > * { direction: ltr; }

/* ============ FEATURE CARDS ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
  margin: 2rem 0;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.8rem;
  transition: all 0.25s ease;
}
.feature-card:hover { border-color: var(--border-strong); background: var(--bg-elevated); transform: translateY(-3px); }
.feature-card .feat-icon { width: 38px; height: 38px; margin-bottom: 1rem; color: var(--brass-bright); }
.feature-card:nth-child(2n) .feat-icon { color: var(--emerald-bright); }
.feature-card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.93rem; margin-bottom: 0; }

/* ============ TOURNAMENT CARDS ============ */
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin: 2rem 0;
}
.tournament-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.8rem;
  border-left: 3px solid var(--brass);
  transition: all 0.25s ease;
}
.tournament-card:nth-child(2n) { border-left-color: var(--wine); }
.tournament-card:hover { background: var(--bg-elevated); transform: translateY(-3px); }
.tournament-card .tag {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.7rem;
  color: var(--brass-bright);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.tournament-card:nth-child(2n) .tag { color: var(--wine-bright); }
.tournament-card h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.tournament-card p { font-size: 0.92rem; margin-bottom: 0; }

/* ============ CHECK LIST ============ */
.check-list { list-style: none; margin: 1.5rem 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.9rem;
  color: var(--text-secondary);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brass);
}

/* ============ INFO / QUOTE ============ */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--brass);
  border-radius: 6px;
  padding: 1.6rem 2rem;
  margin: 2rem 0;
}
.info-box h3 { color: var(--brass-bright); font-size: 1.4rem; margin-bottom: 0.5rem; }
.info-box p:last-child { margin-bottom: 0; }

.pull-quote {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.85rem;
  color: var(--brass-bright);
  text-align: center;
  padding: 2.4rem 1rem;
  max-width: 740px;
  margin: 2rem auto;
  line-height: 1.4;
}

/* ============ CTA ============ */
.cta-button {
  display: inline-block;
  background: var(--brass);
  color: var(--bg-primary);
  padding: 0.85rem 1.9rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
}
.cta-button:hover { background: var(--brass-bright); color: var(--bg-primary); }
.cta-button-outline { background: transparent; color: var(--ivory); border: 1px solid var(--border-strong); }
.cta-button-outline:hover { background: var(--bg-elevated); color: var(--brass-bright); }

/* ============ CONTACT / FORM ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin: 2rem 0; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-photo-wrap { border-radius: 6px; overflow: hidden; border: 1px solid var(--border-subtle); box-shadow: 0 18px 44px rgba(0,0,0,0.4); aspect-ratio: 16/10; margin-bottom: 2rem; }
.contact-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.contact-info dt {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.contact-info dd { color: var(--ivory); font-size: 1rem; margin-left: 0; }
.contact-form { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--ivory);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--brass); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ============ LEGAL ============ */
.toc { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 1.5rem 2rem; margin-bottom: 3rem; }
.toc h3 { font-family: 'Libre Franklin', sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 1rem; font-weight: 600; }
.toc ol { margin: 0; padding-left: 1.4rem; }
.toc li { margin-bottom: 0.4rem; }
.toc a { color: var(--text-secondary); }
.toc a:hover { color: var(--brass-bright); }

.legal-content h2 { font-size: 1.7rem; margin-top: 2.8rem; margin-bottom: 1rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.2rem; margin-top: 1.6rem; margin-bottom: 0.5rem; color: var(--brass-bright); }
.legal-content p, .legal-content li { font-size: 0.96rem; line-height: 1.75; }

/* ============ FOOTER ============ */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); padding: 3.5rem 2rem 2rem; margin-top: 4rem; }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-col h4 {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.78rem;
  color: var(--brass-bright);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.1rem;
  font-weight: 700;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--brass-bright); }
.footer-col p { font-size: 0.9rem; color: var(--text-secondary); }
.footer-brand .logo { margin-bottom: 0.8rem; }
.footer-note { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; margin-top: 1rem; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 2.8rem auto 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.83rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 700px) {
  .header-inner { padding: 1rem 1.2rem; }
  .hero { padding: 3rem 1.2rem 2rem; }
  .container { padding: 0 1.2rem 3rem; }
  .page-title-section { padding: 2.5rem 1.2rem 1.5rem; }
  .main-nav ul { gap: 1rem; }
  .main-nav a { font-size: 0.82rem; }
  h2 { font-size: 1.8rem; }
  .icon-section { flex-direction: column; gap: 1rem; }
}
