/**
 * Custom content styling — article layout, tables, blocks, lists
 * Load after template.css to override base styles
 * Safe to update independently when deploying
 */

/* ========================================
   Content tables
   ======================================== */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2.5rem 0;
}

.content .table-scroll table {
  width: 100%;
  min-width: 50rem;
  border-collapse: collapse;
  font-size: 1.5rem;
}

.content .table-scroll table,
.content .table-scroll th,
.content .table-scroll td {
  border: none !important;
}

.content .table-scroll thead {
  background: #484040;
  color: #fff;
}

.content .table-scroll th {
  padding: 1.4rem 1.6rem;
  text-align: left;
  font-weight: 600;
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
}

.content .table-scroll td {
  padding: 1.2rem 1.6rem;
  vertical-align: middle;
}

.content .table-scroll tbody tr {
  transition: background 0.15s;
}

.content .table-scroll tbody tr:nth-child(odd) td {
  background: #fff;
}

.content .table-scroll tbody tr:nth-child(even) td {
  background: #f2f3f5;
}

.content .table-scroll tbody tr:hover td {
  background: #e8ecf0;
}

/* ========================================
   Thematic content blocks
   ======================================== */
.content-block {
  margin: 3rem 0;
  padding: 2.5rem 2.5rem;
  background: #fff;
  border: 0.1rem solid #e5e5e5;
  border-radius: 1rem;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.05);
}

.content-block:first-of-type {
  margin-top: 0;
}

.content-block .content-block__title {
  margin: 0 0 1.8rem;
  padding-bottom: 1rem;
  color: #484040;
  font-size: 2.2rem;
  font-weight: 700;
  border-bottom: 0.2rem solid #ec566c;
  display: block;
}

.content-block h2 {
  margin: 0 0 1.8rem;
  padding-bottom: 1rem;
  color: #484040;
  font-size: 2.2rem;
  font-weight: 700;
  border-bottom: 0.2rem solid #ec566c;
}

.content-block h2 + *,
.content-block .content-block__title + * {
  margin-top: 0;
}

/* ========================================
   Content headings
   ======================================== */
.content h3 {
  margin: 2rem 0 1rem;
  color: #484040;
  font-size: 1.7rem;
}

/* ========================================
   Content lists — bullets and numbered
   ======================================== */
.content-block ul {
  margin: 2rem 0;
  padding-left: 2.4rem;
  list-style: disc;
  color: #484040;
  font-size: 1.6rem;
  line-height: 1.6;
}

.content-block ul li {
  margin-bottom: 1rem;
  padding-left: 0.6rem;
}

.content-block ul li::marker {
  color: #ec566c;
}

.content-block ol {
  margin: 2rem 0;
  padding-left: 2.8rem;
  list-style: decimal;
  color: #484040;
  font-size: 1.6rem;
  line-height: 1.6;
}

.content-block ol li {
  margin-bottom: 1.2rem;
  padding-left: 0.6rem;
}

.content-block ol li::marker {
  color: #ec566c;
  font-weight: 600;
}

/* ========================================
   Casino mini-reviews
   ======================================== */
.casino-mini-review {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2.5rem 0;
  align-items: flex-start;
}

.casino-mini-review__thumb {
  flex: 0 0 auto;
  display: block;
  width: 28rem;
  height: 15.75rem;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.casino-mini-review__thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.15);
}

.casino-mini-review__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f5f5;
}

.casino-mini-review__content {
  flex: 1 1 20rem;
  min-width: 0;
}

.casino-mini-review__content h3 {
  margin: 0 0 1rem;
}

@media (max-width: 47.99em) {
  .casino-mini-review {
    flex-direction: column;
    gap: 1.2rem;
    margin: 2rem 0;
  }

  .casino-mini-review__thumb {
    width: 100%;
    height: 18rem;
    max-width: 100%;
  }
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.4rem;
  pointer-events: none;
}

/* ========================================
   FAQ accordion
   ======================================== */
.faq-accordion {
  margin: 2rem 0;
}

.faq-accordion__item {
  margin-bottom: 0.8rem;
  background: #fff;
  border: 0.1rem solid #e0e0e0;
  border-radius: 0.8rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-accordion__item:hover {
  border-color: #ec566c;
}

.faq-accordion__item[open] {
  border-color: #ec566c;
  box-shadow: 0 0.2rem 0.8rem rgba(236, 86, 108, 0.15);
}

.faq-accordion__summary {
  padding: 1.4rem 2rem;
  font-weight: 700;
  font-size: 1.6rem;
  cursor: pointer;
  list-style: none;
  color: #484040;
  transition: color 0.2s;
}

.faq-accordion__summary::-webkit-details-marker {
  display: none;
}

.faq-accordion__summary::after {
  content: "+";
  float: right;
  font-size: 1.8rem;
  font-weight: 400;
  color: #ec566c;
  transition: transform 0.2s;
}

.faq-accordion__item[open] .faq-accordion__summary::after {
  content: "−";
}

.faq-accordion__summary:hover {
  color: #ec566c;
}

.faq-accordion__content {
  padding: 0 2rem 1.5rem;
}

.faq-accordion__content p {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #555;
}

/* ========================================
   Author card
   ======================================== */
.author-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem auto 0;
  padding: 1.5rem 2rem;
  max-width: 42rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1.2rem;
  color: #ffffff;
  text-align: left;
}

.author-card__photo {
  flex-shrink: 0;
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  object-fit: cover;
}

.author-card__name {
  margin: 0 0 0.3rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ec566c;
}

.author-card__role {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  opacity: 0.95;
}

.author-card__meta {
  margin: 0;
  font-size: 1.2rem;
  opacity: 0.85;
}
