/**
 * Talabat UAE - Core CSS Module
 * All classes use v25f- prefix for namespace isolation
 * Color palette: #34495E (dark bg) | #AFEEEE (accent) | #5F9EA0 (teal) | #A9A9A9 (gray text)
 */

/* CSS Variables */
:root {
  --v25f-primary: #5F9EA0;
  --v25f-bg: #34495E;
  --v25f-bg-dark: #2c3e50;
  --v25f-bg-light: #3d566e;
  --v25f-accent: #AFEEEE;
  --v25f-text: #ffffff;
  --v25f-text-muted: #A9A9A9;
  --v25f-text-light: #d0d0d0;
  --v25f-highlight: #7ec8c8;
  --v25f-border: rgba(175, 238, 238, 0.15);
  --v25f-shadow: rgba(0, 0, 0, 0.3);
  --v25f-gold: #e6c875;
  --v25f-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: var(--v25f-font);
  background: var(--v25f-bg);
  color: var(--v25f-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--v25f-accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.v25f-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--v25f-bg-dark);
  border-bottom: 1px solid var(--v25f-border);
  max-width: 430px; margin: 0 auto;
}
.v25f-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; height: 5.2rem;
}
.v25f-logo { display: flex; align-items: center; gap: 0.6rem; }
.v25f-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.4rem; }
.v25f-logo-text { color: var(--v25f-accent); font-size: 1.6rem; font-weight: 700; }
.v25f-header-actions { display: flex; gap: 0.6rem; align-items: center; }
.v25f-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.4rem; border-radius: 0.5rem; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
  min-height: 3.6rem; touch-action: manipulation;
}
.v25f-btn-register {
  background: var(--v25f-primary); color: #fff;
}
.v25f-btn-register:hover { background: var(--v25f-highlight); }
.v25f-btn-login {
  background: transparent; color: var(--v25f-accent);
  border: 1px solid var(--v25f-accent);
}
.v25f-btn-login:hover { background: rgba(175, 238, 238, 0.1); }
.v25f-menu-btn {
  background: none; border: none; color: var(--v25f-accent);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
}

/* Mobile Menu Overlay */
.v25f-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.v25f-mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0; width: 75%; max-width: 280px;
  background: var(--v25f-bg-dark); z-index: 9999;
  transform: translateX(-100%); transition: transform 0.3s ease;
  padding: 2rem 0; overflow-y: auto;
}
.v25f-mobile-menu-title {
  color: var(--v25f-accent); font-size: 1.8rem; font-weight: 700;
  padding: 0 1.6rem 1.6rem; border-bottom: 1px solid var(--v25f-border);
}
.v25f-mobile-menu a {
  display: block; padding: 1.2rem 1.6rem; color: var(--v25f-text-light);
  font-size: 1.4rem; border-bottom: 1px solid var(--v25f-border);
  transition: background 0.2s;
}
.v25f-mobile-menu a:hover { background: var(--v25f-bg-light); color: var(--v25f-accent); }

/* Main Content */
main { padding-top: 5.2rem; }
.v25f-container { padding: 0 1.2rem; }

/* Carousel */
.v25f-carousel { position: relative; overflow: hidden; border-radius: 0.8rem; margin: 1.2rem; }
.v25f-slide { display: none; width: 100%; cursor: pointer; }
.v25f-slide:first-child { display: block; }
.v25f-slide img { width: 100%; height: auto; border-radius: 0.8rem; }
.v25f-carousel-dots {
  display: flex; justify-content: center; gap: 0.6rem;
  padding: 0.8rem 0;
}
.v25f-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: var(--v25f-text-muted); cursor: pointer;
  transition: background 0.3s;
}
.v25f-dot-active { background: var(--v25f-accent); }

/* Section Headings */
.v25f-section { padding: 1.6rem 1.2rem; }
.v25f-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--v25f-accent);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--v25f-primary);
}
.v25f-section-title i { margin-right: 0.5rem; }

