/* ===== SLOT SINGLE PRODUCT PAGE ===== */

/* Force hide ALL default WooCommerce / GeneratePress single product elements */
body.single-product .woocommerce-breadcrumb,
body.single-product .product_title,
body.single-product .price,
body.single-product .quantity,
body.single-product .single_add_to_cart_button,
body.single-product .product_meta,
body.single-product .woocommerce-tabs,
body.single-product .related.products,
body.single-product .cart,
body.single-product form.cart,
body.single-product .woocommerce-product-rating,
body.single-product #right-sidebar,
body.single-product .woocommerce-product-gallery,
body.single-product .entry-summary,
body.single-product .summary,
body.single-product .up-sells,
body.single-product .woocommerce-Reviews {
  display: none !important;
}

body.single-product .site-main {
  width: 100% !important;
  max-width: 100% !important;
}

body.single-product .site-content {
  max-width: 100% !important;
  padding: 0 !important;
}

body.single-product .inside-article {
  padding: 0 !important;
  margin: 0 !important;
}

body.single-product .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}

/* ===== PAGE WRAPPER ===== */

.slot-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #e5e7eb;
  width: 100%;
  box-sizing: border-box;
}

/* ===== HERO ROW: Game + Sidebar ===== */

.slot-hero-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* ===== MAIN GAME AREA ===== */

.slot-main-area {
  min-width: 0;
  width: 100%;
}

/* Top bar: title + rating */
.slot-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #1e1e38 100%);
  border-radius: 10px 10px 0 0;
  border: 1px solid #2d2d44;
  border-bottom: none;
  position: relative;
}

.slot-topbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: linear-gradient(90deg, var(--sl-red, #dc2626), transparent);
}

.slot-page .slot-title {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-topbar-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.slot-stars {
  color: #fbbf24;
  font-size: 1rem;
  letter-spacing: 1px;
}

.slot-rating-text {
  color: #9ca3af;
  font-size: 0.8rem;
}

/* ===== GAME DISPLAY AREA ===== */

.slot-game-area {
  position: relative;
  background: #0f0f23;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  border: 1px solid #2d2d44;
  border-top: none;
}

.slot-game-placeholder {
  position: relative;
}

/* Thumbnail container - relative for overlay */
.slot-game-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f0f23;
}

.slot-game-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
}

/* Dark overlay on thumbnail */
.slot-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: background 0.3s;
}

.slot-game-placeholder:hover .slot-thumb-overlay {
  background: rgba(0, 0, 0, 0.6);
}

/* CTA buttons centered on image */
.slot-thumb-ctas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
}

/* ===== CTA BUTTONS ===== */

.slot-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  letter-spacing: 0.02em;
  line-height: 1.3;
  min-width: 260px;
  text-align: center;
}

.slot-cta:hover {
  transform: translateY(-2px);
  text-decoration: none !important;
}

.slot-cta:active {
  transform: translateY(0);
}

/* Play for real - bold red */
.slot-cta-real {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.5);
}

.slot-cta-real:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  box-shadow: 0 6px 28px rgba(220, 38, 38, 0.6);
  color: #fff !important;
}

/* Play demo - outlined bright */
.slot-cta-demo {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(4px);
}

.slot-cta-demo:hover {
  border-color: #fff !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Large CTA variant */
.slot-cta-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: 12px;
}

/* ===== IFRAME ===== */

.slot-iframe-wrap {
  position: relative;
  width: 100%;
  min-height: 500px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.slot-iframe-wrap iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 500px;
  border: none;
  display: block;
}

/* Iframe control bar - positioned BELOW iframe */
.slot-iframe-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: #12122a;
  border-top: 1px solid #2d2d44;
  z-index: 10;
}

.slot-fs-btn {
  background: rgba(255,255,255,0.15) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.slot-fs-btn:hover {
  background: rgba(255,255,255,0.3) !important;
}

.slot-iframe-real-btn {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.2s;
}

.slot-iframe-real-btn:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #fff !important;
}

/* ===== FULLSCREEN MODE ===== */

.slot-game-area.slot-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  border-radius: 0 !important;
  border: none !important;
  background: #000 !important;
  display: flex !important;
  flex-direction: column !important;
}

