/**
 * OKBet Agent Layout Stylesheet
 * File: css/layout-502d.css
 * Class prefix: w502d-
 * CSS variable prefix: --w502d-
 */

:root {
  --w502d-primary: #FFD700;
  --w502d-secondary: #FF69B4;
  --w502d-accent: #BDB76B;
  --w502d-bg: #0E1621;
  --w502d-bg-light: #151f2e;
  --w502d-bg-card: #1a2736;
  --w502d-text: #FFB6C1;
  --w502d-text-light: #ffffff;
  --w502d-text-muted: #8a9bb0;
  --w502d-gold: #FFD700;
  --w502d-pink: #FF69B4;
  --w502d-border: #2a3a4e;
  --w502d-radius: 10px;
  --w502d-radius-sm: 6px;
  --w502d-radius-lg: 16px;
  --w502d-shadow: 0 4px 15px rgba(0,0,0,0.3);
  --w502d-transition: all 0.3s ease;
  font-size: 62.5%;
}

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

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

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

a:hover {
  color: var(--w502d-pink);
}

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

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

/* Header */
.w502d-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--w502d-bg) 0%, var(--w502d-bg-light) 100%);
  border-bottom: 2px solid var(--w502d-primary);
  z-index: 1000;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.w502d-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.w502d-header-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

.w502d-header-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w502d-primary);
  white-space: nowrap;
}

.w502d-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.w502d-btn-register {
  background: linear-gradient(135deg, var(--w502d-primary), #ffaa00);
  color: var(--w502d-bg);
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--w502d-transition);
  min-height: 34px;
  min-width: 68px;
}

.w502d-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(255,215,0,0.4);
}

.w502d-btn-login {
  background: transparent;
  color: var(--w502d-primary);
  border: 2px solid var(--w502d-primary);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--w502d-transition);
  min-height: 34px;
  min-width: 60px;
}

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

.w502d-menu-btn {
  background: none;
  border: none;
  color: var(--w502d-primary);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.w502d-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--w502d-bg);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 60px 20px 20px;
  overflow-y: auto;
  border-left: 2px solid var(--w502d-primary);
}

.w502d-menu-active {
  right: 0 !important;
}

.w502d-menu-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--w502d-primary);
  font-size: 2.4rem;
  cursor: pointer;
}

.w502d-mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--w502d-text-light);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--w502d-border);
  transition: var(--w502d-transition);
}

.w502d-mobile-menu a:hover {
  color: var(--w502d-primary);
  padding-left: 8px;
}

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

.w502d-overlay-active {
  display: block !important;
}

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

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

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

.w502d-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.w502d-slide-active {
  display: block !important;
}

.w502d-carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

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

.w502d-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--w502d-transition);
  border: none;
}

.w502d-dot-active {
  background: var(--w502d-primary) !important;
  transform: scale(1.2);
}

/* Section Styles */
.w502d-section {
  padding: 20px 12px;
}

.w502d-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w502d-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--w502d-border);
}

.w502d-section-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--w502d-pink);
  margin-bottom: 10px;
}

/* Game Grid */
.w502d-game-category-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--w502d-primary);
  margin: 16px 0 10px;
  padding-left: 8px;
  border-left: 4px solid var(--w502d-pink);
}

.w502d-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 4px 0;
}

.w502d-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--w502d-transition);
  border-radius: var(--w502d-radius-sm);
  padding: 6px 4px;
  background: var(--w502d-bg-card);
}

.w502d-game-item:hover {
  transform: translateY(-2px);
  background: var(--w502d-bg-light);
  box-shadow: var(--w502d-shadow);
}

.w502d-game-item img {
  width: 64px;
  height: 64px;
  border-radius: var(--w502d-radius-sm);
  object-fit: cover;
  margin-bottom: 4px;
}

.w502d-game-name {
  font-size: 1.1rem;
  color: var(--w502d-text-light);
  text-align: center;
  line-height: 1.3rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 2.6rem;
}

/* Content Cards */
.w502d-card {
  background: var(--w502d-bg-card);
  border-radius: var(--w502d-radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--w502d-border);
}

.w502d-card-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--w502d-primary);
  margin-bottom: 10px;
}

.w502d-card p {
  font-size: 1.4rem;
  line-height: 1.5rem;
  color: var(--w502d-text-muted);
  margin-bottom: 8px;
}

/* Promo Button */
.w502d-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--w502d-primary), #ffaa00);
  color: var(--w502d-bg);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  transition: var(--w502d-transition);
  text-align: center;
  margin: 6px 0;
}

.w502d-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255,215,0,0.4);
}

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

