/**
 * Spintime Casino - Theme Stylesheet
 * All classes use pg53- prefix for namespace isolation
 * Color Palette: #ADB5BD | #1E1E1E | #FF8C00 | #40E0D0 | #80CBC4 | #FFAA00
 */

/* CSS Variables */
:root {
  --pg53-primary: #FF8C00;
  --pg53-secondary: #40E0D0;
  --pg53-accent: #FFAA00;
  --pg53-bg-dark: #1E1E1E;
  --pg53-bg-card: #2A2A2A;
  --pg53-bg-section: #1A1A1A;
  --pg53-text-light: #ADB5BD;
  --pg53-text-white: #FFFFFF;
  --pg53-text-muted: #6C757D;
  --pg53-border: #333333;
  --pg53-teal: #80CBC4;
  --pg53-gradient: linear-gradient(135deg, #FF8C00, #FFAA00);
  --pg53-radius: 1.2rem;
  --pg53-radius-sm: 0.8rem;
  --pg53-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.3);
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--pg53-bg-dark);
  color: var(--pg53-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pg53-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--pg53-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.pg53-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* Header */
.pg53-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--pg53-bg-dark);
  border-bottom: 0.1rem solid var(--pg53-border);
  max-width: 430px;
  margin: 0 auto;
}

.pg53-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  height: 5.6rem;
}

.pg53-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pg53-logo-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
}

.pg53-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg53-primary);
  white-space: nowrap;
}

.pg53-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg53-btn-register {
  background: var(--pg53-gradient);
  color: var(--pg53-text-white);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pg53-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0.2rem 0.8rem rgba(255, 140, 0, 0.4);
}

.pg53-btn-login {
  background: transparent;
  color: var(--pg53-secondary);
  border: 0.1rem solid var(--pg53-secondary);
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.pg53-btn-login:hover {
  background: rgba(64, 224, 208, 0.1);
}

.pg53-menu-toggle {
  background: none;
  border: none;
  color: var(--pg53-text-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* Mobile Menu */
.pg53-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--pg53-bg-card);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.6rem;
  overflow-y: auto;
}

.pg53-mobile-menu.pg53-menu-active {
  right: 0;
}

.pg53-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.pg53-menu-overlay.pg53-overlay-active {
  opacity: 1;
  visibility: visible;
}

.pg53-menu-close {
  background: none;
  border: none;
  color: var(--pg53-text-light);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.pg53-menu-links {
  list-style: none;
  margin-top: 3rem;
}

.pg53-menu-links li {
  border-bottom: 0.1rem solid var(--pg53-border);
}

.pg53-menu-links a {
  display: block;
  padding: 1.2rem 0;
  color: var(--pg53-text-light);
  font-size: 1.4rem;
  transition: color 0.2s, padding-left 0.2s;
}

.pg53-menu-links a:hover {
  color: var(--pg53-primary);
  padding-left: 0.8rem;
}

/* Slider / Banner */
.pg53-slider {
  position: relative;
  overflow: hidden;
  margin-top: 5.6rem;
  border-radius: 0;
}

.pg53-slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.pg53-slide {
  min-width: 100%;
  cursor: pointer;
}

.pg53-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 430/200;
  object-fit: cover;
}

.pg53-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 0;
  background: var(--pg53-bg-dark);
}

.pg53-slider-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--pg53-text-muted);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.pg53-slider-dot.pg53-dot-active {
  background: var(--pg53-primary);
  transform: scale(1.3);
}

/* Main Content */
.pg53-main {
  padding: 1.6rem 0;
}

.pg53-main-content {
  padding-bottom: 2rem;
}

@media (max-width: 768px) {
  .pg53-main-content {
    padding-bottom: 8rem;
  }
}

/* Section Titles */
.pg53-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg53-text-white);
  margin: 2rem 0 1.2rem;
  padding-left: 1rem;
  border-left: 0.4rem solid var(--pg53-primary);
}

.pg53-section-subtitle {
  font-size: 1.4rem;
  color: var(--pg53-text-muted);
  margin-bottom: 1.2rem;
}

/* Game Grid */
.pg53-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0.5rem 0;
}

.pg53-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.pg53-game-item:hover {
  transform: translateY(-0.3rem);
}

.pg53-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--pg53-radius-sm);
  object-fit: cover;
  border: 0.1rem solid var(--pg53-border);
  transition: border-color 0.2s;
}

.pg53-game-item:hover .pg53-game-img {
  border-color: var(--pg53-primary);
}