.slot-game-area.slot-fullscreen .slot-iframe-wrap {
  aspect-ratio: auto !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

.slot-game-area.slot-fullscreen .slot-iframe-controls {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
}

body.slot-fs-active {
  overflow: hidden !important;
}

/* Hide header/footer in fullscreen */
body.slot-fs-active .site-header,
body.slot-fs-active .site-footer {
  display: none !important;
}

/* ===== OVERLAY (every 3 min) ===== */

.slot-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.slot-overlay.slot-overlay-visible {
  opacity: 1;
  pointer-events: auto;
}

.slot-overlay-content {
  text-align: center;
  padding: 2.5rem 2rem;
  max-width: 420px;
  position: relative;
  background: rgba(26, 26, 46, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  transform: scale(0.85);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slot-overlay.slot-overlay-visible .slot-overlay-content {
  transform: scale(1);
}

/* Glow behind card */
.slot-overlay-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(220, 38, 38, 0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.slot-overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #9ca3af;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
  padding: 0;
}

.slot-overlay-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.slot-overlay-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--sl-red, #dc2626), var(--sl-red-dark, #b91c1c));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.slot-overlay-urgency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.slot-overlay-urgency-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: slotPulse 2s ease-in-out infinite;
}

.slot-overlay-content h3 {
  color: #fff !important;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.slot-overlay-content p {
  color: #d1d5db;
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.slot-overlay-content .slot-cta-real {
  width: 100%;
  margin-bottom: 1rem;
  animation: slotCtaPulse 2.5s ease-in-out infinite;
}

.slot-overlay-dismiss {
  background: none !important;
  border: none !important;
  color: #6b7280 !important;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem;
  text-decoration: underline;
  transition: color 0.2s;
  min-height: 44px;
}

.slot-overlay-dismiss:hover {
  color: #9ca3af !important;
}

@keyframes slotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes slotCtaPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(220, 38, 38, 0.5); }
  50% { box-shadow: 0 4px 30px rgba(220, 38, 38, 0.7), 0 0 40px rgba(220, 38, 38, 0.2); }
}

/* ===== SIDEBAR: Featured Games ===== */

.slot-sidebar {
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  align-self: start;
}

.slot-sidebar-header {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.slot-sidebar-games {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.5rem;
}

.slot-sidebar-game {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s;
}

.slot-sidebar-game:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left: 2px solid var(--sl-red, #dc2626);
  padding-left: calc(0.5rem - 2px);
}

.slot-sidebar-game img {
  width: 72px !important;
  height: 48px !important;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  margin: 0 !important;
}

.slot-sidebar-game-name {
  color: #e5e7eb;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===== INFO TABLE ===== */

.slot-info-section {
  margin-bottom: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2d2d44;
}

.slot-info-header {
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.slot-info-table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  background: #1a1a2e;
}

.slot-info-cell {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #2d2d44;
  border-right: 1px solid #2d2d44;
  transition: background 0.2s, border-color 0.2s;
  border-left: 2px solid transparent;
}

.slot-info-cell:hover {
  background: rgba(255, 255, 255, 0.03);
  border-left-color: var(--sl-red, #dc2626);
}

.slot-info-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.slot-info-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e5e7eb;
}

.slot-info-link {
  color: #f87171 !important;
  text-decoration: none !important;
  font-weight: 600;
}

.slot-info-link:hover {
  text-decoration: underline !important;
  color: #ef4444 !important;
}

.slot-stars-sm {
  color: #fbbf24;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* ===== THEME TAGS ===== */

.slot-themes-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0 0.25rem;
}

.slot-themes-label {
  color: #9ca3af;
  font-size: 0.85rem;
  font-weight: 600;
}

.slot-theme-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid #2d2d44;
  border-radius: 20px;
  color: #d1d5db !important;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.2s;
}

.slot-theme-badge:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: #dc2626;
  color: #fff !important;
}

/* ===== DESCRIPTION ===== */

.slot-page .slot-description {
  background: #1a1a2e;
  border: 1px solid #2d2d44;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: #d1d5db;
  font-size: 0.95rem;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--sl-red, #dc2626), transparent) 1;
}

.slot-page .slot-description h2,
.slot-page .slot-description h3 {
  color: #fff;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.slot-page .slot-description h2:first-child,
.slot-page .slot-description h3:first-child {
  margin-top: 0;
}

.slot-page .slot-description p {
  margin-bottom: 0.75rem;
}

.slot-page .slot-description ul,
.slot-page .slot-description ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.slot-page .slot-description strong {
  color: #fff;
}

/* ===== BOTTOM CTA ===== */

.slot-bottom-cta {
  text-align: center;
  margin-bottom: 1.5rem;
}

.slot-bottom-cta .slot-cta-lg {
  min-width: 320px;
}

/* ===== PROVIDER SECTION ===== */

.slot-page .slot-provider-section {
  text-align: center;
  padding: 1.25rem 0;
  color: #6b7280;
  font-size: 0.9rem;
  border-top: 1px solid #2d2d44;
}

.slot-page .slot-provider-section a {
  color: #f87171 !important;
  font-weight: 600;
  text-decoration: none !important;
}

.slot-page .slot-provider-section a:hover {
  text-decoration: underline !important;
}

/* ===== SUGGESTIONS ===== */

.slot-suggestions {
  margin-bottom: 1.5rem;
}

.slot-suggestions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding: 0 0.25rem;
}

.slot-suggestions-header h2 {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 !important;
  padding: 0 !important;
}

.slot-suggestions-link {
  color: #f87171 !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.2s;
}

.slot-suggestions-link:hover {
  color: #ef4444 !important;
  text-decoration: underline !important;
}

.slot-suggestions-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.slot-suggestions-card {
  display: block;
  background: linear-gradient(180deg, #13132a 0%, rgba(19,19,42,0.8) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  contain: layout style paint;
}

.slot-suggestions-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(220,38,38,0.3);
  border-color: rgba(220,38,38,0.4);
}

.slot-suggestions-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0f0f23;
  position: relative;
}

