/*
 * Arena Plus PH - Layout Stylesheet
 * Class prefix: gdf1-
 * Color palette: #ADFF2F (green), #A0522D (brown), #DC143C (crimson), #FF69B4 (pink), #212F3D (dark navy)
 * Mobile-first responsive design
 */

:root {
  --gdf1-primary: #DC143C;
  --gdf1-secondary: #ADFF2F;
  --gdf1-accent: #FF69B4;
  --gdf1-warm: #A0522D;
  --gdf1-bg: #212F3D;
  --gdf1-bg-light: #2C3E50;
  --gdf1-bg-card: #1A252F;
  --gdf1-text: #FFFFFF;
  --gdf1-text-muted: #B0BEC5;
  --gdf1-text-dim: #78909C;
  --gdf1-border: #34495E;
  --gdf1-gold: #FFD700;
  --gdf1-radius: 8px;
  --gdf1-radius-lg: 12px;
  --gdf1-header-h: 56px;
  --gdf1-bottom-h: 60px;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

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

/* ===== HEADER ===== */
.gdf1-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--gdf1-header-h);
  background: linear-gradient(135deg, var(--gdf1-bg) 0%, var(--gdf1-bg-light) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  border-bottom: 1px solid var(--gdf1-border);
}

.gdf1-header-shadow {
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.gdf1-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

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

.gdf1-logo-area span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gdf1-secondary);
  letter-spacing: -0.3px;
}

.gdf1-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gdf1-btn-register {
  background: var(--gdf1-primary);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--gdf1-radius);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gdf1-btn-register:hover {
  background: #E8294A;
  transform: scale(1.04);
}

.gdf1-btn-login {
  background: transparent;
  color: var(--gdf1-secondary);
  border: 1.5px solid var(--gdf1-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: var(--gdf1-radius);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gdf1-btn-login:hover {
  background: rgba(173,255,47,0.12);
}

.gdf1-menu-toggle {
  background: none;
  border: none;
  color: var(--gdf1-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ===== MOBILE MENU ===== */
.gdf1-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gdf1-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

.gdf1-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: var(--gdf1-bg-card);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

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

.gdf1-mobile-menu .gdf1-menu-close {
  background: none;
  border: none;
  color: var(--gdf1-text);
  font-size: 2.2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.gdf1-menu-links {
  list-style: none;
  margin-top: 3rem;
}

.gdf1-menu-links li {
  border-bottom: 1px solid var(--gdf1-border);
}

.gdf1-menu-links a {
  display: block;
  padding: 1.2rem 0.5rem;
  color: var(--gdf1-text);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.2s;
}

.gdf1-menu-links a:hover {
  color: var(--gdf1-secondary);
}

/* ===== BOTTOM NAV ===== */
.gdf1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--gdf1-bottom-h);
  background: linear-gradient(180deg, var(--gdf1-bg-card) 0%, #0F1923 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--gdf1-primary);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.5);
}

.gdf1-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(--gdf1-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  gap: 2px;
}

.gdf1-bottom-btn:hover,
.gdf1-bottom-btn:focus {
  color: var(--gdf1-secondary);
  transform: scale(1.05);
}

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

.gdf1-bottom-btn i,
.gdf1-bottom-btn .material-icons {
  font-size: 22px;
}

.gdf1-bottom-btn span {
  font-size: 1rem;
  font-weight: 600;
}

/* ===== MAIN CONTENT ===== */
.gdf1-main {
  padding-top: var(--gdf1-header-h);
  padding-bottom: calc(var(--gdf1-bottom-h) + 2rem);
  min-height: 100vh;
}

@media (max-width: 768px) {
  .gdf1-main {
    padding-bottom: calc(var(--gdf1-bottom-h) + 2rem);
  }
}

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

.gdf1-slides-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
}

.gdf1-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

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

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

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

.gdf1-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

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

/* ===== SECTION ===== */
.gdf1-section {
  padding: 1.5rem 1rem;
}

.gdf1-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gdf1-secondary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gdf1-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gdf1-section-title i {
  color: var(--gdf1-primary);
}

/* ===== GAME GRID ===== */
.gdf1-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.gdf1-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s;
}

.gdf1-game-item:hover {
  transform: scale(1.05);
}

.gdf1-game-item img {
  width: 72px;
  height: 72px;
  border-radius: var(--gdf1-radius);
  object-fit: cover;
  border: 2px solid var(--gdf1-border);
  transition: border-color 0.2s;
}

.gdf1-game-item:hover img {
  border-color: var(--gdf1-secondary);
}

.gdf1-game-item span {
  font-size: 1.1rem;
  color: var(--gdf1-text);
  text-align: center;
  margin-top: 0.3rem;
  line-height: 1.3rem;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gdf1-category-label {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gdf1-accent);
  margin: 1.2rem 0 0.6rem;
  padding-left: 0.4rem;
  border-left: 3px solid var(--gdf1-primary);
}

/* ===== CARDS ===== */
.gdf1-card {
  background: var(--gdf1-bg-card);
  border-radius: var(--gdf1-radius-lg);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--gdf1-border);
}

.gdf1-card h3 {
  font-size: 1.4rem;
  color: var(--gdf1-secondary);
  margin-bottom: 0.6rem;
}

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

/* ===== PROMO BUTTON ===== */
.gdf1-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gdf1-primary), #E8294A);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: var(--gdf1-radius-lg);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}

