/*
 * layout-14fe.css - Main Stylesheet for Okbet App
 * All classes use prefix "pg14-" for namespace isolation
 * Color palette: #2C2C2C | #DCDCDC | #F8F8FF | #BDC3C7
 * Mobile-first design, max-width 430px
 */

:root {
  --pg14-primary: #2C2C2C;
  --pg14-secondary: #DCDCDC;
  --pg14-bg: #F8F8FF;
  --pg14-muted: #BDC3C7;
  --pg14-accent: #E8B930;
  --pg14-accent-dark: #C49A1A;
  --pg14-danger: #E74C3C;
  --pg14-success: #27AE60;
  --pg14-text-dark: #1A1A1A;
  --pg14-text-light: #F8F8FF;
  --pg14-text-gray: #6B7280;
  --pg14-border: #3A3A3A;
  --pg14-card-bg: #363636;
  --pg14-radius: 8px;
  --pg14-radius-lg: 12px;
  --pg14-shadow: 0 2px 8px rgba(0,0,0,0.15);
  --pg14-transition: all 0.25s ease;
}

/* Base reset and typography */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--pg14-primary);
  color: var(--pg14-secondary);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pg14-accent);
  text-decoration: none;
  transition: var(--pg14-transition);
}

a:hover {
  color: var(--pg14-accent-dark);
  text-decoration: underline;
}

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

/* Header */
.pg14-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, #1F1F1F 0%, #2C2C2C 100%);
  z-index: 1000;
  border-bottom: 1px solid var(--pg14-border);
  padding: 0;
}

.pg14-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  height: 52px;
}

.pg14-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.pg14-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg14-accent);
  white-space: nowrap;
}

.pg14-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pg14-btn-register {
  background: linear-gradient(135deg, var(--pg14-accent) 0%, var(--pg14-accent-dark) 100%);
  color: var(--pg14-text-dark);
  border: none;
  padding: 6px 14px;
  border-radius: var(--pg14-radius);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--pg14-transition);
  white-space: nowrap;
}

.pg14-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(232, 185, 48, 0.4);
}

.pg14-btn-login {
  background: transparent;
  color: var(--pg14-accent);
  border: 1.5px solid var(--pg14-accent);
  padding: 5px 12px;
  border-radius: var(--pg14-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pg14-transition);
  white-space: nowrap;
}

.pg14-btn-login:hover {
  background: rgba(232, 185, 48, 0.1);
}

.pg14-menu-toggle {
  background: none;
  border: none;
  color: var(--pg14-secondary);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile menu overlay */
.pg14-mobile-menu {
  position: fixed;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(44, 44, 44, 0.98);
  z-index: 9999;
  padding: 8px 0;
  border-bottom: 2px solid var(--pg14-accent);
}

.pg14-menu-active {
  display: block;
  animation: pg14-slideDown 0.3s ease;
}

.pg14-menu-hidden {
  display: none;
}

@keyframes pg14-slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.pg14-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--pg14-secondary);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--pg14-transition);
}

.pg14-mobile-menu a:hover {
  background: rgba(232, 185, 48, 0.08);
  color: var(--pg14-accent);
  text-decoration: none;
}

.pg14-mobile-menu a i,
.pg14-mobile-menu a .material-icons {
  font-size: 1.8rem;
  width: 24px;
  text-align: center;
}

/* Main content wrapper */
.pg14-main {
  margin-top: 52px;
  padding-bottom: 72px;
  min-height: 100vh;
}

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

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

.pg14-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
  transition: opacity 0.5s ease;
}

.pg14-carousel-slide:first-child {
  display: block;
}

.pg14-carousel-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}

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

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

.pg14-dot-active {
  background: var(--pg14-accent);
  width: 20px;
  border-radius: 4px;
}

/* Sections */
.pg14-section {
  padding: 16px 12px;
}

.pg14-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg14-accent);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pg14-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pg14-section-title i {
  font-size: 2rem;
}

/* Game grid */
.pg14-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pg14-game-card {
  text-align: center;
  cursor: pointer;
  transition: var(--pg14-transition);
  border-radius: var(--pg14-radius);
  overflow: hidden;
  background: var(--pg14-card-bg);
  padding: 4px;
}

.pg14-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 185, 48, 0.2);
}

.pg14-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.pg14-game-card span {
  display: block;
  font-size: 1.05rem;
  color: var(--pg14-secondary);
  margin-top: 3px;
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
}

/* Content blocks */
.pg14-content-block {
  background: var(--pg14-card-bg);
  border-radius: var(--pg14-radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.pg14-content-block h2 {
  font-size: 1.7rem;
  color: var(--pg14-accent);
  margin-bottom: 10px;
}

.pg14-content-block h3 {
  font-size: 1.5rem;
  color: var(--pg14-secondary);
  margin: 10px 0 6px;
}

.pg14-content-block p {
  color: var(--pg14-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.pg14-content-block ul {
  padding-left: 18px;
  margin-bottom: 8px;
}

.pg14-content-block li {
  color: var(--pg14-secondary);
  line-height: 1.6;
  margin-bottom: 4px;
  font-size: 1.35rem;
}

/* Promo buttons in content */
.pg14-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg14-accent) 0%, var(--pg14-accent-dark) 100%);
  color: var(--pg14-text-dark);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--pg14-radius);
  cursor: pointer;
  border: none;
  font-size: 1.4rem;
  transition: var(--pg14-transition);
  text-align: center;
}

