/* rimrockinnor.com - Best Utah Online Casinos */
/* Mobile-first responsive design */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #ffffff;
  --color-text: #333333;
  --color-heading: #1a1a2e;
  --color-cta: #d62828;
  --color-cta-hover: #b71c1c;
  --color-bonus: #e65100;
  --color-badge: #1a1a2e;
  --color-badge-text: #ffffff;
  --color-section-alt: #f5f5f5;
  --color-border: #e0e0e0;
  --color-muted: #666666;
  --color-green: #2e7d32;
  --color-star: #f9a825;
  --color-link: #1565c0;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --max-width: 900px;
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========== CONTAINER ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== HEADER / H1 SECTION ========== */
.site-header {
  text-align: center;
  padding: 24px 16px 8px;
}

.site-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-heading);
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-intro {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-muted);
  max-width: 720px;
  margin: 0 auto 4px;
  text-align: left;
}

.toplist-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-heading);
  text-align: center;
  margin: 8px 16px 10px;
}

/* ========== AUTHOR SECTION ========== */
.author-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.author-box img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.author-box .author-name {
  font-weight: 600;
  color: var(--color-text);
}

.author-box .author-date {
  color: var(--color-muted);
}

/* ========== TOPLIST ========== */
.toplist {
  margin: 0 auto 32px;
  max-width: var(--max-width);
  padding: 0 16px;
}

.toplist-item {
  display: grid;
  grid-template-columns: 36px 90px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: #fff;
  transition: box-shadow 0.2s;
}

.toplist-item:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.toplist-item.featured {
  border: 2px solid var(--color-cta);
  background: #fff8f8;
}

.toplist-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-badge);
  color: var(--color-badge-text);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toplist-rank.gold {
  background: #c9a227;
}

.toplist-rank.silver {
  background: #7d8590;
}

.toplist-rank.bronze {
  background: #a0522d;
}

.toplist-logo {
  width: 90px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.toplist-info {
  min-width: 0;
}

.toplist-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-heading);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toplist-bonus {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-bonus);
  line-height: 1.2;
}

.toplist-bonus-sub {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 400;
}

.toplist-cta {
  flex-shrink: 0;
}

.btn-play {
  display: inline-block;
  background: var(--color-cta);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}

.btn-play:hover {
  background: var(--color-cta-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ========== MOBILE TOPLIST ========== */
@media (max-width: 600px) {
  .toplist-item {
    grid-template-columns: 30px 70px 1fr;
    grid-template-rows: auto auto;
    gap: 8px 10px;
    padding: 12px;
  }

  .toplist-rank {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .toplist-logo {
    width: 70px;
    height: 38px;
  }

  .toplist-info {
    grid-column: 3;
  }

  .toplist-bonus {
    font-size: 0.95rem;
  }

  .toplist-cta {
    grid-column: 1 / -1;
  }

  .btn-play {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 0.85rem;
  }

  .toplist-name {
    font-size: 0.8rem;
  }
}

/* ========== CONTENT SECTIONS ========== */
.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px;
}

.content-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 16px;
  line-height: 1.3;
}

.content-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 24px 0 10px;
}

.content-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-heading);
  margin: 16px 0 8px;
}

.content-section p {
  margin-bottom: 14px;
}

.content-section ul, .content-section ol {
  margin: 0 0 14px 24px;
}

.content-section li {
  margin-bottom: 6px;
}

/* ========== REVIEW CARDS ========== */
.review-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  background: #fff;
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.review-card-header img {
  width: 100px;
  height: 53px;
  object-fit: contain;
}

.review-card-header .review-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-heading);
}

.review-card-header .review-subtitle {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.review-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  background: var(--color-section-alt);
  border-radius: 6px;
  font-size: 0.85rem;
}

