/* =====================================================
   VILLAGGIOVILLAMARINA — Casino pages shared CSS
   ===================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

/* ---- Page layout ---- */
.et_pb_section.cs-hero-section,
.et_pb_section.cs-hero-section.et_pb_with_background { background: #1a3a4a !important; padding: 16px 20px 14px !important; }
.et_pb_section.cs-list-section,
.et_pb_section.cs-list-section.et_pb_with_background { background: #f4f7f9 !important; padding: 20px 20px 28px !important; }
.et_pb_section.cs-content-section { background: #fff; padding: 36px 20px; }
.et_pb_row { max-width: 900px; margin: 0 auto; }

/* ---- Hero — compact ---- */
.cs-badge-pill {
  display: inline-block; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3); border-radius: 20px;
  padding: 3px 12px; font-size: 11px; color: #fff;
  letter-spacing: .5px; margin-bottom: 10px;
}
.cs-hero-section h1 {
  color: #fff; font-size: clamp(1.15rem, 3.5vw, 1.55rem);
  font-weight: 700; line-height: 1.25; margin: 6px 0 6px;
}
.cs-hero-section p.cs-intro {
  color: rgba(255,255,255,.85); font-size: .95rem;
  margin: 0; line-height: 1.5; max-width: 660px;
}
.cs-hero-updated {
  font-size: .78rem; color: rgba(255,255,255,.55); margin-top: 6px;
}

/* ---- Toplist section ---- */
.cs-list-section h2 {
  font-size: 1.15rem; font-weight: 700; color: #1a3a4a;
  margin: 0 0 14px; text-align: center;
}

/* ---- Notice ---- */
.cs-notice {
  background: #fff9e0; border: 1px solid #e8d560;
  border-radius: 6px; padding: 10px 14px; font-size: .8rem;
  color: #5a4800; margin-bottom: 16px; line-height: 1.5;
}

/* ========================================================
   CASINO CARDS
   ======================================================== */
.cc-card {
  background: #fff; border: 1px solid #dce3e8;
  border-radius: 10px; margin-bottom: 12px;
  overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
}
.cc-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); transform: translateY(-1px); }

/* RANK badge */
.cc-rank {
  width: 52px; min-height: 52px;
  background: #1a3a4a; color: #fff;
  font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0;
}
@media (min-width: 600px) { .cc-rank { min-height: 100%; border-radius: 0; } }

