/**
 * ABC Login - Core Stylesheet
 * All classes use pga1- prefix for namespace isolation
 * Color Palette: #FF1493 | #FFB74D | #0F0F23 | #FF9800 | #FFCCCB | #F8F9FA
 */

/* CSS Variables */
:root {
  --pga1-primary: #FF1493;
  --pga1-primary-dark: #C71074;
  --pga1-accent: #FFB74D;
  --pga1-accent2: #FF9800;
  --pga1-bg: #0F0F23;
  --pga1-bg-light: #1a1a3e;
  --pga1-bg-card: #1e1e45;
  --pga1-text: #F8F9FA;
  --pga1-text-muted: #c0c0d0;
  --pga1-pink-light: #FFCCCB;
  --pga1-border: #2a2a5a;
  --pga1-radius: 8px;
  --pga1-radius-lg: 12px;
  --pga1-shadow: 0 4px 20px rgba(255, 20, 147, 0.15);
  --pga1-transition: all 0.3s ease;
  --pga1-header-h: 56px;
  --pga1-bottom-nav-h: 60px;
}

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

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--pga1-bg);
  color: var(--pga1-text);
  line-height: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--pga1-primary);
}

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

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

/* Header */
.pga1-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--pga1-header-h);
  background: linear-gradient(135deg, #0F0F23 0%, #1a1a3e 100%);
  border-bottom: 1px solid var(--pga1-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.pga1-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.pga1-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

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

.pga1-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pga1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--pga1-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--pga1-transition);
  white-space: nowrap;
  min-height: 36px;
}

.pga1-btn-register {
  background: linear-gradient(135deg, var(--pga1-primary) 0%, var(--pga1-accent2) 100%);
  color: #fff;
}

.pga1-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 20, 147, 0.5);
}

.pga1-btn-login {
  background: transparent;
  color: var(--pga1-accent);
  border: 1px solid var(--pga1-accent);
}

.pga1-btn-login:hover {
  background: rgba(255, 183, 77, 0.1);
}

.pga1-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--pga1-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
}

/* Desktop nav */
.pga1-desktop-nav {
  display: none;
}

@media (min-width: 769px) {
  .pga1-desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .pga1-desktop-nav a {
    font-size: 1.3rem;
    color: var(--pga1-text-muted);
    transition: var(--pga1-transition);
  }
  .pga1-desktop-nav a:hover {
    color: var(--pga1-primary);
  }
}

/* Mobile Menu */
.pga1-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pga1-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background: var(--pga1-bg-light);
  z-index: 9999;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  padding: 60px 16px 20px;
  overflow-y: auto;
}

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

.pga1-mobile-menu a:hover {
  color: var(--pga1-primary);
}

/* Bottom Navigation */
.pga1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--pga1-bottom-nav-h);
  background: linear-gradient(180deg, #1a1a3e 0%, #0F0F23 100%);
  border-top: 1px solid var(--pga1-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding: 4px 0;
}

.pga1-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--pga1-text-muted);
  cursor: pointer;
  transition: var(--pga1-transition);
  padding: 4px;
  border-radius: var(--pga1-radius);
}

.pga1-bottom-nav-item:hover,
.pga1-bottom-nav-item:focus {
  color: var(--pga1-primary);
  transform: scale(1.1);
}

.pga1-bottom-nav-item.active {
  color: var(--pga1-primary);
}

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

.pga1-bottom-nav-item span {
  font-size: 1rem;
  line-height: 1.2;
}

@media (min-width: 769px) {
  .pga1-bottom-nav {
    display: none;
  }
}

/* Main Content */
main {
  padding-top: calc(var(--pga1-header-h) + 8px);
  padding-bottom: 80px;
  min-height: 100vh;
}

@media (min-width: 769px) {
  main {
    padding-bottom: 20px;
  }
}

/* Carousel */
.pga1-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--pga1-radius-lg);
  margin-bottom: 16px;
}

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

.gamea14e-carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: var(--pga1-radius-lg);
}

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

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

.gamea14e-carousel-dot.pga1-active,
.gamea14e-carousel-dot:hover {
  background: var(--pga1-primary);
  transform: scale(1.3);
}

/* Section Title */
.pga1-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pga1-text);
  margin: 20px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--pga1-primary);
}

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

