/* Merhabet Casino - Dark theme (reference) */
:root {
  --bg-dark: #1A1F36;
  --bg-card: #232946;
  --bg-card-hover: #2a3055;
  --text: #ffffff;
  --text-muted: #a0aec0;
  --accent-gold: #E5B318;
  --accent-gold-hover: #f0c430;
  --accent-gold-dim: #b8920f;
  --accent-red: #c53030;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 10px;
  --radius-sm: 6px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
}

/* ----- Header ----- */
.site-header {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo .logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--accent-gold); }

/* Burger button - hidden on desktop */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 102;
  position: relative;
}
.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lang-btn {
  background: var(--accent-red);
  color: var(--text);
  border: none;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--text); }
.btn-primary {
  background: var(--accent-gold);
  color: #1a1a1a;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.btn-primary:hover { background: var(--accent-gold-hover); }

/* ----- Hero (Welcome bonus) ----- */
.hero {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 3rem 2rem;
  background: var(--bg-card) linear-gradient(135deg, rgba(26, 31, 54, 0.92) 0%, rgba(35, 41, 70, 0.95) 100%), url("../images/hero-bg.jpg") center / cover no-repeat;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(229, 179, 24, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
}
.hero .bonus-amount {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--accent-gold);
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
  position: relative;
}
.hero .btn-primary {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  position: relative;
}

/* ----- Feature cards ----- */
.feature-cards {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: background 0.2s, border-color 0.2s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(229, 179, 24, 0.2);
}
.feature-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: rgba(229, 179, 24, 0.15);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--text);
}
.feature-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ----- Game filters (tabs) ----- */
.game-filters {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.game-filters a,
.game-filters span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
}
.game-filters a:hover {
  background: var(--bg-card-hover);
  border-color: rgba(229, 179, 24, 0.3);
}
.game-filters .active {
  background: var(--accent-gold);
  color: #1a1a1a;
  border-color: var(--accent-gold);
}

/* ----- Main content wrapper ----- */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

main section {
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
main section:last-of-type { border-bottom: none; }

main section h2 {
  color: var(--text);
  margin: 0 0 1rem;
  font-size: 1.5rem;
  border-bottom: none;
  padding-bottom: 0;
}
main section h2 .accent { color: var(--accent-gold); }
main section h3 {
  color: var(--text-muted);
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
}
main section p, main section li {
  color: var(--text-muted);
}
main section a {
  color: var(--accent-gold);
  text-decoration: none;
}
main section a:hover { text-decoration: underline; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
th, td {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: left;
}
th {
  background: var(--bg-card);
  color: var(--accent-gold);
  font-weight: 600;
}
tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
tr:hover { background: rgba(255, 255, 255, 0.04); }
td { color: var(--text-muted); }

/* Lists */
dl { margin: 0.5rem 0; }
dt {
  font-weight: 700;
  margin-top: 1rem;
  color: var(--text);
}
dd {
  margin: 0.25rem 0 0 1rem;
  color: var(--text-muted);
}

/* CTA section */
.cta {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 2rem 0;
}
.cta h2 { margin-bottom: 0.5rem; }
.cta p { margin: 0.5rem 0 1rem; color: var(--text-muted); }
.cta .buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta .buttons a { margin: 0; }

/* Warning / responsible gaming */
.warning {
  background: rgba(229, 179, 24, 0.08);
  padding: 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent-gold);
  margin: 1.5rem 0;
}
.warning h2 { color: var(--accent-gold); }
.warning p, .warning li { color: var(--text-muted); }

/* FAQ */
.faq-item {
  margin: 1rem 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
}

/* Check list */
ul.check-list {
  list-style: none;
  padding-left: 0;
}
ul.check-list li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}
ul.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

/* ----- Content blocks: two-column, highlight, steps ----- */
.block-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}
.block-two-col.reverse .col-image { order: 2; }
.block-two-col.reverse .col-text { order: 1; }
.block-two-col .col-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.block-two-col .col-image img {
  width: 100%;
  height: auto;
  display: block;
}
.block-two-col .col-text h2 { margin-top: 0; }

.highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--accent-gold);
}
.highlight-box h3 { margin-top: 0; color: var(--accent-gold); }

.steps-block {
  counter-reset: step;
  margin: 2rem 0;
}
.steps-block li {
  list-style: none;
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: 1.25rem;
  color: var(--text-muted);
}
.steps-block li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--accent-gold);
  color: #1a1a1a;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps-block li strong { color: var(--text); }

/* ----- Section with category icons ----- */
.game-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.game-cat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.game-cat-item:hover {
  border-color: rgba(229, 179, 24, 0.3);
  transform: translateY(-2px);
}
.game-cat-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
  display: block;
}
.game-cat-item h3 { margin: 0 0 0.5rem; font-size: 1rem; color: var(--text); }
.game-cat-item p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

/* ----- Game grid (thumbnails) ----- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.game-grid-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s, transform 0.2s;
}
.game-grid-item:hover {
  border-color: var(--accent-gold);
  transform: scale(1.02);
}
.game-grid-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.game-grid-item span {
  display: block;
  padding: 0.5rem 0.6rem;
  font-size: 0.8rem;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----- Bonus / promo image row ----- */
.bonus-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.bonus-row img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 1;
  object-fit: cover;
}
@media (max-width: 700px) {
  .bonus-row { grid-template-columns: repeat(2, 1fr); }
}

/* ----- Tournament / promo block with image ----- */
.promo-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow: hidden;
}
.promo-block .promo-image {
  border-radius: var(--radius);
  overflow: hidden;
}
.promo-block .promo-image img {
  width: 100%;
  height: auto;
  display: block;
}
.promo-block .promo-text h3 { margin-top: 0; color: var(--accent-gold); }

/* ----- Info cards row (payment, mobile, etc.) ----- */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.info-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
  display: block;
}
.info-card h3 { margin: 0 0 0.5rem; font-size: 1rem; color: var(--text); }
.info-card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* ----- Partners / trust block ----- */
.partners-block {
  text-align: center;
  padding: 2rem 0;
  margin: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners-block p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.partners-block img {
  max-width: 100%;
  height: auto;
  opacity: 0.9;
}

/* ----- Loot / extra promo strip ----- */
.loot-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.loot-strip img {
  height: 80px;
  width: auto;
  object-fit: contain;
}
.loot-strip .loot-text { color: var(--text-muted); font-size: 0.95rem; }

/* Image strip (e.g. Neden Merhabet) */
.image-strip {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  justify-content: center;
}
.image-strip img {
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* Footer */
footer {
  margin-top: 2rem;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
footer hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}
footer h3 { color: var(--text); margin-top: 0; }
footer a { color: var(--accent-gold); }

/* Nav overlay wrapper - desktop: inline; mobile: fullscreen */
.nav-overlay {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ----- Mobile: burger and nav overlay ----- */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    z-index: 101;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
  }
  .site-header.nav-open .nav-overlay {
    display: flex;
  }
  .site-header.nav-open .main-nav {
    flex-direction: column;
  }
  .site-header.nav-open .main-nav a {
    font-size: 1.2rem;
    padding: 0.5rem 0;
  }
  .site-header.nav-open .header-actions {
    flex-direction: column;
    margin-top: 0.5rem;
  }
  .site-header.nav-open .header-actions .btn-ghost,
  .site-header.nav-open .header-actions .btn-primary {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }
  .header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .hero { padding: 1.5rem 1rem; }
  .feature-cards { grid-template-columns: 1fr; }
  .block-two-col,
  .promo-block { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 769px) {
  .nav-overlay { display: flex !important; }
}
