/**
 * Component Styles - Casino Cards, Slot Cards, etc.
 * Converted from Figma React components
 */

/* ===========================
   RATING WIDGET - THEME STYLES
   =========================== */

/* Rating widget integration with theme */
.radium-rating-widget {
  margin: 12px 0;
}

/* Compact rating widget for casino cards */
.casino-card-rating .radium-rating-widget,
.casino-card-row-rating .radium-rating-widget {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.casino-card-rating .rating-stars,
.casino-card-row-rating .rating-stars {
  display: flex;
  gap: 2px;
  justify-content: center;
}

.casino-card-rating .rating-info,
.casino-card-row-rating .rating-info {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 0.85em;
  flex-wrap: wrap;
  justify-content: center;
}

.casino-card-rating .rating-average,
.casino-card-row-rating .rating-average {
  font-size: 0.9em;
}

.casino-card-rating .rating-count,
.casino-card-row-rating .rating-count {
  font-size: 0.75em;
}

.rating-stars {
  color: var(--muted-foreground);
}

.rating-star.active {
  color: #fbbf24; /* Gold for active stars */
}

.rating-info {
  color: var(--muted-foreground);
}

.rating-average {
  color: var(--foreground);
  font-weight: var(--font-weight-medium);
}

.rating-count {
  color: var(--muted-foreground);
}

/* Dark mode support */
.dark .rating-star {
  color: var(--muted-foreground);
}

.dark .rating-star.active {
  color: #fbbf24; /* Gold works in dark mode too */
}

.dark .rating-info {
  color: var(--muted-foreground);
}

.dark .rating-average {
  color: var(--foreground);
}

.dark .rating-count {
  color: var(--muted-foreground);
}

/* Rating message styling */
.rating-message-success {
  background-color: var(--accent);
  color: var(--foreground);
  border-color: var(--border);
}

.rating-message-error {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
  border-color: var(--destructive);
}

/* ===========================
   CASINO CARD - GRID LAYOUT
   =========================== */

.casino-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  height: 100%;
  transition: box-shadow 0.2s ease;
}