.pg53-game-name {
  font-size: 1.1rem;
  color: var(--pg53-text-light);
  margin-top: 0.4rem;
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content Sections */
.pg53-content-section {
  background: var(--pg53-bg-card);
  border-radius: var(--pg53-radius);
  padding: 2rem 1.6rem;
  margin: 1.6rem 0;
  border: 0.1rem solid var(--pg53-border);
}

.pg53-content-section h2 {
  font-size: 1.7rem;
  color: var(--pg53-primary);
  margin-bottom: 1rem;
}

.pg53-content-section h3 {
  font-size: 1.5rem;
  color: var(--pg53-teal);
  margin: 1.2rem 0 0.6rem;
}

.pg53-content-section p {
  line-height: 1.7rem;
  margin-bottom: 0.8rem;
}

/* CTA Button */
.pg53-cta-btn {
  display: inline-block;
  background: var(--pg53-gradient);
  color: var(--pg53-text-white);
  padding: 1rem 2.4rem;
  border-radius: 2.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pg53-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0.4rem 1.2rem rgba(255, 140, 0, 0.4);
  color: var(--pg53-text-white);
}

/* Affiliate Link */
.pg53-affiliate-link {
  color: var(--pg53-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.pg53-affiliate-link:hover {
  color: var(--pg53-accent);
}

/* Footer */
.pg53-footer {
  background: var(--pg53-bg-section);
  padding: 2rem 1.2rem 6rem;
  border-top: 0.1rem solid var(--pg53-border);
  margin-top: 2rem;
}

.pg53-footer-brand {
  font-size: 1.3rem;
  color: var(--pg53-text-muted);
  line-height: 1.7rem;
  margin-bottom: 1.6rem;
}

.pg53-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.pg53-footer-links a {
  color: var(--pg53-text-light);
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  background: var(--pg53-bg-card);
  border-radius: 0.6rem;
  transition: background 0.2s, color 0.2s;
}

.pg53-footer-links a:hover {
  background: var(--pg53-primary);
  color: var(--pg53-text-white);
}

.pg53-footer-copy {
  font-size: 1.1rem;
  color: var(--pg53-text-muted);
  text-align: center;
  padding-top: 1.2rem;
  border-top: 0.1rem solid var(--pg53-border);
}

/* Bottom Navigation */
.pg53-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--pg53-bg-card);
  border-top: 0.1rem solid var(--pg53-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 -0.4rem 1rem rgba(0, 0, 0, 0.3);
}

.pg53-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5rem;
  background: none;
  border: none;
  color: var(--pg53-text-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  padding: 0.4rem;
}

.pg53-bottom-nav-btn:hover,
.pg53-bottom-nav-btn.pg53-nav-active {
  color: var(--pg53-primary);
  transform: scale(1.08);
}

.pg53-bottom-nav-btn i,
.pg53-bottom-nav-btn .material-icons,
.pg53-bottom-nav-btn ion-icon,
.pg53-bottom-nav-btn bi {
  font-size: 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
}

.pg53-bottom-nav-btn span {
  font-size: 1rem;
  margin-top: 0.2rem;
  line-height: 1.2rem;
}

@media (min-width: 769px) {
  .pg53-bottom-nav {
    display: none;
  }
  .pg53-footer {
    padding-bottom: 2rem;
  }
}

/* Helpers */
.pg53-text-gradient {
  background: var(--pg53-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pg53-text-center {
  text-align: center;
}

.pg53-mt-1 { margin-top: 0.8rem; }
.pg53-mt-2 { margin-top: 1.6rem; }
.pg53-mb-1 { margin-bottom: 0.8rem; }
.pg53-mb-2 { margin-bottom: 1.6rem; }

/* Card Component */
.pg53-card {
  background: var(--pg53-bg-card);
  border-radius: var(--pg53-radius);
  padding: 1.6rem;
  border: 0.1rem solid var(--pg53-border);
  transition: border-color 0.3s;
}

.pg53-card:hover {
  border-color: var(--pg53-primary);
}

/* Winner Strip */
.pg53-winner-strip {
  background: linear-gradient(90deg, rgba(255, 140, 0, 0.1), rgba(64, 224, 208, 0.1));
  padding: 1rem 1.2rem;
  border-radius: var(--pg53-radius-sm);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.pg53-winner-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-size: 1.2rem;
}

.pg53-winner-amount {
  color: var(--pg53-primary);
  font-weight: 700;
}

/* Payment Icons */
.pg53-payment-row {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.pg53-payment-item {
  background: var(--pg53-bg-section);
  border: 0.1rem solid var(--pg53-border);
  border-radius: 0.6rem;
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
  color: var(--pg53-text-light);
}

/* RTP Bar */
.pg53-rtp-bar {
  background: var(--pg53-bg-section);
  border-radius: 1rem;
  height: 0.8rem;
  overflow: hidden;
  margin: 0.4rem 0;
}

.pg53-rtp-fill {
  height: 100%;
  border-radius: 1rem;
  background: var(--pg53-gradient);
}

/* Testimonial */
.pg53-testimonial {
  background: var(--pg53-bg-section);
  border-radius: var(--pg53-radius-sm);
  padding: 1.2rem;
  margin: 0.6rem 0;
  border-left: 0.3rem solid var(--pg53-secondary);
}

.pg53-testimonial-author {
  color: var(--pg53-primary);
  font-weight: 600;
  font-size: 1.2rem;
}

.pg53-testimonial-text {
  font-size: 1.2rem;
  color: var(--pg53-text-light);
  margin-top: 0.4rem;
  line-height: 1.5rem;
}

/* FAQ */
.pg53-faq-item {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--pg53-bg-section);
  border-radius: var(--pg53-radius-sm);
}

.pg53-faq-q {
  font-weight: 700;
  color: var(--pg53-primary);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.pg53-faq-a {
  color: var(--pg53-text-light);
  font-size: 1.2rem;
  line-height: 1.6rem;
}

/* Desktop Enhancement */
@media (min-width: 769px) {
  body {
    max-width: 430px;
  }
}

/* H1 styling */
.pg53-h1 {
  font-size: 2rem;
  color: var(--pg53-text-white);
  font-weight: 800;
  line-height: 2.4rem;
  margin: 1.6rem 0;
}

/* Responsive fine-tuning */
@media (max-width: 360px) {
  .pg53-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
  .pg53-logo-text {
    font-size: 1.3rem;
  }
  .pg53-btn-register, .pg53-btn-login {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
  }
}