.review-meta dt {
  font-weight: 600;
  color: var(--color-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-meta dd {
  font-weight: 700;
  color: var(--color-heading);
  margin: 0;
}

.review-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

@media (max-width: 500px) {
  .review-pros-cons {
    grid-template-columns: 1fr;
  }
}

.review-pros h4, .review-cons h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.review-pros h4 { color: var(--color-green); }
.review-cons h4 { color: var(--color-cta); }

.review-pros ul, .review-cons ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.review-pros li::before { content: "✓ "; color: var(--color-green); font-weight: 700; }
.review-cons li::before { content: "✗ "; color: var(--color-cta); font-weight: 700; }

.review-body p {
  font-size: 0.95rem;
}

.review-cta {
  text-align: center;
  margin-top: 16px;
}

.review-cta .btn-play {
  padding: 14px 32px;
  font-size: 0.9rem;
}

.review-rating {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0;
  font-size: 0.85rem;
}

.review-rating span {
  font-weight: 600;
}

/* ========== TABLES ========== */
.responsive-table {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0;
  -webkit-overflow-scrolling: touch;
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 500px;
}

.responsive-table th {
  background: var(--color-heading);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.responsive-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
}

.responsive-table tr:nth-child(even) td {
  background: var(--color-section-alt);
}

/* ========== FAQ ACCORDION ========== */
.faq-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-heading);
  text-align: left;
  font-family: var(--font-main);
}

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--color-muted);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 16px 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
}

.faq-item.open .faq-answer {
  display: block;
}

/* ========== AUTHOR BIO (BOTTOM) ========== */
.author-bio {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--color-section-alt);
  border-radius: var(--radius);
  margin: 24px auto;
  max-width: var(--max-width);
}

.author-bio img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-bio-text h3 {
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--color-heading);
}

.author-bio-text p {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 500px) {
  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ========== HOW WE RATE SECTION ========== */
.rating-criteria {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0;
}

.rating-criteria-item {
  padding: 16px;
  background: var(--color-section-alt);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-cta);
}

.rating-criteria-item h4 {
  margin: 0 0 6px;
  color: var(--color-heading);
  font-size: 0.95rem;
}

.rating-criteria-item p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--color-muted);
}

/* ========== PAYMENT METHODS ========== */
.payment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 16px 0;
}

.payment-item {
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.payment-item h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.payment-item p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--color-muted);
}

@media (min-width: 600px) {
  .payment-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========== RESPONSIBLE GAMBLING FOOTER ========== */
.responsible-gambling {
  text-align: center;
  padding: 24px 16px;
  margin-top: 32px;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.responsible-gambling .age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-cta);
  color: var(--color-cta);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

/* ========== STICKY MOBILE CTA ========== */
.sticky-cta {
  display: none;
}

@media (max-width: 600px) {
  .sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--color-border);
    padding: 10px 16px;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  }

  .sticky-cta .btn-play {
    display: block;
    text-align: center;
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
  }

  body {
    padding-bottom: 70px;
  }
}

/* ========== RUNNERS UP ========== */
.runners-up {
  background: var(--color-section-alt);
  padding: 2px 0;
  margin: 24px 0;
}

.runners-up .toplist-item {
  background: #fff;
}

/* ========== MISC ========== */
.section-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 32px 0;
}

.highlight-box {
  background: #fff3e0;
  border-left: 4px solid var(--color-bonus);
  padding: 14px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0;
  font-size: 0.9rem;
}

.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ========== DESKTOP ENHANCEMENTS ========== */
@media (min-width: 768px) {
  .site-header h1 {
    font-size: 2rem;
  }

  .toplist-item {
    grid-template-columns: 40px 110px 1fr auto;
    gap: 16px;
    padding: 16px 20px;
  }

  .toplist-logo {
    width: 110px;
    height: 58px;
  }

  .toplist-bonus {
    font-size: 1.15rem;
  }

  .content-section h2 {
    font-size: 1.6rem;
  }
}

/* ========== LEGACY PAGE STYLES ========== */
.legacy-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 16px;
}

.legacy-page h1 {
  font-size: 1.5rem;
  color: var(--color-heading);
  margin-bottom: 16px;
}

.legacy-page h2 {
  font-size: 1.2rem;
  color: var(--color-heading);
  margin: 24px 0 12px;
}

.legacy-page p {
  margin-bottom: 14px;
  line-height: 1.7;
}

.legacy-page ul {
  margin: 0 0 14px 24px;
}

.legacy-page li {
  margin-bottom: 6px;
}

.legacy-footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* SVG logo placeholder for All Star Slots */
.logo-placeholder {
  width: 90px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  border-radius: 4px;
  color: #ffd700;
  font-weight: 700;
  font-size: 0.65rem;
  text-align: center;
  line-height: 1.2;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .logo-placeholder {
    width: 70px;
    height: 38px;
    font-size: 0.55rem;
  }
}