.pga1-game-card {
  background: var(--pga1-bg-card);
  border-radius: var(--pga1-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--pga1-transition);
  border: 1px solid var(--pga1-border);
}

.pga1-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.2);
  border-color: var(--pga1-primary);
}

.pga1-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.pga1-game-card p {
  font-size: 1.1rem;
  text-align: center;
  padding: 4px 2px 6px;
  color: var(--pga1-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content Sections */
.pga1-content-section {
  background: var(--pga1-bg-card);
  border-radius: var(--pga1-radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--pga1-border);
}

.pga1-content-section h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pga1-primary);
  margin-bottom: 10px;
}

.pga1-content-section h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--pga1-accent);
  margin: 10px 0 6px;
}

.pga1-content-section p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--pga1-text-muted);
  margin-bottom: 8px;
}

.pga1-content-section ul {
  padding-left: 20px;
  margin-bottom: 8px;
}

.pga1-content-section li {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--pga1-text-muted);
  margin-bottom: 4px;
}

/* Promo Button Large */
.pga1-promo-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--pga1-primary) 0%, var(--pga1-accent2) 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: var(--pga1-radius-lg);
  cursor: pointer;
  transition: var(--pga1-transition);
  margin: 12px 0;
}

.pga1-promo-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(255, 20, 147, 0.4);
}

/* Promo Link Inline */
.pga1-promo-link {
  color: var(--pga1-primary);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed var(--pga1-primary);
  transition: var(--pga1-transition);
}

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

/* Footer */
.pga1-footer {
  background: var(--pga1-bg-light);
  border-top: 1px solid var(--pga1-border);
  padding: 20px 12px 16px;
  text-align: center;
}

.pga1-footer-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pga1-footer-partners span {
  font-size: 1.2rem;
  color: var(--pga1-text-muted);
  padding: 4px 10px;
  border: 1px solid var(--pga1-border);
  border-radius: 20px;
}

.pga1-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}

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

.pga1-footer-links a:hover {
  color: var(--pga1-primary);
}

.pga1-footer-copy {
  font-size: 1.1rem;
  color: var(--pga1-text-muted);
  margin-top: 8px;
}

/* FAQ */
.pga1-faq-item {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--pga1-border);
  padding-bottom: 10px;
}

.pga1-faq-item strong {
  display: block;
  font-size: 1.3rem;
  color: var(--pga1-accent);
  margin-bottom: 4px;
}

.pga1-faq-item p {
  font-size: 1.2rem;
  color: var(--pga1-text-muted);
}

/* Feature List */
.pga1-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pga1-feature-item {
  background: var(--pga1-bg-light);
  padding: 12px;
  border-radius: var(--pga1-radius);
  text-align: center;
  border: 1px solid var(--pga1-border);
}

.pga1-feature-item i,
.pga1-feature-item .material-icons {
  font-size: 24px;
  color: var(--pga1-primary);
  margin-bottom: 6px;
}

.pga1-feature-item p {
  font-size: 1.2rem;
  color: var(--pga1-text);
}

/* Testimonial */
.pga1-testimonial {
  background: var(--pga1-bg-light);
  border-radius: var(--pga1-radius);
  padding: 12px;
  margin-bottom: 8px;
  border-left: 3px solid var(--pga1-primary);
}

.pga1-testimonial p {
  font-size: 1.2rem;
  color: var(--pga1-text-muted);
  font-style: italic;
}

.pga1-testimonial strong {
  color: var(--pga1-accent);
  font-size: 1.2rem;
}

/* Winner display */
.pga1-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--pga1-border);
  font-size: 1.2rem;
}

.pga1-winner-row .pga1-winner-name {
  color: var(--pga1-accent);
}

.pga1-winner-row .pga1-winner-amount {
  color: var(--pga1-primary);
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pga1-header-logo span {
    font-size: 1.4rem;
  }
  .pga1-btn {
    padding: 6px 12px;
    font-size: 1.2rem;
  }
  .pga1-container {
    padding: 0 8px;
  }
  .pga1-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .pga1-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .pga1-header {
    padding: 0 6px;
  }
  .pga1-btn {
    padding: 5px 10px;
    font-size: 1.1rem;
    min-height: 32px;
  }
  .pga1-header-logo img {
    width: 24px;
    height: 24px;
  }
  .pga1-header-logo span {
    font-size: 1.3rem;
  }
}
