/**
 * Pinaylulu Main Stylesheet - style-abd0.css
 * All classes use prefix: sabd-
 * Color palette: #FFA500 (orange) | #34495E (dark blue-gray) | #FFEF94 (light yellow)
 * Mobile-first responsive design
 */

/* === CSS Variables === */
:root {
  --sabd-primary: #FFA500;
  --sabd-secondary: #34495E;
  --sabd-accent: #FFEF94;
  --sabd-bg-dark: #1a2332;
  --sabd-bg-card: #1f2d3d;
  --sabd-bg-section: #162029;
  --sabd-text-light: #FFEF94;
  --sabd-text-white: #f0f0f0;
  --sabd-text-muted: #a0b0c0;
  --sabd-border: #2c3e50;
  --sabd-gradient-start: #FFA500;
  --sabd-gradient-end: #e8940a;
  --sabd-shadow: rgba(0, 0, 0, 0.3);
  --sabd-radius: 8px;
  --sabd-radius-lg: 12px;
  --sabd-transition: all 0.3s ease;
  font-size: 62.5%;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5rem;
  color: var(--sabd-text-white);
  background-color: var(--sabd-bg-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--sabd-primary);
  text-decoration: none;
  transition: var(--sabd-transition);
}

a:hover {
  color: var(--sabd-accent);
}

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

ul, ol {
  list-style: none;
}

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

.sabd-wrapper {
  width: 100%;
  overflow: hidden;
}

/* === Header === */
.sabd-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, var(--sabd-secondary) 0%, #1a2a3a 100%);
  border-bottom: 2px solid var(--sabd-primary);
  padding: 0.6rem 0;
}

.sabd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.sabd-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.sabd-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.sabd-logo-area span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sabd-primary);
  letter-spacing: 0.5px;
}

.sabd-header-btns {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.sabd-btn-register,
.sabd-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--sabd-transition);
}

.sabd-btn-register {
  background: linear-gradient(135deg, var(--sabd-primary), var(--sabd-gradient-end));
  color: var(--sabd-bg-dark);
}

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

.sabd-btn-login {
  background: transparent;
  color: var(--sabd-primary);
  border: 1.5px solid var(--sabd-primary);
}

.sabd-btn-login:hover {
  background: var(--sabd-primary);
  color: var(--sabd-bg-dark);
}

.sabd-menu-toggle {
  background: none;
  border: none;
  color: var(--sabd-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Mobile Menu === */
.sabd-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: var(--sabd-transition);
}

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

.sabd-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--sabd-bg-card);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.sabd-menu-active {
  right: 0;
}

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

.sabd-mobile-menu nav a {
  display: block;
  padding: 1rem 0;
  color: var(--sabd-text-white);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--sabd-border);
}

.sabd-mobile-menu nav a:hover {
  color: var(--sabd-primary);
  padding-left: 0.5rem;
}

/* === Carousel / Banner === */
.sabd-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 52px;
  border-radius: 0 0 var(--sabd-radius) var(--sabd-radius);
}

.sabd-slides-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
}

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

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

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

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

.sabd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--sabd-transition);
}

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

/* === Section Titles === */
.sabd-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sabd-primary);
  text-align: center;
  margin: 2rem 0 1.2rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.sabd-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--sabd-primary), var(--sabd-accent));
  border-radius: 2px;
}

/* === Game Grid === */
.sabd-game-section {
  margin: 1.5rem 0;
}

.sabd-game-cat-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sabd-accent);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--sabd-primary);
}

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

.sabd-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--sabd-transition);
  border-radius: var(--sabd-radius);
  padding: 0.5rem;
  background: var(--sabd-bg-card);
}

.sabd-game-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px var(--sabd-shadow);
  background: var(--sabd-bg-section);
}

.sabd-game-item img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 0.4rem;
}