.casino-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Logo Section */
.casino-card-logo {
  width: 80px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.casino-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

/* Casino Name */
.casino-card-name {
  text-align: center;
  color: #111827;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.casino-card-name a {
  color: inherit;
}

.casino-card-name a:hover {
  text-decoration: underline;
}

/* Star Rating */
.casino-card-rating {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.casino-star {
  width: 20px;
  height: 20px;
  display: inline-block;
  font-size: 20px;
  line-height: 1;
}

.casino-star.filled {
  color: #facc15;
}

.casino-star.empty {
  color: #d1d5db;
}

/* Bonus Sections */
.casino-bonus {
  padding: 12px 16px;
  border-radius: 8px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  position: relative;
}

/* Bonus Info Icon */
.casino-bonus-info-icon {
  display: inline-block;
  margin-left: 6px;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  cursor: help;
  vertical-align: middle;
  transition: background 0.2s ease;
}

.casino-bonus-info-icon:hover {
  background: rgba(255, 255, 255, 0.5);
}

.casino-bonus-welcome {
  background: linear-gradient(to right, #9333ea, #db2777);
}

/* Grid Container - with max-width and padding */
/* ONLY apply grid to .casino-grid that is NOT also .casino-row-list */
.casino-grid:not(.casino-row-list),
.casino-grid.radium-casinos:not(.casino-row-list) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
  /* Ensure grid items maintain proper sizing */
  grid-auto-rows: auto;
  align-items: start;
  /* Prevent nested grids from breaking layout */
  grid-auto-flow: row;
  /* Force full width even with minimal content */
  min-width: 0;
}

/* CRITICAL: Prevent nested grid containers from creating vertical stacks */
/* Use display: contents to make nested grids "transparent" so their children become direct grid items */
.casino-grid .casino-grid,
.casino-grid .radium-casinos,
.casino-grid .radium-casinos-grid,
.radium-casinos .casino-grid,
.radium-casinos .radium-casinos {
  display: contents !important; /* Make nested grid act as pass-through */
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure minimum width for grid cards - applies to all cards in grid */
/* Only apply to actual grid containers, not row-list */
.casino-grid:not(.casino-row-list) .casino-card,
.casino-grid.radium-casinos:not(.casino-row-list) .casino-card,
.radium-casinos-grid:not(.casino-row-list) .casino-card,
.radium-casinos:not(.casino-row-list):not(.radium-casinos-list) .casino-card {
  min-width: 280px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* Ensure cards don't shrink below min-width */
  flex-shrink: 0;
}

/* CRITICAL: Ensure cards inside nested grids become direct children of parent grid */
.casino-grid .casino-grid .casino-card,
.casino-grid .radium-casinos .casino-card,
.casino-grid .radium-casinos-grid .casino-card {
  /* These should be direct children, not nested */
  grid-column: auto;
  grid-row: auto;
}

/* Ensure grid respects min-width for all cards, including dynamically added ones */
/* Desktop only - mobile will override */
@media (min-width: 768px) {
  .casino-grid:not(.casino-row-list),
  .casino-grid.radium-casinos:not(.casino-row-list),
  .radium-casinos-grid:not(.casino-row-list),
  .radium-casinos:not(.casino-row-list):not(.radium-casinos-list) {
    grid-auto-columns: minmax(280px, 1fr) !important;
  }
}

@media (min-width: 768px) {
  .casino-grid:not(.casino-row-list),
  .casino-grid.radium-casinos:not(.casino-row-list),
  .radium-casinos-grid:not(.casino-row-list),
  .radium-casinos:not(.casino-row-list):not(.radium-casinos-list) {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .casino-grid:not(.casino-row-list),
  .casino-grid.radium-casinos:not(.casino-row-list),
  .radium-casinos-grid:not(.casino-row-list),
  .radium-casinos:not(.casino-row-list):not(.radium-casinos-list) {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  }
}

/* Row/List Layout - with max-width - MUST be flex column, NEVER grid */
/* These rules must override ALL other CSS including plugin CSS */
/* CRITICAL: Must target combinations where .radium-casinos might be forcing grid */
.casino-row-list,
.casino-row-list.radium-casinos,
.casino-row-list.radium-casinos-list,
.radium-casinos.casino-row-list,
.radium-casinos-list.casino-row-list,
.radium-casinos[class*="list"],
.radium-casinos-list[class*="row"] {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  width: 100% !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  /* Explicitly disable ALL grid properties */
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-auto-flow: row !important;
  grid-auto-columns: none !important;
  grid-auto-rows: none !important;
}

/* Ensure row cards are full width and don't wrap - override any grid styles */
.casino-row-list .casino-card,
.casino-row-list .casino-card-row,
.casino-row-list.radium-casinos .casino-card,
.casino-row-list.radium-casinos .casino-card-row,
.radium-casinos.casino-row-list .casino-card,
.radium-casinos.casino-row-list .casino-card-row,
.radium-casinos-list .casino-card,
.radium-casinos-list .casino-card-row {
  min-width: 100% !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  max-width: 100% !important;
  /* Force block display to prevent inline behavior */
  display: block !important;
  flex: 0 0 auto !important;
  /* Prevent any grid behavior */
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
}

/* Prevent grid from affecting row list items - force block display for ALL children */
.casino-row-list > *,
.casino-row-list.radium-casinos > *,
.radium-casinos.casino-row-list > *,
.radium-casinos-list > * {
  display: block !important;
  width: 100% !important;
  flex: 0 0 auto !important;
  min-width: 100% !important;
  max-width: 100% !important;
  /* Prevent any grid column behavior */
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
}

/* CRITICAL: Ensure row cards are visible and properly styled in row-list container */
.casino-row-list .casino-card-row,
.casino-row-list.radium-casinos .casino-card-row,
.radium-casinos.casino-row-list .casino-card-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 24px !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  /* Override any grid behavior */
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
}

/* CRITICAL: Hide grid cards in row-list containers */
.casino-row-list .casino-card:not(.casino-card-row),
.casino-row-list.radium-casinos .casino-card:not(.casino-card-row),
.radium-casinos.casino-row-list .casino-card:not(.casino-card-row) {
  display: none !important;
}

/* Slot Grid - with max-width */
.slot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 12px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .slot-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (min-width: 1024px) {
  .slot-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.casino-bonus-nodeposit {
  background: linear-gradient(to right, #059669, #10b981);
}

/* Spacer for cards without no-deposit bonus */
.casino-bonus-spacer {
  padding: 12px 16px;
  width: 100%;
  height: 43px; /* Matches bonus section height */
}

/* Buttons Container */
.casino-card-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

/* Button Base Styles */
.casino-button {
  width: 100%;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  line-height: 1.5;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  white-space: normal;
  word-wrap: break-word;
}

/* Review Button */
.casino-button-review {
  background: transparent;
  border: 2px solid #111827;
  color: #111827;
}

.casino-button-review:hover {
  background: #111827;
  color: #ffffff;
}

/* Play Button */
.casino-button-play {
  background: linear-gradient(to right, #facc15, #f97316);
  color: #111827;
  border: none;
}

.casino-button-play:hover {
  background: linear-gradient(to right, #eab308, #ea580c);
}

/* ===========================
   CASINO CARD - ROW LAYOUT
   =========================== */

.casino-card-row {
  background: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 24px !important;
  transition: box-shadow 0.2s ease !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Desktop ONLY: Row layout stays horizontal */
@media (min-width: 768px) {
  .casino-card-row {
    flex-direction: row !important;
  }

  .casino-card-row-left,
  .casino-card-row-center,
  .casino-card-row-right {
    display: flex !important;
  }

  .casino-card-row-left {
    flex-direction: column !important;
    min-width: 120px !important;
    flex-shrink: 0 !important;
  }

  .casino-card-row-center {
    flex: 1 !important;
    flex-direction: column !important;
    min-width: 0 !important;
  }

  .casino-card-row-right {
    flex-direction: column !important;
    min-width: 180px !important;
    flex-shrink: 0 !important;
  }
}

.casino-card-row:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Left Section - Logo and Name */
.casino-card-row-left {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 120px !important;
  flex-shrink: 0 !important;
}

/* Desktop: Keep left section narrow */
@media (min-width: 768px) {
  .casino-card-row-left {
    min-width: 120px !important;
    flex-shrink: 0 !important;
  }
}

.casino-card-row-logo {
  width: 80px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.casino-card-row-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.casino-card-row-name {
  text-align: center;
  color: #111827;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  max-width: 120px;
}

@media (max-width: 767px) {
  .casino-card-row-name {
    max-width: 100% !important;
  }
}

.casino-card-row-name a {
  color: inherit;
}

.casino-card-row-name a:hover {
  text-decoration: underline;
}

/* Center Section - Bonuses and Rating */
.casino-card-row-center {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  min-width: 0 !important;
}

/* Ensure center section stacks properly on mobile */
@media (max-width: 767px) {
  .casino-card-row-center {
    flex: 0 0 auto !important;
    min-width: 100% !important;
    width: 100% !important;
  }
}

.casino-card-row-rating {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.casino-row-star {
  width: 18px;
  height: 18px;
  display: inline-block;
  font-size: 18px;
  line-height: 1;
}

.casino-row-star.filled {
  color: #facc15;
}

.casino-row-star.empty {
  color: #d1d5db;
}

.casino-card-row-bonus {
  padding: 10px 16px;
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  text-align: center;
  color: #ffffff;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  box-sizing: border-box;
  overflow: hidden;
  word-wrap: break-word;
  word-break: break-word;
}

.casino-card-row-bonus-welcome {
  background: linear-gradient(to right, #9333ea, #db2777);
}

.casino-card-row-bonus-nodeposit {
  background: linear-gradient(to right, #059669, #10b981);
}

/* Spacer for cards without no-deposit bonus */
.casino-card-row-bonus-spacer {
  padding: 10px 16px;
  width: 100%;
  height: 41px; /* Matches bonus section height */
}

/* Right Section - Buttons */
.casino-card-row-right {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  min-width: 180px !important;
  flex-shrink: 0 !important;
}

/* Desktop: Keep right section narrow */
@media (min-width: 768px) {
  .casino-card-row-right {
    min-width: 180px !important;
    flex-shrink: 0 !important;
  }
}

.casino-row-button {
  width: 100%;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  line-height: 1.5;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  white-space: normal;
  word-wrap: break-word;
}

.casino-row-button-review {
  background: transparent;
  border: 2px solid #111827;
  color: #111827;
}

.casino-row-button-review:hover {
  background: #111827;
  color: #ffffff;
}

.casino-row-button-play {
  background: linear-gradient(to right, #facc15, #f97316);
  color: #111827;
  border: none;
}

.casino-row-button-play:hover {
  background: linear-gradient(to right, #eab308, #ea580c);
}

/* List Layout for Row Cards */
.casino-row-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===========================
   SLOT CARD - GRID LAYOUT
   =========================== */

.slot-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s ease;
}

.slot-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Game Image */
.slot-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #f3f4f6;
  overflow: hidden;
}

.slot-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Software Logo Image - Limit to 175x100px */
.slot-card-image-software {
  aspect-ratio: auto !important;
  max-width: 175px;
  max-height: 100px;
  width: auto;
  height: auto;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.slot-card-image-software img {
  max-width: 175px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Content Section */
.slot-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

/* Game Name */
.slot-card-name {
  text-align: center;
  color: #111827;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slot-card-name a {
  color: inherit;
}

.slot-card-name a:hover {
  text-decoration: underline;
}

/* Software Provider */
.slot-card-software {
  text-align: center;
}

.slot-card-software-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #f3e8ff;
  color: #7c3aed;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
}

/* Buttons Container */
.slot-card-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

/* Button Styles */
.slot-button {
  width: 100%;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  line-height: 1.5;
}

/* Review Button */
.slot-button-review {
  background: transparent;
  border: 2px solid #111827;
  color: #111827;
}

.slot-button-review:hover {
  background: #111827;
  color: #ffffff;
}

/* Play Demo Button */
.slot-button-demo {
  background: linear-gradient(to right, #10b981, #059669);
  color: #ffffff;
}

.slot-button-demo:hover {
  background: linear-gradient(to right, #059669, #047857);
}

/* ===========================
   SLOT CARD - ROW LAYOUT
   =========================== */

.slot-card-row {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: box-shadow 0.2s ease;
}

.slot-card-row:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Left Section - Game Image */
.slot-card-row-image {
  position: relative;
  width: 160px;
  height: 107px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.slot-card-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Center Section - Game Info */
.slot-card-row-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slot-card-row-name {
  color: #111827;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slot-card-row-name a {
  color: inherit;
}

.slot-card-row-name a:hover {
  text-decoration: underline;
}

.slot-card-row-software {
  display: inline-block;
  padding: 4px 12px;
  background: #f3e8ff;
  color: #7c3aed;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  width: fit-content;
}

/* Right Section - Buttons */
.slot-card-row-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}

.slot-row-button {
  width: 100%;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  line-height: 1.5;
  white-space: nowrap;
}

.slot-row-button-review {
  background: transparent;
  border: 2px solid #111827;
  color: #111827;
}

.slot-row-button-review:hover {
  background: #111827;
  color: #ffffff;
}

.slot-row-button-demo {
  background: linear-gradient(to right, #10b981, #059669);
  color: #ffffff;
}

.slot-row-button-demo:hover {
  background: linear-gradient(to right, #059669, #047857);
}

/* Spacer for games without demo */
.slot-card-row-spacer {
  height: 40px;
}

/* List Layout for Row Cards */
.slot-row-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===========================
   GRID LAYOUTS
   =========================== */

.casino-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.slot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .casino-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .casino-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .slot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .casino-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .slot-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1536px) {
  .slot-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ===========================
   RESPONSIVE - ROW LAYOUTS
   =========================== */

@media (max-width: 767px) {
  /* Mobile: Grid containers have minimal padding (removed when inside page containers via theme.css) */
  .casino-grid:not(.casino-row-list),
  .casino-grid.radium-casinos:not(.casino-row-list),
  .casino-row-list,
  .slot-grid {
    padding-left: 12px !important;
    padding-right: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Mobile: Ensure row-list container doesn't overflow */
  .casino-row-list {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Mobile: Ensure single column grid */
  .casino-grid:not(.casino-row-list),
  .casino-grid.radium-casinos:not(.casino-row-list) {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Mobile: Fix card width on mobile - ensure no overflow */
  .casino-grid:not(.casino-row-list) .casino-card,
  .casino-grid.radium-casinos:not(.casino-row-list) .casino-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile: Ensure grid container doesn't overflow */
  .casino-grid:not(.casino-row-list),
  .casino-grid.radium-casinos:not(.casino-row-list) {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Mobile: Ensure slot cards also respect width */
  .slot-grid .slot-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile: Ensure slot grid doesn't overflow */
  .slot-grid {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Mobile: Stack row cards - MUST override the more specific .casino-row-list .casino-card-row rule */
  .casino-card-row,
  .casino-row-list .casino-card-row,
  .casino-row-list.radium-casinos .casino-card-row,
  .radium-casinos.casino-row-list .casino-card-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 24px !important;
  }

  /* Mobile: All sections are full width flex columns */
  .casino-card-row-left,
  .casino-card-row-center,
  .casino-card-row-right,
  .casino-row-list .casino-card-row-left,
  .casino-row-list .casino-card-row-center,
  .casino-row-list .casino-card-row-right {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }

  /* Mobile: Center section - rating first, then bonuses */
  .casino-card-row-center > .casino-card-row-rating {
    order: 1 !important;
  }

  .casino-card-row-center > .casino-card-row-bonus,
  .casino-card-row-center > .casino-card-row-bonus-spacer {
    order: 2 !important;
  }

  /* Mobile: Ensure rating widget is visible */
  .casino-card-row .radium-rating-widget {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .casino-card-row .rating-stars {
    display: flex !important;
    gap: 2px !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .casino-card-row .rating-star {
    font-size: 1.5em !important;
    line-height: 1 !important;
    display: inline-block !important;
  }

  /* Mobile: Logo and name styling */
  .casino-card-row-logo,
  .casino-card-row-name {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile: Bonus styling - match grid */
  .casino-card-row-bonus {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    margin: 0 !important;
  }

  .casino-card-row-bonus p {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    margin: 0 !important;
  }

  /* Mobile: Button styling - match grid */
  .casino-card-row .casino-row-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  /* Mobile: All buttons full width */
  .casino-card-row .casino-button,
  .casino-card-row .casino-row-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile: Ensure all child elements are full width */
  .casino-card-row-left > *,
  .casino-card-row-center > *,
  .casino-card-row-right > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile: Logo and name centered */
  .casino-card-row-logo,
  .casino-card-row-name {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .slot-card-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .slot-card-row-image {
    width: 100%;
    max-width: 240px;
    height: 160px;
  }

  .slot-card-row-center {
    width: 100%;
    align-items: center;
  }

  .slot-card-row-right {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .casino-card-row {
    min-height: 140px;
  }
}

/* ===========================
   CASINO SINGLE PAGE STYLING
   Matches theme color scheme
   =========================== */

/* Main Container */
.radium-casino-single.rad-theme-single {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background: var(--background);
  color: var(--foreground);
}

/* Header Section */
.radium-casino-header.rad-theme-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.radium-casino-logo-large.rad-theme-logo {
  width: 120px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--muted);
  border-radius: var(--radius);
  padding: 16px;
}

.radium-casino-logo-large.rad-theme-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.radium-casino-title.rad-theme-title {
  flex: 1;
}

.radium-casino-title.rad-theme-title h1 {
  color: var(--foreground);
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.rad-theme-play-button {
  background: linear-gradient(to right, #facc15, #f97316) !important;
  color: #111827 !important;
  padding: 12px 24px !important;
  border-radius: var(--radius) !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.2s ease !important;
}

.rad-theme-play-button:hover {
  background: linear-gradient(to right, #eab308, #ea580c) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

/* Screenshot */
.radium-casino-screenshot.rad-theme-screenshot {
  margin: 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.radium-casino-screenshot.rad-theme-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sections Container */
.radium-casino-sections.rad-theme-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Individual Section */
.radium-section.rad-theme-section {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.radium-section.rad-theme-section h2 {
  color: var(--foreground);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.radium-section.rad-theme-section h3 {
  color: var(--foreground);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.radium-section.rad-theme-section h4 {
  color: var(--foreground);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 8px 0;
}

.radium-section.rad-theme-section p {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0 0 12px 0;
}

/* Review Section */
.radium-review-section.rad-theme-section {
  background: var(--card);
}

.radium-review-section.rad-theme-section .radium-review-content {
  color: var(--muted-foreground);
  line-height: 1.8;
}

/* Pros & Cons */
.radium-pros-cons-section.rad-theme-section {
  background: var(--card);
}

.radium-pros-cons-section.rad-theme-section .radium-pros,
.radium-pros-cons-section.rad-theme-section .radium-cons {
  background: var(--muted);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.radium-pros-cons-section.rad-theme-section .radium-pros h4 {
  color: #059669;
}

.radium-pros-cons-section.rad-theme-section .radium-cons h4 {
  color: #d4183d;
}

/* Bonuses List */
.radium-bonuses-list.rad-theme-bonuses {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.radium-bonus-item.rad-theme-bonus-item {
  background: var(--muted);
  padding: 20px;
  border-radius: var(--radius);
  border-left: 4px solid #9333ea;
}

.radium-bonus-header.rad-theme-bonus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.radium-bonus-header.rad-theme-bonus-header h3 {
  color: var(--foreground);
  margin: 0;
}

.radium-bonus-type.rad-theme-bonus-type {
  background: #9333ea;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
}

.radium-bonus-code.rad-theme-bonus-code {
  background: var(--card);
  padding: 12px;
  border-radius: var(--radius);
  margin: 12px 0;
  font-family: monospace;
  color: var(--foreground);
}

.radium-bonus-code.rad-theme-bonus-code strong {
  color: #9333ea;
  font-weight: 600;
}

.radium-bonus-notes.rad-theme-bonus-notes {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Software Providers */
.radium-software-list.rad-theme-software {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.radium-software-item.rad-theme-software-item {
  background: var(--muted);
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.2s ease;
}

.radium-software-item.rad-theme-software-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.radium-software-item.rad-theme-software-item img {
  max-width: 100px;
  height: auto;
  margin-bottom: 8px;
}

.radium-software-item.rad-theme-software-item .radium-software-name {
  color: var(--foreground);
  font-weight: 500;
  display: block;
}

.radium-software-item.rad-theme-software-item a {
  text-decoration: none;
  color: inherit;
}

/* Banking Options */
.radium-banks-list.rad-theme-banks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

.radium-bank-item.rad-theme-bank-item {
  background: var(--muted);
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.radium-bank-item.rad-theme-bank-item img {
  max-width: 80px;
  height: auto;
}

.radium-bank-item.rad-theme-bank-item .radium-bank-name {
  color: var(--foreground);
  font-size: 14px;
  font-weight: 500;
}

/* Jurisdictions */
.radium-jurisdictions-list.rad-theme-jurisdictions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.radium-jurisdiction-badge.rad-theme-badge {
  background: linear-gradient(to right, #9333ea, #db2777);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
}

/* Restrictions */
.radium-restrictions-info.rad-theme-restrictions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.radium-allowed-countries.rad-theme-allowed,
.radium-blocked-countries.rad-theme-blocked {
  background: var(--muted);
  padding: 16px;
  border-radius: var(--radius);
}

.radium-allowed-countries.rad-theme-allowed h4 {
  color: #059669;
}

.radium-blocked-countries.rad-theme-blocked h4 {
  color: #d4183d;
}

/* FAQ Section */
.radium-faq-section.rad-theme-section {
  background: var(--card);
}

.radium-faq-section.rad-theme-section .radium-faq-item {
  background: var(--muted);
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
}

.radium-faq-section.rad-theme-section .radium-faq-question {
  background: var(--card);
  padding: 16px;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
}

.radium-faq-section.rad-theme-section .radium-faq-answer {
  padding: 16px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Related Section */
.radium-related-section.rad-theme-section {
  background: var(--card);
}

.radium-related-section.rad-theme-section h2 {
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .radium-casino-header.rad-theme-header {
    flex-direction: column;
    text-align: center;
  }

  .radium-casino-logo-large.rad-theme-logo {
    width: 100px;
    height: 125px;
  }

  .radium-casino-title.rad-theme-title h1 {
    font-size: 24px;
  }

  .radium-software-list.rad-theme-software,
  .radium-banks-list.rad-theme-banks {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

/* ===========================
   RELATED CASINOS STYLING
   Uses same card design as casino-list
   =========================== */

.radium-related-casinos.rad-theme-related {
  margin-top: 32px;
}

.radium-related-casinos.rad-theme-related .rad-theme-related-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 24px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.radium-related-casinos.rad-theme-related .casino-grid {
  margin-top: 0;
}

.radium-show-more.rad-theme-show-more {
  text-align: center;
  margin-top: 32px;
}

.radium-show-more.rad-theme-show-more button {
  background: transparent;
  border: 2px solid var(--foreground);
  color: var(--foreground);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radium-show-more.rad-theme-show-more button:hover {
  background: var(--foreground);
  color: var(--background);
}