/* Game Grid */
.v25f-category-label {
  font-size: 1.5rem; font-weight: 600; color: var(--v25f-highlight);
  margin: 1.6rem 0 0.8rem; padding-left: 0.4rem;
}
.v25f-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
}
.v25f-game-card {
  display: flex; flex-direction: column; align-items: center;
  background: var(--v25f-bg-light); border-radius: 0.6rem;
  padding: 0.4rem; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.v25f-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--v25f-shadow);
}
.v25f-game-card img {
  width: 100%; aspect-ratio: 1; border-radius: 0.4rem; object-fit: cover;
}
.v25f-game-card span {
  font-size: 1rem; color: var(--v25f-text-light); text-align: center;
  margin-top: 0.3rem; line-height: 1.2rem;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* Content Cards */
.v25f-card {
  background: var(--v25f-bg-light); border-radius: 0.8rem;
  padding: 1.4rem; margin-bottom: 1.2rem;
  border: 1px solid var(--v25f-border);
}
.v25f-card h2, .v25f-card h3 {
  color: var(--v25f-accent); margin-bottom: 0.8rem;
}
.v25f-card p {
  color: var(--v25f-text-light); font-size: 1.3rem; line-height: 1.8rem;
  margin-bottom: 0.6rem;
}
.v25f-card ul {
  padding-left: 1.6rem; color: var(--v25f-text-light);
}
.v25f-card ul li {
  margin-bottom: 0.4rem; font-size: 1.3rem; line-height: 1.6rem;
}

/* Promo Link Buttons */
.v25f-promo-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2.4rem; background: var(--v25f-primary);
  color: #fff; border-radius: 0.6rem; font-size: 1.4rem;
  font-weight: 700; cursor: pointer; border: none;
  transition: background 0.2s, transform 0.15s;
  margin: 0.6rem 0; min-height: 4.4rem;
  text-decoration: none;
}
.v25f-promo-btn:hover {
  background: var(--v25f-highlight); transform: scale(1.02);
}
.v25f-promo-text {
  color: var(--v25f-accent); font-weight: 700; cursor: pointer;
  text-decoration: underline;
}
.v25f-promo-text:hover { color: var(--v25f-highlight); }

/* FAQ */
.v25f-faq-item { margin-bottom: 1rem; }
.v25f-faq-q {
  font-weight: 600; color: var(--v25f-accent); font-size: 1.3rem; margin-bottom: 0.3rem;
}
.v25f-faq-a { color: var(--v25f-text-light); font-size: 1.2rem; line-height: 1.6rem; }

/* Feature List */
.v25f-feature-list { list-style: none; padding: 0; }
.v25f-feature-list li {
  padding: 0.8rem 0; border-bottom: 1px solid var(--v25f-border);
  display: flex; align-items: flex-start; gap: 0.8rem;
}
.v25f-feature-list li:last-child { border-bottom: none; }
.v25f-feature-list i {
  color: var(--v25f-accent); font-size: 1.6rem; margin-top: 0.2rem; flex-shrink: 0;
}

/* Winner Showcase */
.v25f-winner-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem;
}
.v25f-winner-card {
  background: var(--v25f-bg); border-radius: 0.6rem;
  padding: 0.8rem; text-align: center;
  border: 1px solid var(--v25f-border);
}
.v25f-winner-card .v25f-winner-name {
  color: var(--v25f-gold); font-size: 1.2rem; font-weight: 600;
}
.v25f-winner-card .v25f-winner-amount {
  color: var(--v25f-accent); font-size: 1.4rem; font-weight: 700;
}
.v25f-winner-card .v25f-winner-game {
  color: var(--v25f-text-muted); font-size: 1rem;
}

/* Payment Methods */
.v25f-payment-row {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
}
.v25f-payment-item {
  background: var(--v25f-bg); border-radius: 0.5rem;
  padding: 0.6rem 1.2rem; border: 1px solid var(--v25f-border);
  color: var(--v25f-text-light); font-size: 1.2rem;
}

/* Testimonials */
.v25f-testimonial {
  background: var(--v25f-bg); border-radius: 0.8rem;
  padding: 1.2rem; margin-bottom: 0.8rem;
  border-left: 3px solid var(--v25f-primary);
}
.v25f-testimonial p { font-style: italic; font-size: 1.2rem; }
.v25f-testimonial-author {
  color: var(--v25f-gold); font-size: 1.1rem; margin-top: 0.4rem;
}

