/**
 * Playtime Casino APK - Core Stylesheet
 * All classes prefixed with w5883- for namespace isolation
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
  --w5883-primary: #D2B48C;
  --w5883-bg: #2E4057;
  --w5883-text: #FAF0E6;
  --w5883-bg-dark: #1B2A3D;
  --w5883-bg-light: #3A5269;
  --w5883-accent: #D2B48C;
  --w5883-accent-hover: #E8C9A0;
  --w5883-border: rgba(210, 180, 140, 0.3);
  --w5883-shadow: rgba(0, 0, 0, 0.25);
  --w5883-radius: 10px;
  --w5883-radius-sm: 6px;
  --w5883-font-size-base: 62.5%;
  --w5883-transition: 0.3s ease;
}

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

html {
  font-size: var(--w5883-font-size-base);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--w5883-bg);
  color: var(--w5883-text);
  line-height: 1.5rem;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

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

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

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

/* Fixed Header */
.w5883-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--w5883-bg-dark);
  border-bottom: 1px solid var(--w5883-border);
  height: 56px;
}

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

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

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

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

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

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

.w5883-btn-register {
  background: var(--w5883-primary);
  color: var(--w5883-bg-dark);
}

.w5883-btn-register:hover {
  background: var(--w5883-accent-hover);
  transform: scale(1.03);
}

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

.w5883-btn-login:hover {
  background: rgba(210, 180, 140, 0.15);
}

.w5883-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: var(--w5883-text);
  font-size: 2rem;
  background: none;
  border: none;
}

/* Mobile Menu */
.w5883-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--w5883-transition);
}

.w5883-overlay-active {
  opacity: 1;
  pointer-events: all;
}

.w5883-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--w5883-bg-dark);
  z-index: 9999;
  transition: right var(--w5883-transition);
  padding: 1.6rem 0;
  overflow-y: auto;
}

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

.w5883-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.4rem 1.4rem;
  border-bottom: 1px solid var(--w5883-border);
}

.w5883-menu-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w5883-primary);
}

.w5883-menu-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--w5883-text);
  font-size: 1.8rem;
  background: none;
  border: none;
}

.w5883-menu-nav {
  list-style: none;
  padding: 1rem 0;
}

.w5883-menu-nav li {
  border-bottom: 1px solid rgba(210, 180, 140, 0.1);
}

.w5883-menu-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  color: var(--w5883-text);
  font-size: 1.4rem;
  transition: all var(--w5883-transition);
}

.w5883-menu-nav a:hover {
  background: rgba(210, 180, 140, 0.1);
  color: var(--w5883-primary);
}

.w5883-menu-nav .material-icons {
  font-size: 2rem;
  color: var(--w5883-primary);
}

/* Main Content */
.w5883-main {
  padding-top: 56px;
}

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

/* Carousel */
.w5883-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--w5883-radius) var(--w5883-radius);
}

.w5883-slides-wrapper {
  position: relative;
  width: 100%;
  padding-top: 46%;
}

.w5883-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--w5883-transition);
  cursor: pointer;
}

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

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

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

.w5883-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(250, 240, 230, 0.4);
  cursor: pointer;
  transition: all var(--w5883-transition);
  border: none;
}

.w5883-dot-active {
  background: var(--w5883-primary);
  width: 22px;
  border-radius: 4px;
}

/* Sections */
.w5883-section {
  padding: 2rem 0;
}

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

.w5883-section-title i,
.w5883-section-title .material-icons {
  font-size: 2rem;
}

.w5883-section-text {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--w5883-text);
  margin-bottom: 1rem;
}

.w5883-section-text p {
  margin-bottom: 1rem;
}

/* Game Grid */
.w5883-game-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--w5883-accent-hover);
  margin: 1.6rem 0 1rem;
  padding-left: 0.4rem;
  border-left: 3px solid var(--w5883-primary);
}

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

.w5883-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform var(--w5883-transition);
  text-align: center;
}

.w5883-game-item:hover {
  transform: translateY(-3px);
}

.w5883-game-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--w5883-radius-sm);
  overflow: hidden;
  margin-bottom: 0.4rem;
  border: 2px solid var(--w5883-border);
  transition: border-color var(--w5883-transition);
}

.w5883-game-item:hover .w5883-game-icon {
  border-color: var(--w5883-primary);
}

.w5883-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w5883-game-name {
  font-size: 1rem;
  color: var(--w5883-text);
  line-height: 1.2;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content Cards */
.w5883-card {
  background: var(--w5883-bg-light);
  border-radius: var(--w5883-radius);
  padding: 1.6rem;
  margin-bottom: 1.4rem;
  border: 1px solid var(--w5883-border);
}

.w5883-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--w5883-primary);
  margin-bottom: 1rem;
}