.sabd-game-item span {
  font-size: 1.1rem;
  color: var(--sabd-text-white);
  text-align: center;
  line-height: 1.2;
  max-height: 2.8rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* === Content Modules === */
.sabd-card {
  background: var(--sabd-bg-card);
  border-radius: var(--sabd-radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid var(--sabd-border);
}

.sabd-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sabd-primary);
  margin-bottom: 1rem;
}

.sabd-card p {
  color: var(--sabd-text-muted);
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.sabd-card ul {
  padding-left: 1.2rem;
}

.sabd-card ul li {
  color: var(--sabd-text-muted);
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  list-style: disc;
}

/* === Promo Buttons === */
.sabd-promo-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--sabd-primary), var(--sabd-gradient-end));
  color: var(--sabd-bg-dark);
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 25px;
  cursor: pointer;
  border: none;
  transition: var(--sabd-transition);
  text-align: center;
}

.sabd-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255, 165, 0, 0.4);
}

.sabd-promo-text {
  color: var(--sabd-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.sabd-promo-text:hover {
  color: var(--sabd-accent);
}

/* === Footer === */
.sabd-footer {
  background: linear-gradient(180deg, var(--sabd-bg-card) 0%, #0f1a24 100%);
  padding: 2rem 0 6rem;
  margin-top: 2rem;
  border-top: 2px solid var(--sabd-primary);
}

.sabd-footer-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

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

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

.sabd-footer-links a {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--sabd-bg-section);
  color: var(--sabd-text-muted);
  border-radius: 15px;
  font-size: 1.2rem;
  border: 1px solid var(--sabd-border);
  transition: var(--sabd-transition);
}

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

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

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

.sabd-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--sabd-text-muted);
  cursor: pointer;
  transition: var(--sabd-transition);
  border-radius: 8px;
  padding: 0.3rem;
}

.sabd-bottom-btn:hover,
.sabd-bottom-btn:focus {
  color: var(--sabd-primary);
  background: rgba(255, 165, 0, 0.1);
}

.sabd-bottom-btn.active {
  color: var(--sabd-primary);
}

.sabd-bottom-btn .sabd-bnav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.sabd-bottom-btn .sabd-bnav-label {
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}

/* === Utilities === */
.sabd-text-center {
  text-align: center;
}

.sabd-mt-1 {
  margin-top: 1rem;
}

.sabd-mb-1 {
  margin-bottom: 1rem;
}

.sabd-mt-2 {
  margin-top: 2rem;
}

.sabd-hidden {
  display: none !important;
}

/* === Main Content Padding === */
.sabd-main-content {
  padding-top: 52px;
}

/* === Testimonials === */
.sabd-testimonial {
  background: var(--sabd-bg-section);
  border-radius: var(--sabd-radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--sabd-primary);
}

.sabd-testimonial-name {
  font-weight: 600;
  color: var(--sabd-primary);
  font-size: 1.3rem;
}

.sabd-testimonial-text {
  color: var(--sabd-text-muted);
  font-size: 1.3rem;
  line-height: 1.5;
  margin-top: 0.4rem;
}

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

.sabd-payment-item {
  background: var(--sabd-bg-section);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  color: var(--sabd-text-muted);
  border: 1px solid var(--sabd-border);
}

/* === Winners === */
.sabd-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--sabd-border);
}

.sabd-winner-name {
  color: var(--sabd-accent);
  font-weight: 600;
  font-size: 1.3rem;
}

.sabd-winner-game {
  color: var(--sabd-text-muted);
  font-size: 1.2rem;
}

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

/* === Responsive === */
@media (min-width: 769px) {
  .sabd-bottom-nav {
    display: none;
  }

  .sabd-container {
    max-width: 430px;
  }

  .sabd-header-inner {
    max-width: 430px;
  }

  .sabd-footer-inner {
    max-width: 430px;
  }
}

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

  .sabd-footer {
    padding-bottom: 6rem;
  }
}

@media (max-width: 360px) {
  .sabd-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .sabd-game-item img {
    width: 56px;
    height: 56px;
  }
}
