/* ==========================================================================
   Euro Casino List — simple casino affiliate design
   ========================================================================== */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #eef2f8;
  --ink: #101724;
  --muted: #5b6472;
  --brand: #0e1a2b;
  --brand-2: #16273d;
  --accent: #ffb800;
  --accent-ink: #1a1200;
  --green: #22c55e;
  --border: #e4e8f0;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 6px 24px rgba(16, 23, 36, 0.08);
  --shadow-lg: 0 16px 48px rgba(16, 23, 36, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 820px; }

/* ---- Header ---- */
.site-header {
  background: var(--brand);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 66px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 26px;
  padding: 0 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 6px;
}
.logo-text { color: #fff; }

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  flex: 1;
}
.main-nav a {
  color: #cdd6e4;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.main-nav a.active { color: var(--accent); }

.lang-switch { position: relative; }
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  appearance: none;
  -webkit-appearance: none;
}
.caret { font-size: 0.7rem; }
.lang-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  flex-direction: column;
}
.lang-switch.open .lang-dropdown { display: flex; }
.lang-dropdown a {
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 0.92rem;
}
.lang-dropdown a:hover { background: var(--surface-alt); }
.lang-dropdown a.active { background: var(--brand); color: #fff; }

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255, 184, 0, 0.16), transparent 60%),
    linear-gradient(140deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  padding: 88px 0;
  text-align: center;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  font-weight: 800;
  max-width: 760px;
  margin: 0 auto 18px;
}
.hero-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 20px auto 0;
}
.hero-subtitle {
  font-size: 1.12rem;
  color: #c7d2e2;
  max-width: 640px;
  margin: 0 auto 30px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px rgba(255, 184, 0, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 184, 0, 0.4); }
.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--border);
  margin-top: 28px;
}
.btn-outline:hover { border-color: var(--brand); }

/* ---- Sections ---- */
.section { padding: 56px 0; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 { font-size: 1.65rem; font-weight: 800; }
.section-head p { color: var(--muted); max-width: 640px; margin-top: 6px; }
.section-link { color: var(--brand); font-weight: 700; white-space: nowrap; }
.section-link:hover { color: var(--accent); }
.page-head { display: block; }
.page-head h1 { font-size: 2rem; font-weight: 800; }
.section-count { color: var(--muted); margin-top: 8px; }
.empty { color: var(--muted); padding: 24px 0; }

/* ---- Card grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media {
  aspect-ratio: 16 / 9;
  background: var(--surface-alt);
  overflow: hidden;
  display: block;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
  letter-spacing: 0.5px;
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.card-title { font-size: 1.12rem; font-weight: 800; line-height: 1.3; }
.card-title a:hover { color: var(--accent); }
.card-desc {
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-link { margin-top: auto; font-weight: 700; font-size: 0.92rem; color: var(--brand); }
.card-link:hover { color: var(--accent); }

/* ---- Chips ---- */
.chip {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
}
.chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---- Category grid ---- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.category-name { line-height: 1.25; }
.category-count {
  flex-shrink: 0;
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: 0.82rem;
}

/* ---- Single article ---- */
.single-header {
  background: var(--brand);
  color: #fff;
  padding: 48px 0 44px;
  text-align: center;
}
.single-header .card-meta { justify-content: center; }
.single-header .chip { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #e6edf7; }
.single-header .chip:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.single-title { font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.15; font-weight: 800; margin: 16px 0 12px; }
.single-desc { color: #c7d2e2; max-width: 660px; margin: 0 auto; font-size: 1.05rem; }
.single-meta { color: #9fb0c7; margin-top: 16px; font-size: 0.9rem; }
.single-image { margin: 32px 0 0; }
.single-image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }

.single-body { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
.single-content { font-size: 1.02rem; }
.single-content h2,
.single-content h3 { line-height: 1.3; margin: 1.6em 0 0.6em; font-weight: 800; }
.single-content h2 { font-size: 1.5rem; }
.single-content h3 { font-size: 1.2rem; }
.single-content p { margin: 0 0 1.1em; }
.single-content ul,
.single-content ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.single-content li { margin-bottom: 0.4em; }
.single-content a { color: var(--brand); font-weight: 600; text-decoration: underline; }
.single-content a:hover { color: var(--accent); }
.single-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--surface-alt);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0 0 1.2em;
  color: var(--muted);
}
.single-content img { border-radius: var(--radius); margin: 0 0 1.2em; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 40px;
}
.toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; }
.toc ul { list-style: none; padding-left: 0; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.toc a:hover { color: var(--brand); }
.toc ul ul { padding-left: 16px; margin-top: 4px; }

.faq { margin-top: 44px; }
.faq h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 18px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 20px 18px; color: var(--muted); }

/* ---- Footer ---- */
.site-footer { background: var(--brand); color: #aab6c6; padding: 48px 0 32px; margin-top: 56px; }
.footer-disclaimer p { font-size: 0.88rem; margin-bottom: 12px; max-width: 900px; }
.footer-responsible { color: #7e8b9c; }
.footer-bottom {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

/* ---- 404 ---- */
.notfound { text-align: center; padding: 100px 20px; }
.notfound-code {
  font-size: clamp(5rem, 20vw, 9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 10px 30px rgba(255, 184, 0, 0.35);
}
.notfound h1 { font-size: 1.8rem; font-weight: 800; margin: 16px 0 10px; }
.notfound p { color: var(--muted); max-width: 480px; margin: 0 auto 28px; }
.notfound-langs { margin-top: 28px; color: var(--muted); font-size: 0.9rem; }
.notfound-langs a { color: var(--brand); font-weight: 700; margin: 0 6px; }
.notfound-langs a:hover { color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .header-inner { gap: 14px; height: 60px; }
  .main-nav { gap: 0; margin-left: 0; }
  .main-nav a { padding: 8px 9px; font-size: 0.85rem; }
  .logo-text { font-size: 1rem; }
  .hero { padding: 56px 0; }
  .section { padding: 40px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .card-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .lang-dropdown { right: auto; left: 0; }
}