/* Footer */
.v25f-footer {
  background: var(--v25f-bg-dark); padding: 2rem 1.2rem 1rem;
  border-top: 1px solid var(--v25f-border);
}
.v25f-footer-brand {
  color: var(--v25f-text-muted); font-size: 1.2rem; line-height: 1.6rem;
  margin-bottom: 1.2rem;
}
.v25f-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem;
}
.v25f-footer-links a {
  color: var(--v25f-accent); font-size: 1.1rem; padding: 0.4rem 0.8rem;
  background: var(--v25f-bg); border-radius: 0.4rem;
  transition: background 0.2s;
}
.v25f-footer-links a:hover { background: var(--v25f-bg-light); }
.v25f-footer-copy {
  color: var(--v25f-text-muted); font-size: 1rem; text-align: center;
  padding-top: 1rem; border-top: 1px solid var(--v25f-border);
}

/* Bottom Navigation */
.v25f-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--v25f-bg-dark);
  border-top: 1px solid var(--v25f-border);
  display: none; height: 60px;
  max-width: 430px; margin: 0 auto;
}
.v25f-bottom-nav-inner {
  display: flex; justify-content: space-around; align-items: center;
  height: 100%; padding: 0 0.4rem;
}
.v25f-bottom-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 52px;
  background: none; border: none; color: var(--v25f-text-muted);
  cursor: pointer; transition: all 0.2s; padding: 0.4rem;
  touch-action: manipulation; position: relative;
}
.v25f-bottom-btn i, .v25f-bottom-btn .material-icons {
  font-size: 2.2rem; margin-bottom: 0.2rem; transition: color 0.2s;
}
.v25f-bottom-btn span {
  font-size: 1rem; white-space: nowrap;
}
.v25f-bottom-btn:hover, .v25f-bottom-btn:focus {
  color: var(--v25f-accent);
}
.v25f-bottom-btn.v25f-active {
  color: var(--v25f-accent);
}
.v25f-bottom-btn.v25f-active::after {
  content: ''; position: absolute; top: -1px; left: 25%; right: 25%;
  height: 2px; background: var(--v25f-accent); border-radius: 1px;
}

/* RTP Compact */
.v25f-rtp-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem;
}
.v25f-rtp-item {
  background: var(--v25f-bg); border-radius: 0.5rem;
  padding: 0.6rem; text-align: center;
  border: 1px solid var(--v25f-border);
}
.v25f-rtp-item .v25f-rtp-game { color: var(--v25f-text-light); font-size: 1.1rem; }
.v25f-rtp-item .v25f-rtp-value { color: var(--v25f-gold); font-size: 1.4rem; font-weight: 700; }

/* Achievement badges */
.v25f-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--v25f-bg); border-radius: 2rem;
  padding: 0.4rem 1rem; margin: 0.3rem; font-size: 1.1rem;
  border: 1px solid var(--v25f-border);
}
.v25f-badge i { color: var(--v25f-gold); }

/* Trick Tips */
.v25f-trick {
  background: var(--v25f-bg); border-radius: 0.6rem;
  padding: 0.8rem 1.2rem; margin-bottom: 0.6rem;
  border-left: 3px solid var(--v25f-primary);
  color: var(--v25f-text-light); font-size: 1.2rem; line-height: 1.5rem;
}

/* App Download CTA */
.v25f-app-cta {
  background: linear-gradient(135deg, var(--v25f-bg-light), var(--v25f-bg));
  border-radius: 0.8rem; padding: 1.6rem; text-align: center;
  border: 1px solid var(--v25f-border);
}
.v25f-app-cta h3 { color: var(--v25f-accent); margin-bottom: 0.6rem; font-size: 1.6rem; }
.v25f-app-cta p { color: var(--v25f-text-light); font-size: 1.2rem; margin-bottom: 1rem; }

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .v25f-bottom-nav { display: none !important; }
  body { max-width: 430px; }
}
/* Mobile: show bottom nav, add padding */
@media (max-width: 768px) {
  .v25f-bottom-nav { display: block; }
  main { padding-bottom: 80px; }
}