.slot-suggestions-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.25s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='white'%3E%3Cpolygon points='5,3 19,12 5,21'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.slot-suggestions-card:hover .slot-suggestions-thumb::after {
  opacity: 1;
}

.slot-suggestions-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  transition: transform 0.3s;
}

.slot-suggestions-card:hover .slot-suggestions-thumb img {
  transform: scale(1.05);
}

.slot-suggestions-name {
  display: block;
  padding: 0.45rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #c5c8d2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.slot-suggestions-card:hover .slot-suggestions-name {
  color: #fff;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .slot-hero-row {
    grid-template-columns: 1fr;
  }

  .slot-sidebar-games {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .slot-suggestions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .slot-suggestions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .slot-suggestions-name {
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
  }

  .slot-page {
    padding: 0.75rem 0.5rem 2rem;
  }

  .slot-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.6rem 0.75rem;
  }

  .slot-page .slot-title {
    font-size: 1.1rem !important;
  }

  .slot-cta {
    min-width: 200px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .slot-cta-lg {
    padding: 0.85rem 1.5rem;
  }

  .slot-thumb-ctas {
    gap: 0.75rem;
    padding: 1rem;
  }

  .slot-info-table {
    grid-template-columns: repeat(2, 1fr);
  }

  .slot-bottom-cta .slot-cta-lg {
    min-width: auto;
    width: 100%;
  }

  .slot-sidebar-games {
    grid-template-columns: 1fr 1fr;
  }

  .slot-overlay-content {
    padding: 1.5rem 1rem;
  }

  .slot-overlay-content h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 400px) {
  .slot-info-table {
    grid-template-columns: 1fr;
  }

  .slot-cta {
    min-width: 180px;
    font-size: 0.85rem;
  }

  .slot-suggestions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== MOBILE: TOUCH TARGETS & IFRAME ===== */

@media (max-width: 640px) {
  .slot-iframe-wrap {
    min-height: 280px;
  }

  .slot-iframe-wrap iframe {
    min-height: 280px;
  }

  .slot-fs-btn,
  .slot-iframe-real-btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .slot-overlay-dismiss {
    min-height: 44px;
  }
}

/* ===== ACCESSIBILITY: REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
  .slot-overlay,
  .slot-overlay-content {
    transition: none !important;
  }

  .slot-overlay-urgency-dot {
    animation: none !important;
  }

  .slot-overlay-content .slot-cta-real {
    animation: none !important;
  }
}
