/* =========================================================
   Charge the Clovers — style.css
   Domain: chargetheclovers.org | Geo: RO | Lang: ro
   ========================================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=Open+Sans:wght@400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --bg:          #08150b;
  --bg-alt:      #0e2012;
  --card-bg:     rgba(255,255,255,0.04);
  --card-border: rgba(245,197,24,0.25);
  --gold:        #f5c518;
  --gold-dark:   #c9a000;
  --blue:        #3ab8ff;
  --text:        #cce8d2;
  --text-muted:  #7aaa85;
  --white:       #f0f8f0;
  --font-head:   'Cinzel', Georgia, serif;
  --font-body:   'Open Sans', system-ui, sans-serif;
  --radius:      10px;
  --max-w:       860px;
  --shadow-gold: 0 0 20px rgba(245,197,24,0.35);
  --shadow-blue: 0 0 20px rgba(58,184,255,0.35);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(0,90,20,0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(245,197,24,0.07) 0%, transparent 60%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.4rem; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =========================================================
   POPUP BANNER (CSS Checkbox Hack)
   ========================================================= */
#close-banner { display: none; }

#popup-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(135deg, #0d2e14 0%, #152b10 100%);
  border-top: 2px solid var(--gold);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
}
#close-banner:checked ~ #popup-banner {
  transform: translateY(110%);
  pointer-events: none;
}
.banner-text {
  font-size: 0.9rem;
  color: var(--white);
  text-align: center;
}
.banner-text strong { color: var(--gold); }
.banner-close {
  position: absolute;
  top: 0.4rem;
  right: 0.75rem;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.25rem 0.4rem;
  transition: color 0.2s;
}
.banner-close:hover { color: var(--white); }

/* =========================================================
   HEADER
   ========================================================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,21,11,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245,197,24,0.2);
  padding: 0.7rem 1.25rem;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(245,197,24,0.5);
}
.logo:hover { text-decoration: none; color: #ffe066; }

/* =========================================================
   MAIN H1
   ========================================================= */
main { padding-bottom: 5rem; }

.page-h1-wrap {
  text-align: center;
  padding: 2.5rem 1.25rem 1rem;
}
h1 {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto;
}
h1 span.highlight { color: var(--gold); }

/* =========================================================
   HERO SECTION
   ========================================================= */
#hero {
  padding: 1rem 1.25rem 2rem;
  text-align: center;
}
#hero .hero-img-wrap {
  max-width: 800px;
  margin: 0 auto 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(245,197,24,0.4);
  box-shadow: 0 0 40px rgba(245,197,24,0.2), 0 8px 32px rgba(0,0,0,0.5);
}
#hero img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #f5c518 0%, #c9a000 100%);
  color: #0a1a0e;
  box-shadow: 0 4px 18px rgba(245,197,24,0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245,197,24,0.65);
  text-decoration: none;
  color: #08150b;
}
.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  box-shadow: 0 4px 18px rgba(58,184,255,0.2);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(58,184,255,0.4);
  text-decoration: none;
  color: var(--blue);
}

/* =========================================================
   TABLE OF CONTENTS (Details/Summary)
   ========================================================= */
#toc {
  max-width: var(--max-w);
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}
#toc > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0.75rem 1.1rem;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}
#toc > summary::-webkit-details-marker { display: none; }
#toc > summary::before {
  content: '☘';
  font-size: 1rem;
}
#toc > summary::after {
  content: '▾';
  margin-left: auto;
  transition: transform 0.25s;
}
#toc[open] > summary::after { transform: rotate(-180deg); }
#toc > summary:hover { background: rgba(255,255,255,0.07); }
#toc nav {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1rem 1.5rem;
}
#toc nav ol {
  margin: 0;
  padding-left: 1.3rem;
}
#toc nav li { margin-bottom: 0.45rem; }
#toc nav a {
  color: var(--text);
  font-size: 0.9rem;
}
#toc nav a:hover { color: var(--gold); }

/* =========================================================
   CTA CARD
   ========================================================= */
#cta-card {
  max-width: var(--max-w);
  margin: 0 auto 2.5rem;
  padding: 0 1.25rem;
}
.cta-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(245,197,24,0.1) 0%, rgba(14,32,18,0.95) 60%);
  border: 2px solid rgba(245,197,24,0.4);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-gold);
}
.cta-img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(245,197,24,0.3);
}
.cta-body { flex: 1; }
.cta-body p {
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  color: var(--white);
}
.cta-body strong { color: var(--gold); }

/* =========================================================
   ARTICLE + SECTIONS
   ========================================================= */
article {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
article section {
  margin-bottom: 2.5rem;
}
h2 {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.35;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(245,197,24,0.2);
}
h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue);
  margin: 1.2rem 0 0.6rem;
}
p { margin-bottom: 0.9rem; }
p:last-child { margin-bottom: 0; }

/* Lists */
article ul, article ol {
  margin-bottom: 0.9rem;
}
article li strong { color: var(--gold); }

/* --- Gameplay Image --- */
#gameplay-img {
  text-align: center;
  margin-bottom: 2.5rem;
}
.game-img-wrap {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(58,184,255,0.35);
  box-shadow: 0 0 30px rgba(58,184,255,0.15), 0 8px 32px rgba(0,0,0,0.5);
}
.game-img-wrap img { width: 100%; height: auto; }

/* --- Tables --- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}
table {
  width: 100%;
  min-width: 340px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead tr {
  background: rgba(245,197,24,0.12);
}
thead th {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
}
tbody td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.03); }
td strong { color: var(--gold); }

/* --- FAQ section --- */
#faq .faq-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  margin-bottom: 0.85rem;
  overflow: hidden;
}
#faq details summary {
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  transition: background 0.2s;
}
#faq details summary::-webkit-details-marker { display: none; }
#faq details summary::before {
  content: 'Q';
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
#faq details summary:hover { background: rgba(255,255,255,0.04); }
#faq details[open] summary { border-bottom: 1px solid var(--card-border); }
#faq details .faq-answer {
  padding: 0.85rem 1.1rem 0.85rem 2.1rem;
  font-size: 0.92rem;
  color: var(--text);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  border-top: 1px solid rgba(245,197,24,0.15);
  padding: 2rem 1.25rem 6rem;
  text-align: center;
  background: rgba(0,0,0,0.3);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.2rem;
}
footer nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
footer nav a:hover { color: var(--gold); text-decoration: none; }
footer nav a.footer-play {
  color: var(--gold);
  font-weight: 600;
}

/* =========================================================
   RESPONSIVE — Mobile
   ========================================================= */
@media (max-width: 600px) {
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-img { width: 70px; height: 70px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 280px; text-align: center; }
  h2 { font-size: 1.1rem; }
  #popup-banner { flex-direction: column; padding: 0.75rem 2.5rem 0.75rem 1rem; }
  .banner-close { top: 0.5rem; right: 0.6rem; }
}
@media (max-width: 400px) {
  h1 { font-size: 1.2rem; }
  .logo { font-size: 1rem; }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  #popup-banner, header { display: none; }
  body { background: #fff; color: #000; }
}