.w502d-promo-link:hover {
  color: var(--w502d-pink);
}

/* FAQ Section */
.w502d-faq-item {
  background: var(--w502d-bg-card);
  border-radius: var(--w502d-radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  border-left: 3px solid var(--w502d-primary);
}

.w502d-faq-q {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--w502d-primary);
  margin-bottom: 6px;
}

.w502d-faq-a {
  font-size: 1.3rem;
  color: var(--w502d-text-muted);
  line-height: 1.5rem;
}

/* Footer */
.w502d-footer {
  background: var(--w502d-bg-light);
  padding: 20px 12px 10px;
  border-top: 2px solid var(--w502d-primary);
  margin-top: 20px;
}

.w502d-footer-desc {
  font-size: 1.3rem;
  color: var(--w502d-text-muted);
  line-height: 1.5rem;
  margin-bottom: 14px;
}

.w502d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.w502d-footer-link {
  background: var(--w502d-bg-card);
  color: var(--w502d-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  transition: var(--w502d-transition);
  border: 1px solid var(--w502d-border);
  cursor: pointer;
}

.w502d-footer-link:hover {
  background: var(--w502d-primary);
  color: var(--w502d-bg);
}

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

/* Bottom Navigation */
.w502d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, var(--w502d-bg-light) 0%, var(--w502d-bg) 100%);
  border-top: 2px solid var(--w502d-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  padding: 0 4px;
}

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

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

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

.w502d-bottom-btn .w502d-nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.w502d-bottom-btn .w502d-nav-label {
  font-size: 1rem;
  font-weight: 600;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .w502d-bottom-nav {
    display: none;
  }
}

/* Testimonial Cards */
.w502d-testimonial {
  background: var(--w502d-bg-card);
  border-radius: var(--w502d-radius);
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--w502d-border);
}

.w502d-testimonial-name {
  font-weight: 700;
  color: var(--w502d-primary);
  font-size: 1.4rem;
}

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

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

.w502d-rtp-table th {
  background: var(--w502d-bg-card);
  color: var(--w502d-primary);
  padding: 8px 6px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--w502d-primary);
}

.w502d-rtp-table td {
  padding: 6px;
  border-bottom: 1px solid var(--w502d-border);
  color: var(--w502d-text-muted);
}

.w502d-rtp-table tr:hover td {
  background: var(--w502d-bg-card);
}

/* Winner list */
.w502d-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--w502d-border);
  font-size: 1.3rem;
}

.w502d-winner-name {
  color: var(--w502d-text-light);
  font-weight: 600;
}

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

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

/* Payment methods */
.w502d-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.w502d-payment-item {
  background: var(--w502d-bg-card);
  padding: 10px 16px;
  border-radius: var(--w502d-radius-sm);
  border: 1px solid var(--w502d-border);
  font-size: 1.3rem;
  color: var(--w502d-text-light);
  font-weight: 600;
}

/* App download CTA */
.w502d-app-cta {
  background: linear-gradient(135deg, var(--w502d-bg-card), var(--w502d-bg-light));
  border-radius: var(--w502d-radius-lg);
  padding: 20px 16px;
  text-align: center;
  border: 2px solid var(--w502d-primary);
}

.w502d-app-cta h3 {
  color: var(--w502d-primary);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.w502d-app-cta p {
  color: var(--w502d-text-muted);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

/* Utility */
.w502d-text-center { text-align: center; }
.w502d-mt-10 { margin-top: 10px; }
.w502d-mb-10 { margin-bottom: 10px; }
.w502d-mb-16 { margin-bottom: 16px; }
.w502d-hidden { display: none !important; }

/* Desktop styles */
@media (min-width: 769px) {
  body {
    max-width: 430px;
    margin: 0 auto;
  }
  .w502d-header {
    max-width: 430px;
  }
  .w502d-bottom-nav {
    display: none;
  }
  main {
    padding-bottom: 20px;
  }
}

/* List styles */
.w502d-list {
  list-style: none;
  padding: 0;
}

.w502d-list li {
  padding: 6px 0 6px 18px;
  position: relative;
  font-size: 1.3rem;
  color: var(--w502d-text-muted);
  line-height: 1.5rem;
}

.w502d-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--w502d-primary);
  border-radius: 50%;
}

/* Step list */
.w502d-steps {
  counter-reset: w502d-step;
  list-style: none;
  padding: 0;
}

.w502d-steps li {
  counter-increment: w502d-step;
  padding: 8px 0 8px 36px;
  position: relative;
  font-size: 1.3rem;
  color: var(--w502d-text-muted);
  line-height: 1.5rem;
}

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