.gdf1-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220,20,60,0.4);
}

.gdf1-promo-link {
  color: var(--gdf1-secondary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

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

/* ===== FOOTER ===== */
.gdf1-footer {
  background: var(--gdf1-bg-card);
  padding: 2rem 1rem 3rem;
  border-top: 1px solid var(--gdf1-border);
}

.gdf1-footer-brand {
  font-size: 1.2rem;
  color: var(--gdf1-text-muted);
  margin-bottom: 1rem;
  line-height: 1.5rem;
}

.gdf1-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.gdf1-footer-links a {
  color: var(--gdf1-text-muted);
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.2s;
}

.gdf1-footer-links a:hover {
  color: var(--gdf1-secondary);
}

.gdf1-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.gdf1-footer-promos button,
.gdf1-footer-promos a {
  background: var(--gdf1-primary);
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: var(--gdf1-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.gdf1-footer-promos button:hover,
.gdf1-footer-promos a:hover {
  background: #E8294A;
  transform: scale(1.03);
}

.gdf1-footer-copy {
  font-size: 1.1rem;
  color: var(--gdf1-text-dim);
  text-align: center;
}

/* ===== TESTIMONIALS ===== */
.gdf1-testimonial {
  background: var(--gdf1-bg-light);
  border-radius: var(--gdf1-radius-lg);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--gdf1-accent);
}

.gdf1-testimonial-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gdf1-secondary);
}

.gdf1-testimonial-text {
  font-size: 1.2rem;
  color: var(--gdf1-text-muted);
  margin-top: 0.3rem;
  font-style: italic;
}

/* ===== PAYMENT GRID ===== */
.gdf1-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.gdf1-payment-item {
  background: var(--gdf1-bg-light);
  padding: 0.8rem 1.2rem;
  border-radius: var(--gdf1-radius);
  font-size: 1.2rem;
  color: var(--gdf1-text);
  border: 1px solid var(--gdf1-border);
}

/* ===== WINNER LIST ===== */
.gdf1-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gdf1-border);
}

.gdf1-winner-name {
  font-size: 1.2rem;
  color: var(--gdf1-text);
}

.gdf1-winner-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gdf1-gold);
}

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

/* ===== CTA SECTION ===== */
.gdf1-cta-box {
  background: linear-gradient(135deg, var(--gdf1-primary), #8B0000);
  border-radius: var(--gdf1-radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.gdf1-cta-box h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.gdf1-cta-box p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
}

/* ===== FAQ ===== */
.gdf1-faq-item {
  background: var(--gdf1-bg-card);
  border-radius: var(--gdf1-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--gdf1-border);
}

.gdf1-faq-q {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gdf1-secondary);
  margin-bottom: 0.4rem;
}

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

/* ===== UTILITY ===== */
.gdf1-text-center { text-align: center; }
.gdf1-mt-1 { margin-top: 1rem; }
.gdf1-mt-2 { margin-top: 2rem; }
.gdf1-mb-1 { margin-bottom: 1rem; }
.gdf1-mb-2 { margin-bottom: 2rem; }
.gdf1-hidden { display: none; }

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) {
  .gdf1-bottom-nav {
    display: none;
  }
  body {
    max-width: 430px;
  }
}

@media (max-width: 768px) {
  .gdf1-main {
    padding-bottom: calc(var(--gdf1-bottom-h) + 2rem);
  }
}