.pg14-promo-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 16px rgba(232, 185, 48, 0.5);
  text-decoration: none;
  color: var(--pg14-text-dark);
}

.pg14-promo-text {
  color: var(--pg14-accent);
  font-weight: 600;
  cursor: pointer;
  transition: var(--pg14-transition);
}

.pg14-promo-text:hover {
  color: var(--pg14-accent-dark);
  text-decoration: underline;
}

/* Winner showcase */
.pg14-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.pg14-winner-amount {
  color: var(--pg14-success);
  font-weight: 700;
  font-size: 1.4rem;
}

.pg14-winner-game {
  color: var(--pg14-text-gray);
  font-size: 1.1rem;
}

/* Testimonial */
.pg14-testimonial {
  background: rgba(232, 185, 48, 0.06);
  border-left: 3px solid var(--pg14-accent);
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 0 var(--pg14-radius) var(--pg14-radius) 0;
}

.pg14-testimonial p {
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.pg14-testimonial-author {
  color: var(--pg14-accent);
  font-weight: 600;
  font-size: 1.2rem;
}

/* Payment icons row */
.pg14-payment-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.pg14-payment-item {
  background: var(--pg14-card-bg);
  border: 1px solid var(--pg14-border);
  border-radius: var(--pg14-radius);
  padding: 8px 14px;
  font-size: 1.2rem;
  color: var(--pg14-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Download CTA */
.pg14-download-cta {
  background: linear-gradient(135deg, #1F1F1F 0%, #363636 100%);
  border: 1px solid var(--pg14-accent);
  border-radius: var(--pg14-radius-lg);
  padding: 20px 16px;
  text-align: center;
}

.pg14-download-cta h3 {
  color: var(--pg14-accent);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.pg14-download-cta p {
  color: var(--pg14-secondary);
  margin-bottom: 14px;
}

/* Footer */
.pg14-footer {
  background: linear-gradient(180deg, #1F1F1F 0%, #151515 100%);
  padding: 20px 12px;
  border-top: 2px solid var(--pg14-border);
}

.pg14-footer-brand {
  font-size: 1.3rem;
  color: var(--pg14-text-gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

.pg14-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pg14-footer-promos button {
  flex: 1 1 calc(50% - 4px);
  min-width: 120px;
  padding: 8px 10px;
  border-radius: var(--pg14-radius);
  border: 1px solid var(--pg14-accent);
  background: transparent;
  color: var(--pg14-accent);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pg14-transition);
}

.pg14-footer-promos button:hover {
  background: var(--pg14-accent);
  color: var(--pg14-text-dark);
}

.pg14-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--pg14-border);
  border-bottom: 1px solid var(--pg14-border);
}

.pg14-footer-links a {
  font-size: 1.2rem;
  color: var(--pg14-text-gray);
}

.pg14-footer-links a:hover {
  color: var(--pg14-accent);
}

.pg14-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--pg14-text-gray);
  padding-top: 12px;
}

/* Bottom navigation - mobile fixed */
.pg14-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid var(--pg14-border);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.pg14-bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--pg14-muted);
  cursor: pointer;
  transition: var(--pg14-transition);
  padding: 4px 2px;
  border-radius: var(--pg14-radius);
  position: relative;
}

.pg14-bottom-nav button:hover,
.pg14-bottom-nav button:focus {
  color: var(--pg14-accent);
}

.pg14-bottom-nav button.active {
  color: var(--pg14-accent);
}

.pg14-bottom-nav button.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--pg14-accent);
  border-radius: 2px;
}

.pg14-bottom-nav button i,
.pg14-bottom-nav button .material-icons,
.pg14-bottom-nav button ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.pg14-bottom-nav button span {
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
}

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

/* Desktop header adjustments */
@media (min-width: 769px) {
  .pg14-header {
    max-width: 430px;
  }
}

/* Utility classes */
.pg14-text-center { text-align: center; }
.pg14-text-accent { color: var(--pg14-accent); }
.pg14-text-success { color: var(--pg14-success); }
.pg14-mt-8 { margin-top: 8px; }
.pg14-mt-16 { margin-top: 16px; }
.pg14-mb-8 { margin-bottom: 8px; }
.pg14-mb-16 { margin-bottom: 16px; }
.pg14-p-12 { padding: 12px; }
.pg14-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg14-gap-8 { gap: 8px; }

/* H1 styling */
.pg14-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pg14-accent);
  margin-bottom: 14px;
  line-height: 1.3;
  padding: 0 2px;
}

/* Achievement badges */
.pg14-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(232, 185, 48, 0.12);
  border: 1px solid var(--pg14-accent);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 1.15rem;
  color: var(--pg14-accent);
  margin: 3px;
}

/* Tricks/tips list */
.pg14-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.pg14-tip-number {
  background: var(--pg14-accent);
  color: var(--pg14-text-dark);
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* FAQ accordion style */
.pg14-faq-item {
  border-bottom: 1px solid var(--pg14-border);
  padding: 10px 0;
}

.pg14-faq-q {
  font-weight: 700;
  color: var(--pg14-accent);
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.pg14-faq-a {
  color: var(--pg14-secondary);
  font-size: 1.3rem;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 320px) {
  .pg14-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pg14-h1 {
    font-size: 1.7rem;
  }
}
