/* =============================================
   STYLE.CSS — sephardiconnect.com
   Mobile-first | iGaming portal | Clean & Pro
   ============================================= */

/* ---- BASE ---- */
:root{
  --green:#1a7a4a;
  --green-dark:#145e38;
  --green-light:#e8f5ee;
  --red:#c0392b;
  --red-dark:#a93226;
  --text:#1a1a2e;
  --text-muted:#5a5a72;
  --bg:#f8f9fb;
  --white:#ffffff;
  --border:#e2e6ef;
  --border-light:#f0f2f7;
  --radius:10px;
  --radius-sm:6px;
  --shadow:0 2px 12px rgba(0,0,0,.08);
  --shadow-md:0 4px 20px rgba(0,0,0,.12);
  --font-sans:'Inter',system-ui,sans-serif;
  --font-display:'Poppins',system-ui,sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- LISTING SECTION ---- */
.listing-section {
  background: var(--white);
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--border);
}

.listing-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}

/* ---- CASINO CARD ---- */
.casino-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  transition: box-shadow .2s, transform .2s;
}

.casino-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green);
  color: var(--white);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  z-index: 1;
}

.card-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 36px;
}

.card-brand img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  object-fit: contain;
  background: var(--bg);
  padding: 4px;
  flex-shrink: 0;
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.stars svg {
  width: 15px;
  height: 15px;
  color: #f5a623;
}

.rating-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 4px;
}

.card-bonus {
  background: var(--green-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bonus-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--green-dark);
}

.bonus-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.bonus-wager {
  font-size: 12px;
  color: var(--text-muted);
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.card-features li svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
}

.card-cta {
  display: flex;
  justify-content: center;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--red);
  color: var(--white);
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  transition: background .2s, transform .15s;
  text-decoration: none;
}

.btn-play:hover {
  background: var(--red-dark);
  transform: scale(1.02);
  text-decoration: none;
}

/* ---- MAIN CONTENT ---- */
.main-content {
  padding: 40px 0 48px;
}

.content-wrap {
  max-width: 900px;
}

.content-wrap h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-left: 4px solid var(--green);
  padding-left: 14px;
  line-height: 1.3;
}

.content-wrap h2:first-child {
  margin-top: 0;
}

.content-wrap h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
}

.content-wrap h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 22px 0 8px;
}

.content-wrap p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 14px;
}

.content-wrap ol {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 14px;
}

.content-wrap ol li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 10px;
  padding-left: 4px;
}

.content-wrap ul {
  padding-left: 0;
  margin-bottom: 14px;
}

.content-wrap ul li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}

.content-wrap ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ---- TABLES ---- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: 14px;
}

thead tr {
  background: var(--green);
  color: var(--white);
}

thead th {
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border-light);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: var(--bg);
}

tbody td {
  padding: 10px 14px;
  color: var(--text);
  vertical-align: middle;
  line-height: 1.5;
}

/* ---- FAQ ---- */
.faq-section {
  margin-top: 40px;
}

.faq-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-left: 4px solid var(--green);
  padding-left: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  background: var(--white);
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.faq-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* ---- AUTHOR SECTION ---- */
.author-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.author-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.author-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green);
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}

.author-name a {
  color: var(--green);
}

.author-name a:hover {
  text-decoration: underline;
}

.author-role {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.author-info p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin-top: 6px;
}

/* ---- FOOTER ---- */
.site-footer {
  background: #12121f;
  color: #c8cad8;
  padding: 40px 0 28px;
}

.footer-logo {
  margin-bottom: 24px;
}

.footer-logo img {
  opacity: .85;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col a {
  font-size: 13px;
  color: #9093a8;
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-adm {
  margin-bottom: 24px;
}

.footer-adm img {
  opacity: .7;
  max-width: 160px;
}

.footer-warning {
  font-size: 13px;
  line-height: 1.6;
  color: #7a7d92;
  margin-bottom: 14px;
}

.footer-warning a {
  color: #9093a8;
  text-decoration: underline;
}

.footer-copy {
  font-size: 12px;
  color: #5a5d72;
}

/* =============================================
   DESKTOP BREAKPOINTS
   ============================================= */

@media (min-width: 600px) {
  .casino-card {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    align-items: start;
  }

  .card-brand {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .card-bonus {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-self: stretch;
  }

  .card-features {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .card-cta {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    align-self: end;
  }

  .btn-play {
    width: auto;
    min-width: 160px;
  }
}

@media (min-width: 768px) {
  .listing-section {
    padding: 48px 0 56px;
  }

  .listing-title {
    font-size: 26px;
  }

  .casino-card {
    grid-template-columns: 220px 1fr auto auto;
    grid-template-rows: 1fr;
    align-items: center;
    padding: 20px 24px;
    gap: 20px;
  }

  .card-rank {
    top: 50%;
    transform: translateY(-50%);
  }

  .card-brand {
    grid-column: 1 / 2;
    grid-row: 1;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 44px;
  }

  .card-bonus {
    grid-column: 2 / 3;
    grid-row: 1;
    align-self: center;
  }

  .card-features {
    grid-column: 3 / 4;
    grid-row: 1;
    min-width: 200px;
  }

  .card-cta {
    grid-column: 4 / 5;
    grid-row: 1;
  }

  .btn-play {
    white-space: nowrap;
    min-width: 130px;
  }

  .content-wrap h2 {
    font-size: 26px;
  }

  .content-wrap h3 {
    font-size: 20px;
  }

  .footer-links {
    flex-direction: row;
    gap: 40px;
  }

  .footer-col {
    min-width: 160px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }

  .main-content {
    padding: 56px 0 64px;
  }

  .content-wrap p {
    font-size: 16px;
  }

  .content-wrap ol li,
  .content-wrap ul li {
    font-size: 16px;
  }

  table {
    font-size: 15px;
  }

  .faq-item h3 {
    font-size: 17px;
  }

  .faq-item p {
    font-size: 15px;
  }

  .author-card img {
    width: 90px;
    height: 90px;
  }
}

/* ---- ACCESSIBILITY ---- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
