/**
 * Superpharma PH - Theme Stylesheet
 * File: css/theme-c24a.css
 * All classes use sc24- prefix for namespace isolation
 * Color palette: #8470FF | #3A3A3A | #00FF00 | #90EE90 | #20B2AA
 */

/* === CSS Variables === */
:root {
  --sc24-primary: #8470FF;
  --sc24-primary-dark: #6a58cc;
  --sc24-primary-light: #a994ff;
  --sc24-bg: #3A3A3A;
  --sc24-bg-dark: #2a2a2a;
  --sc24-bg-light: #4a4a4a;
  --sc24-accent: #00FF00;
  --sc24-accent-light: #90EE90;
  --sc24-teal: #20B2AA;
  --sc24-text: #f0f0f0;
  --sc24-text-muted: #b0b0b0;
  --sc24-white: #ffffff;
  --sc24-border: #555555;
  --sc24-radius: 10px;
  --sc24-radius-sm: 6px;
  --sc24-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --sc24-font-size: 62.5%;
}

/* === Reset & Base === */
html {
  font-size: var(--sc24-font-size);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--sc24-bg);
  color: var(--sc24-text);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--sc24-accent-light);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--sc24-accent); }

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

/* === Header === */
.sc24-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--sc24-bg-dark) 0%, #1e1e3a 100%);
  border-bottom: 2px solid var(--sc24-primary);
  padding: 0 1.2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sc24-header-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.sc24-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.sc24-header-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sc24-white);
  letter-spacing: 0.5px;
}

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

.sc24-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--sc24-radius-sm);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 36px;
}

.sc24-btn-register {
  background: linear-gradient(135deg, var(--sc24-accent) 0%, #00cc00 100%);
  color: #1a1a1a;
}

.sc24-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0, 255, 0, 0.4);
}

.sc24-btn-login {
  background: transparent;
  color: var(--sc24-accent-light);
  border: 1.5px solid var(--sc24-accent-light);
}

.sc24-btn-login:hover {
  background: rgba(0, 255, 0, 0.1);
}

.sc24-menu-toggle {
  background: none;
  border: none;
  color: var(--sc24-white);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

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

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

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

.sc24-mobile-menu h3 {
  color: var(--sc24-primary-light);
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sc24-border);
}

.sc24-mobile-menu a {
  display: block;
  padding: 0.8rem 0;
  color: var(--sc24-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s;
}

.sc24-mobile-menu a:hover {
  color: var(--sc24-accent);
}

.sc24-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  display: none;
}

.sc24-menu-overlay.sc24-overlay-active {
  display: block;
}

/* === Main Content === */
.sc24-main {
  padding-top: 56px;
  min-height: 100vh;
}

/* === Slider === */
.sc24-slider {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 430/200;
}

.sc24-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.sc24-slide.sc24-slide-active {
  opacity: 1;
}

.sc24-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc24-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.sc24-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
}

.sc24-slider-dot.sc24-dot-active {
  background: var(--sc24-accent);
}

/* === Section Layout === */
.sc24-section {
  padding: 2rem 1.2rem;
  max-width: 430px;
  margin: 0 auto;
}

.sc24-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sc24-white);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--sc24-primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.sc24-section-title i {
  color: var(--sc24-primary-light);
  font-size: 2rem;
}

/* === Game Grid === */
.sc24-game-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sc24-teal);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--sc24-primary);
}

.sc24-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

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

.sc24-game-item:hover {
  transform: scale(1.05);
}

.sc24-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--sc24-radius-sm);
  border: 1.5px solid var(--sc24-border);
  margin-bottom: 0.3rem;
}

.sc24-game-item span {
  font-size: 1.1rem;
  color: var(--sc24-text-muted);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Content Card === */
.sc24-card {
  background: var(--sc24-bg-light);
  border-radius: var(--sc24-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--sc24-border);
}

.sc24-card h2 {
  font-size: 1.7rem;
  color: var(--sc24-white);
  margin: 0 0 0.8rem;
}

.sc24-card h3 {
  font-size: 1.4rem;
  color: var(--sc24-teal);
  margin: 1rem 0 0.5rem;
}

.sc24-card p {
  font-size: 1.3rem;
  color: var(--sc24-text-muted);
  line-height: 1.6;
  margin: 0.5rem 0;
}

/* === Promo Link === */
.sc24-promo-link {
  color: var(--sc24-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.sc24-promo-link:hover {
  color: var(--sc24-accent-light);
}

.sc24-promo-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 1.5rem auto;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--sc24-primary) 0%, var(--sc24-primary-dark) 100%);
  color: var(--sc24-white);
  border: none;
  border-radius: var(--sc24-radius);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
}

.sc24-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(132, 112, 255, 0.4);
}

/* === RTP Table === */
.sc24-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.sc24-rtp-table th {
  background: var(--sc24-primary-dark);
  color: var(--sc24-white);
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-size: 1.2rem;
}

.sc24-rtp-table td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--sc24-border);
  color: var(--sc24-text-muted);
}

.sc24-rtp-table tr:hover td {
  background: rgba(132, 112, 255, 0.1);
}

/* === Testimonial === */
.sc24-testimonial {
  background: linear-gradient(135deg, rgba(132, 112, 255, 0.15) 0%, rgba(32, 178, 170, 0.1) 100%);
  border-radius: var(--sc24-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--sc24-primary);
}

