/* ==========================================================================
   IVDIV.COM - XRP Casino Affiliate Homepage
   Mobile-first responsive design | No frameworks
   ========================================================================== */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  background: #ffffff;
  color: #1e293b;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- LAYOUT ---------- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- HEADER ---------- */
.site-header {
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}

.site-header .brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #0f172a;
  text-transform: uppercase;
}

/* ---------- HERO / H1 AREA ---------- */
.hero {
  padding: 28px 0 0;
}

.hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 12px;
}

/* ---------- AUTHOR BYLINE (compact) ---------- */
.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: #64748b;
}

.byline img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.byline .byline-text span {
  color: #1e293b;
  font-weight: 600;
}

/* ---------- INTRO ---------- */
.intro {
  font-size: 1rem;
  color: #334155;
  margin-bottom: 28px;
  line-height: 1.75;
}

/* ---------- SECTION HEADINGS ---------- */
h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin: 36px 0 18px;
  line-height: 1.3;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 28px 0 12px;
  line-height: 1.3;
}

/* ---------- TOPLIST ---------- */
.toplist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.toplist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.toplist-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Position badge */
.toplist-card .position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-bottom: 12px;
}

/* Logo area */
.toplist-card .casino-logo {
  max-width: 120px;
  height: auto;
  margin-bottom: 12px;
}

/* Casino name fallback (if logo missing) */
.toplist-card .casino-name {
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 4px;
}

/* Bonus text - MUST STAND OUT */
.toplist-card .bonus-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #dc2626;
  line-height: 1.35;
  margin-bottom: 14px;
}

/* Play Now button */
.btn-play {
  display: inline-block;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 8px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s ease;
  width: 100%;
  text-align: center;
}

.btn-play:hover {
  background: #15803d;
  text-decoration: none;
}

/* ---------- TOPLIST DESKTOP (>= 768px) ---------- */
@media (min-width: 768px) {
  .toplist-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 16px 20px;
    gap: 20px;
  }

  .toplist-card .position {
    margin-bottom: 0;
  }

  .toplist-card .casino-logo {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .toplist-card .bonus-text {
    flex: 1;
    margin-bottom: 0;
  }

  .btn-play {
    width: auto;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ---------- REVIEW CARDS ---------- */
.review {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e2e8f0;
}

.review h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.review-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.review-meta .label {
  color: #64748b;
  font-weight: 500;
}

.review-meta .value {
  color: #0f172a;
  font-weight: 700;
}

/* Bonus highlight box inside review */
.bonus-highlight {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
  font-weight: 700;
  color: #dc2626;
  font-size: 1.05rem;
}

/* Pros / Cons grid */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}

.pros-cons .pros,
.pros-cons .cons {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.pros-cons .pros {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.pros-cons .cons {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.pros-cons h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.pros h4 {
  color: #16a34a;
}

.cons h4 {
  color: #dc2626;
}

.pros-cons ul {
  list-style: none;
  padding: 0;
}

.pros-cons ul li {
  padding: 3px 0;
  line-height: 1.5;
}

.pros-cons .pros ul li::before {
  content: "\2713 ";
  color: #16a34a;
  font-weight: 700;
  margin-right: 4px;
}

.pros-cons .cons ul li::before {
  content: "\2717 ";
  color: #dc2626;
  font-weight: 700;
  margin-right: 4px;
}

/* Review narrative text */
.review-text {
  margin-bottom: 16px;
  line-height: 1.75;
  color: #334155;
}

.review-text p {
  margin-bottom: 12px;
}

/* Sub-ratings */
.sub-ratings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.sub-rating {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sub-rating .rating-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.sub-rating .rating-bar-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.sub-rating .rating-bar-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 4px;
}

.sub-rating .rating-score {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}

/* Blockquote / callout */
.review-quote {
  background: #f1f5f9;
  border-left: 4px solid #2563eb;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
  font-style: italic;
  color: #334155;
  line-height: 1.65;
}

/* Review CTA */
.review-cta {
  text-align: center;
  margin-top: 16px;
}

/* ---------- HOW WE RATE SECTION ---------- */
.how-we-rate {
  margin-bottom: 36px;
}

.rating-criteria {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.criteria-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 16px;
}

.criteria-card .criteria-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.criteria-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.criteria-card p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.65;
}

/* ---------- WHY XRP SECTION ---------- */
.why-xrp {
  margin-bottom: 36px;
}

.why-xrp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .why-xrp-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.why-xrp-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
}

.why-xrp-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.why-xrp-item p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
}

/* ---------- FAQ ACCORDION ---------- */
.faq-section {
  margin-bottom: 36px;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
}

.faq-item:first-child {
  border-top: 1px solid #e2e8f0;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  line-height: 1.4;
}

/* Remove default marker in all browsers */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 300;
  color: #64748b;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "\2212"; /* minus sign */
}

.faq-item .faq-answer {
  padding: 0 0 16px;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
}

/* ---------- RUNNERS-UP ---------- */
.runners-up {
  margin-bottom: 36px;
}

.runners-up-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.runner-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
}

.runner-card .position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.runner-card .runner-info {
  flex: 1;
}

.runner-card .runner-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

.runner-card .runner-bonus {
  font-size: 0.85rem;
  color: #dc2626;
  font-weight: 600;
}

.runner-card .btn-play {
  font-size: 0.8rem;
  padding: 8px 16px;
}

/* ---------- AUTHOR BOX (bottom) ---------- */
.author-box {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 36px;
}

.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e2e8f0;
}

.author-box .author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.author-box .author-title {
  font-size: 0.85rem;
  color: #64748b;
}

.author-box .author-bio {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .author-box {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }

  .author-box img {
    flex-shrink: 0;
  }

  .author-box .author-content {
    flex: 1;
  }
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid #e2e8f0;
  padding: 28px 0 40px;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.7;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.site-footer p {
  margin-bottom: 6px;
}

.site-footer a {
  color: #2563eb;
  font-weight: 600;
}

.affiliate-disclaimer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.78rem;
  color: #94a3b8;
}

/* ---------- UTILITY ---------- */
.updated-note {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

/* ---------- DESKTOP ENHANCEMENTS ---------- */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .toplist-card .bonus-text {
    font-size: 1.05rem;
  }

  .sub-ratings {
    grid-template-columns: repeat(4, 1fr);
  }

  .rating-criteria {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