.w5883-card-text {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--w5883-text);
}

/* Promo Button (large) */
.w5883-promo-btn {
  display: block;
  width: 100%;
  padding: 1.4rem;
  background: linear-gradient(135deg, var(--w5883-primary), #B8956A);
  color: var(--w5883-bg-dark);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: var(--w5883-radius);
  cursor: pointer;
  transition: all var(--w5883-transition);
  margin: 1.6rem 0;
}

.w5883-promo-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px var(--w5883-shadow);
}

.w5883-promo-link {
  color: var(--w5883-primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  transition: color var(--w5883-transition);
}

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

/* Footer */
.w5883-footer {
  background: var(--w5883-bg-dark);
  border-top: 1px solid var(--w5883-border);
  padding: 2.4rem 0 1.6rem;
  margin-top: 2rem;
}

.w5883-footer-brand {
  font-size: 1.3rem;
  line-height: 1.6;
  color: rgba(250, 240, 230, 0.7);
  margin-bottom: 1.6rem;
}

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

.w5883-footer-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(210, 180, 140, 0.1);
  border: 1px solid var(--w5883-border);
  border-radius: var(--w5883-radius-sm);
  color: var(--w5883-text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--w5883-transition);
}

.w5883-footer-link:hover {
  background: rgba(210, 180, 140, 0.2);
  color: var(--w5883-primary);
}

.w5883-footer-copy {
  font-size: 1.1rem;
  color: rgba(250, 240, 230, 0.5);
  text-align: center;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(210, 180, 140, 0.15);
}

/* Bottom Navigation */
.w5883-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--w5883-bg-dark);
  border-top: 1px solid var(--w5883-border);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.4rem;
  box-shadow: 0 -2px 10px var(--w5883-shadow);
}

.w5883-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(250, 240, 230, 0.6);
  transition: all var(--w5883-transition);
  padding: 0.4rem;
  border-radius: var(--w5883-radius-sm);
  position: relative;
}

.w5883-bnav-btn i,
.w5883-bnav-btn .material-icons,
.w5883-bnav-btn ion-icon,
.w5883-bnav-btn bi {
  font-size: 22px;
  margin-bottom: 2px;
}

.w5883-bnav-text {
  font-size: 1rem;
  line-height: 1.2;
}

.w5883-bnav-btn:hover,
.w5883-bnav-btn:focus {
  color: var(--w5883-primary);
  background: rgba(210, 180, 140, 0.1);
}

.w5883-bnav-active {
  color: var(--w5883-primary) !important;
  transform: scale(0.95);
}

.w5883-bnav-btn.w5883-bnav-current {
  color: var(--w5883-primary);
}

.w5883-bnav-current::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--w5883-primary);
  border-radius: 1px;
}

/* Utility */
.w5883-text-center { text-align: center; }
.w5883-mt-1 { margin-top: 1rem; }
.w5883-mt-2 { margin-top: 2rem; }
.w5883-mb-1 { margin-bottom: 1rem; }
.w5883-mb-2 { margin-bottom: 2rem; }
.w5883-hidden { display: none !important; }

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .w5883-bottom-nav {
    display: none;
  }
  .w5883-hamburger {
    display: none;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .w5883-container {
    padding: 0 1rem;
  }
}

/* FAQ Accordion */
.w5883-faq-item {
  background: var(--w5883-bg-light);
  border-radius: var(--w5883-radius-sm);
  margin-bottom: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--w5883-border);
}

.w5883-faq-q {
  padding: 1.2rem;
  font-weight: 600;
  color: var(--w5883-primary);
  font-size: 1.3rem;
  cursor: pointer;
}

.w5883-faq-a {
  padding: 0 1.2rem 1.2rem;
  font-size: 1.2rem;
  color: var(--w5883-text);
  line-height: 1.5;
}

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

.w5883-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(210, 180, 140, 0.1);
  font-size: 1.3rem;
  line-height: 1.5;
}

.w5883-feature-list li:last-child {
  border-bottom: none;
}

.w5883-feature-list i,
.w5883-feature-list .material-icons {
  color: var(--w5883-primary);
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Testimonial */
.w5883-testimonial {
  background: var(--w5883-bg-light);
  border-radius: var(--w5883-radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--w5883-primary);
}

.w5883-testimonial-text {
  font-size: 1.2rem;
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 0.8rem;
  color: rgba(250, 240, 230, 0.9);
}

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

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

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

/* Winner showcase */
.w5883-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(210, 180, 140, 0.1);
  font-size: 1.2rem;
}

.w5883-winner-name {
  color: var(--w5883-primary);
  font-weight: 600;
}

.w5883-winner-amount {
  color: #4CAF50;
  font-weight: 700;
}
