/* ==============================================================
   WINBETBD.COM - MOBILE SEO & RANKBRAIN OPTIMIZATION STYLESHEET
   ============================================================== */

:root {
  --primary-color: #7c3aed;
  --secondary-color: #10b981;
  --bg-color: #0f172a;
  --text-light: #f8fafc;
  --touch-target-min: 48px; /* Google's recommended minimum touch target */
}

/* 1. Mobile-Optimized Base Reset */
body.mobile-optimized-body {
  margin: 0;
  padding: 0;
  padding-bottom: 80px; /* Space for the bottom drawer */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.seo-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.seo-header {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 2rem 0;
  text-align: center;
}

/* 2. Explicit Touch Targets (Minimum 48px) */
.touch-target {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target-min);
  min-width: var(--touch-target-min);
  padding: 12px 24px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.primary-cta {
  background: linear-gradient(135deg, var(--primary-color), #6d28d9);
  color: white;
  width: 100%;
  max-width: 320px;
  margin: 1rem auto;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.primary-cta:active {
  transform: scale(0.98);
}

/* 3. Anti-Cumulative Layout Shift (CLS) Lazy Load Wrappers */
.img-lazy-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio Placeholder */
  background-color: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.lazy-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

img.lazy-image[loading="lazy"] {
  opacity: 1;
}

/* Typography & Headings Optimized for Scanning */
h1 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: #fff;
}

h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #334155;
  padding-bottom: 0.5rem;
  color: #e2e8f0;
}

h3 {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  color: #cbd5e1;
}

/* Lists and Steps */
.benefits-list, .step-by-step {
  padding-left: 1.5rem;
  color: #cbd5e1;
}

.step-by-step li {
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.step-by-step li strong {
  color: var(--secondary-color);
}

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

/* Game Grid */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.game-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 1rem;
}

/* FAQ Section */
.faq-item {
  background: #1e293b;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
}

.faq-item h3 {
  color: #fff;
  margin-top: 0;
}

/* 4. Fixed Thumb-Accessible Bottom Navigation Drawer */
.mobile-bottom-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid #334155;
  display: flex;
  padding: 12px;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  box-sizing: border-box;
}

.drawer-btn {
  flex: 1;
  min-height: var(--touch-target-min);
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
}

.login-btn {
  background: transparent;
  color: var(--text-light);
  border: 2px solid #334155;
}

.register-btn {
  background: var(--secondary-color);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* iOS Safe Area Padding */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-bottom-drawer {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  body.mobile-optimized-body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}
