/* Luckytreeveryday.com – Jardin de la Chance – Thème "Sad udachi" */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0;500;600;700;1;500&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #0d1f0d;
  --bg-secondary: #142814;
  --bg-card: #1a3320;
  --text-primary: #e8f0e4;
  --text-secondary: #a8c4a0;
  --accent: #7cb86c;
  --accent-light: #9dd68d;
  --accent-gold: #c9a227;
  --gold-soft: #e5d4a1;
  --border: rgba(124, 184, 108, 0.25);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 184, 108, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(201, 162, 39, 0.05) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--accent-gold);
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 31, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.logo-text span {
  color: var(--accent);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-desktop a:hover {
  color: var(--accent-light);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 6px;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Burger menu overlay */
.burger-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 31, 13, 0.98);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.burger-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.burger-menu a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.burger-menu a:hover {
  color: var(--accent-gold);
}

/* Main */
.main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0 4rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero h1 .brand {
  color: var(--accent);
}

.hero-visual {
  text-align: center;
}

.hero-visual img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  margin-top: 2rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero-feature::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* Section titles */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* Partner cards */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(124, 184, 108, 0.4);
}

.partner-rank {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
}

.partner-card .partner-logo-wrap {
  width: 160px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.partner-card .partner-logo-wrap img {
  width: 160px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.partner-card .partner-logo-wrap--large {
  width: 200px;
  height: 60px;
}

.partner-card .partner-logo-wrap--large img {
  width: 200px;
  height: 200px;
}

.partner-bonus {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.partner-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.partner-points {
  list-style: none;
  margin-bottom: 1rem;
}

.partner-points li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.partner-points li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.partner-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--gold-soft);
  font-size: 0.9rem;
}

.partner-cta {
  display: inline-block;
  text-align: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), #5a9a4d);
  color: var(--bg-primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: auto;
}

.partner-cta:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(124, 184, 108, 0.4);
  color: var(--bg-primary);
}

.partner-disclaimer {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.9;
  margin-top: 0.75rem;
}

/* Guide section */
.guide {
  margin: 4rem 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.guide-card:hover {
  border-color: rgba(124, 184, 108, 0.4);
}

.guide-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--accent-light);
}

.guide-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Block with optional image */
.block-with-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}

.block-with-img.reverse {
  direction: rtl;
}

.block-with-img.reverse > * {
  direction: ltr;
}

.block-with-img .img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-secondary);
}

.block-with-img .img-wrap img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* Safe gaming block */
.safe-gaming {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin: 3rem 0 2rem;
}

.safe-gaming .section-title {
  margin-bottom: 1rem;
}

.safe-gaming .section-desc {
  margin-bottom: 1.5rem;
}

.safe-gaming-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2rem;
}

.safe-gaming-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
}

.safe-gaming-grid a:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.safe-gaming-grid img {
  width: 80px;
  height: 50px;
  object-fit: contain;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem 2rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-brand .logo-img {
  width: 40px;
  height: 40px;
}

.footer-brand .logo-text {
  font-size: 1.25rem;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-warning {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.85;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
}

.footer-responsible {
  margin-top: 1rem;
}

.footer-responsible h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.footer-responsible p,
.footer-responsible a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.8;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Page inner (subpages) */
.page-hero {
  padding: 2rem 0 1.5rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-secondary);
}

.page-content {
  max-width: 720px;
  margin: 0 auto;
}

.page-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent-light);
}

.page-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.page-content ul {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--text-secondary);
}

/* Cookie / 18+ popup (if needed) */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.popup-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 400px;
  text-align: center;
}

.popup-box p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.popup-box .btn {
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .burger {
    display: flex;
  }

  .block-with-img {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .block-with-img.reverse {
    direction: ltr;
  }

  .block-with-img .img-wrap {
    order: -1;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  .safe-gaming-grid img {
    width: 70px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.75rem 1rem;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .hero {
    padding: 2rem 0 3rem;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
  }
}