.sc24-testimonial strong {
  color: var(--sc24-accent);
  font-size: 1.3rem;
}

.sc24-testimonial p {
  margin: 0.4rem 0 0;
  font-size: 1.2rem;
  color: var(--sc24-text-muted);
}

/* === Winner Showcase === */
.sc24-winner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: var(--sc24-bg-light);
  border-radius: var(--sc24-radius-sm);
  margin-bottom: 0.6rem;
}

.sc24-winner-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--sc24-primary);
}

.sc24-winner-info {
  flex: 1;
}

.sc24-winner-name {
  font-size: 1.2rem;
  color: var(--sc24-white);
  font-weight: 600;
}

.sc24-winner-amount {
  font-size: 1.3rem;
  color: var(--sc24-accent);
  font-weight: 700;
}

/* === Payment Methods === */
.sc24-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.sc24-payment-item {
  background: var(--sc24-bg-light);
  border: 1px solid var(--sc24-border);
  border-radius: var(--sc24-radius-sm);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--sc24-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* === Footer === */
.sc24-footer {
  background: var(--sc24-bg-dark);
  padding: 2rem 1.2rem 6rem;
  border-top: 2px solid var(--sc24-primary);
}

.sc24-footer-inner {
  max-width: 430px;
  margin: 0 auto;
}

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

.sc24-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.sc24-footer-links a {
  background: var(--sc24-bg-light);
  border: 1px solid var(--sc24-border);
  border-radius: var(--sc24-radius-sm);
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--sc24-text-muted);
  transition: all 0.2s;
}

.sc24-footer-links a:hover {
  border-color: var(--sc24-primary);
  color: var(--sc24-white);
}

.sc24-footer-copy {
  font-size: 1.1rem;
  color: var(--sc24-text-muted);
  text-align: center;
  opacity: 0.6;
}

/* === Bottom Navigation === */
.sc24-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--sc24-bg-dark) 0%, #141428 100%);
  border-top: 2px solid var(--sc24-primary);
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.4rem;
}

.sc24-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  color: var(--sc24-text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: none;
  gap: 2px;
}

.sc24-bottom-nav-item:hover,
.sc24-bottom-nav-item:active {
  color: var(--sc24-accent);
  transform: scale(1.08);
}

.sc24-bottom-nav-item.sc24-nav-active {
  color: var(--sc24-primary-light);
}

.sc24-bottom-nav-item i,
.sc24-bottom-nav-item span.material-icons-outlined {
  font-size: 22px;
}

.sc24-bottom-nav-label {
  font-size: 1rem;
  font-weight: 500;
}

/* === FAQ Section === */
.sc24-faq-item {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--sc24-bg-light);
  border-radius: var(--sc24-radius-sm);
  border-left: 3px solid var(--sc24-teal);
}

.sc24-faq-item h4 {
  font-size: 1.3rem;
  color: var(--sc24-teal);
  margin: 0 0 0.5rem;
}

.sc24-faq-item p {
  font-size: 1.2rem;
  color: var(--sc24-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* === Feature List === */
.sc24-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sc24-feature-list li {
  padding: 0.6rem 0;
  font-size: 1.3rem;
  color: var(--sc24-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.sc24-feature-list li i {
  color: var(--sc24-accent);
  font-size: 1.4rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* === Badge === */
.sc24-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
}

.sc24-badge-hot {
  background: #ff4444;
  color: #fff;
}

.sc24-badge-new {
  background: var(--sc24-primary);
  color: #fff;
}

/* === Steps === */
.sc24-steps {
  counter-reset: sc24-step;
  list-style: none;
  padding: 0;
}

.sc24-steps li {
  counter-increment: sc24-step;
  padding: 0.8rem 0 0.8rem 3.5rem;
  position: relative;
  font-size: 1.3rem;
  color: var(--sc24-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sc24-steps li::before {
  content: counter(sc24-step);
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--sc24-primary);
  color: var(--sc24-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

/* === Highlight Box === */
.sc24-highlight-box {
  background: linear-gradient(135deg, rgba(0, 255, 0, 0.08) 0%, rgba(132, 112, 255, 0.08) 100%);
  border: 1px solid var(--sc24-primary);
  border-radius: var(--sc24-radius);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.sc24-highlight-box h3 {
  color: var(--sc24-accent);
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}

.sc24-highlight-box p {
  font-size: 1.3rem;
  color: var(--sc24-text-muted);
  margin: 0;
}

/* === Desktop / Responsive === */
@media (min-width: 769px) {
  .sc24-bottom-nav {
    display: none;
  }
  .sc24-section {
    max-width: 600px;
  }
  .sc24-footer-inner {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .sc24-main {
    padding-bottom: 80px;
  }
}

/* === Utility === */
.sc24-text-center { text-align: center; }
.sc24-text-accent { color: var(--sc24-accent); }
.sc24-text-primary { color: var(--sc24-primary-light); }
.sc24-text-teal { color: var(--sc24-teal); }
.sc24-mt-1 { margin-top: 1rem; }
.sc24-mb-1 { margin-bottom: 1rem; }
.sc24-hidden { display: none; }