/* Top-2 ranks highlighted */
.cc-card:nth-child(1) .cc-rank { background: #c8960a; }
.cc-card:nth-child(2) .cc-rank { background: #3a7a94; }

/* Body */
.cc-body { display: flex; flex-direction: column; flex: 1; }

/* Head */
.cc-head { padding: 12px 14px 8px; flex: 1; }
.cc-badge {
  display: inline-block; background: #e8f4f8;
  color: #1a3a4a; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 3px;
  letter-spacing: .5px; margin-bottom: 4px;
  text-transform: uppercase;
}
.cc-name { font-size: 1.05rem; font-weight: 700; color: #1a3a4a; margin: 2px 0 4px; }
.cc-bonus { font-size: .92rem; color: #2a7a2a; font-weight: 600; margin-bottom: 4px; }
.cc-meta { font-size: .78rem; color: #666; line-height: 1.4; }

/* ---- Actions (pros + CTA) — single block, responsive via flex ---- */
.cc-actions {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding: 10px 14px 14px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}
.cc-pros { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; min-width: 140px; }
.cc-pro {
  font-size: .74rem; color: #2a5a2a;
  background: #edfaed; border-radius: 3px;
  padding: 2px 7px;
}
.cc-pro::before { content: "✓ "; font-weight: 700; }

/* CTA button */
.cc-cta {
  display: inline-block; background: #2a6478; color: #fff !important;
  text-decoration: none !important; font-weight: 700; font-size: .88rem;
  padding: 9px 18px; border-radius: 6px; white-space: nowrap;
  transition: background .15s; text-align: center;
  min-width: 130px;
}
.cc-cta:hover { background: #1d4a5a !important; }

/* Mobile: stack rank + body + actions vertically */
@media (max-width: 599px) {
  .cc-card { display: block; }
  .cc-rank {
    width: 100%; min-height: 32px; font-size: .9rem;
    border-radius: 0; text-align: center;
    display: flex; align-items: center; justify-content: flex-start;
    padding: 0 12px; gap: 8px;
  }
  .cc-rank::after { content: attr(data-name); font-size: .85rem; font-weight: 600; }
  .cc-actions { flex-direction: column; align-items: stretch; }
  .cc-cta { width: 100%; text-align: center; padding: 11px; font-size: .95rem; }
  .cc-head { padding: 10px 12px 6px; }
}

/* Desktop: rank | body | actions in a row, actions vertically centered */
@media (min-width: 600px) {
  .cc-card {
    display: flex;
    align-items: stretch;
  }
  .cc-rank {
    flex: 0 0 52px;
    display: flex; align-items: center; justify-content: center;
  }
  .cc-body { flex: 1; display: flex; flex-direction: column; }
  .cc-actions {
    flex: 0 0 220px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: none;
    border-left: 1px solid #f0f0f0;
    background: #fff;
    gap: 8px;
  }
  .cc-actions .cc-pros { flex-direction: column; align-items: center; }
}

/* ---- Comparison table ---- */
.cs-table {
  width: 100%; border-collapse: collapse;
  font-size: .85rem; margin: 16px 0 0;
}
.cs-table th {
  background: #1a3a4a; color: #fff;
  padding: 9px 12px; text-align: left; font-size: .8rem;
}
.cs-table td { padding: 9px 12px; border-bottom: 1px solid #eee; }
.cs-table tr:nth-child(even) td { background: #f8fafc; }
.cs-table tr:hover td { background: #eef5f9; }
@media (max-width: 520px) {
  .cs-table { font-size: .75rem; }
  .cs-table th, .cs-table td { padding: 7px 8px; }
}

/* ---- Content section ---- */
.cs-content-section h2 {
  font-size: 1.25rem; font-weight: 700; color: #1a3a4a;
  margin: 32px 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid #e8eef2;
}
.cs-content-section h2:first-child { margin-top: 0; }
.cs-content-section h3 { font-size: 1rem; color: #2a6478; margin: 18px 0 8px; font-weight: 700; }
.cs-content-section p { color: #444; line-height: 1.75; margin-bottom: 14px; }
.cs-content-section ul, .cs-content-section ol { padding-left: 22px; margin-bottom: 14px; }
.cs-content-section li { color: #444; line-height: 1.65; margin-bottom: 6px; }

/* Pro/contro */
.cs-procontro { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0; }
@media (max-width: 520px) { .cs-procontro { grid-template-columns: 1fr; } }
.cs-pro { background: #f0faf0; border: 1px solid #b5dcb5; border-radius: 6px; padding: 14px; }
.cs-pro h4 { color: #2a6a2a; margin-bottom: 10px; font-size: .9rem; }
.cs-contro { background: #fff5f5; border: 1px solid #f0b5b5; border-radius: 6px; padding: 14px; }
.cs-contro h4 { color: #9a2020; margin-bottom: 10px; font-size: .9rem; }
.cs-pro ul, .cs-contro ul { padding-left: 16px; margin: 0; }
.cs-pro li { color: #2a5a2a; font-size: .85rem; margin-bottom: 4px; }
.cs-contro li { color: #802020; font-size: .85rem; margin-bottom: 4px; }

/* FAQ */
details.cs-faq {
  border: 1px solid #dce3e8; border-radius: 6px;
  margin-bottom: 10px; overflow: hidden;
}
summary.cs-faq {
  background: #f4f7f9; padding: 13px 16px;
  font-weight: 600; font-size: .9rem; color: #1a3a4a;
  cursor: pointer; list-style: none;
}
summary.cs-faq::-webkit-details-marker { display: none; }
summary.cs-faq::after { content: " ＋"; float: right; color: #2a6478; }
details[open] summary.cs-faq::after { content: " －"; }
.cs-faq-body { padding: 12px 16px; font-size: .88rem; color: #444; line-height: 1.7; }

/* Quickbox */
.cs-quickbox {
  background: #fff; border: 2px solid #2a6478; border-radius: 8px;
  padding: 14px 18px; margin-bottom: 16px;
}
.cs-quickbox h3 { font-size: .95rem; color: #1a3a4a; margin: 0 0 10px; }
.cs-quickbox ol { padding-left: 18px; margin: 0; }
.cs-quickbox li { font-size: .88rem; color: #333; margin-bottom: 5px; line-height: 1.4; }

/* ---- Editorial verdict (effort signal) ---- */
.cc-verdict {
  font-size: .8rem; color: #3a5a6a; font-style: italic;
  border-left: 3px solid #2a6478; padding: 5px 10px;
  margin: 6px 14px 0; background: #f0f7fa; border-radius: 0 4px 4px 0;
  line-height: 1.5;
}
.cc-verdict strong { font-style: normal; color: #1a3a4a; }

/* ---- Methodology box ---- */
.cs-methodology {
  background: #fff; border: 1px solid #d0e8f0;
  border-radius: 8px; padding: 18px 20px; margin: 24px 0;
}
.cs-methodology h3 { color: #1a3a4a; font-size: .95rem; margin: 0 0 10px; }
.cs-methodology ol { padding-left: 18px; margin: 0; }
.cs-methodology li { font-size: .85rem; color: #444; margin-bottom: 7px; line-height: 1.5; }
.cs-methodology li strong { color: #1a3a4a; }

/* ---- Editor pick badge ---- */
.cc-editor-pick {
  display: inline-block; background: #c8960a; color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 3px; letter-spacing: .4px; margin-left: 6px;
  vertical-align: middle; text-transform: uppercase;
}

/* ---- Casino screenshots ---- */
.cc-screenshot {
  display: block; width: 100%; max-width: 220px;
  height: auto; border-radius: 6px;
  border: 1px solid #dce3e8;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  margin-bottom: 10px;
}
@media (max-width: 599px) { .cc-screenshot { display: none; } }

/* ---- Screenshot gallery (below table) ---- */
.cs-screenshot-gallery {
  margin: 28px 0 16px;
  padding: 20px; background: #f8fafc;
  border: 1px solid #dce3e8; border-radius: 8px;
}
.cs-screenshot-gallery h3 { font-size: .95rem; color: #1a3a4a; margin: 0 0 8px; }
.cs-screenshot-intro { font-size: .82rem; color: #555; margin-bottom: 16px; line-height: 1.5; }
.cs-screenshot-item {
  display: inline-block; vertical-align: top;
  width: calc(33.3% - 12px); margin: 0 6px 16px;
}
.cs-screenshot-item img {
  width: 100%; height: auto; border-radius: 6px;
  border: 1px solid #dce3e8;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.cs-screenshot-caption { font-size: .78rem; color: #555; margin-top: 5px; text-align: center; }
@media (max-width: 680px) {
  .cs-screenshot-item { width: calc(50% - 8px); margin: 0 4px 12px; }
}
@media (max-width: 420px) {
  .cs-screenshot-item { width: 100%; margin: 0 0 12px; }
}
