/**
 * phdteam.sbs - Main Stylesheet
 * All classes prefixed with gf9c- for namespace isolation
 * Color palette: #20B2AA | #0E1621 | #CC99FF | #9AFF9A
 * Mobile-first design (max-width: 430px viewport)
 */

:root {
  --gf9c-primary: #20B2AA;
  --gf9c-bg: #0E1621;
  --gf9c-accent: #CC99FF;
  --gf9c-success: #9AFF9A;
  --gf9c-bg-light: #152232;
  --gf9c-bg-card: #1a2d42;
  --gf9c-text: #e8ecf1;
  --gf9c-text-muted: #8a9bb5;
  --gf9c-border: #253a52;
  --gf9c-radius: 1rem;
  --gf9c-radius-sm: 0.6rem;
  --gf9c-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* Reset & Base */
*, *::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(--gf9c-bg);
  color: var(--gf9c-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gf9c-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gf9c-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.gf9c-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; width: 100%; }
.gf9c-wrapper { padding-top: 5.6rem; }

/* Header */
.gf9c-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--gf9c-bg) 0%, var(--gf9c-bg-light) 100%);
  border-bottom: 1px solid var(--gf9c-border);
  height: 5.6rem;
}
.gf9c-header-inner {
  max-width: 430px; margin: 0 auto; padding: 0 1.2rem;
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.gf9c-logo-area { display: flex; align-items: center; gap: 0.8rem; }
.gf9c-logo-area img { width: 3rem; height: 3rem; border-radius: 0.5rem; }
.gf9c-logo-area span { font-size: 1.8rem; font-weight: 700; color: var(--gf9c-primary); letter-spacing: -0.02em; }
.gf9c-header-btns { display: flex; gap: 0.6rem; align-items: center; }
.gf9c-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.4rem; border-radius: var(--gf9c-radius-sm);
  font-size: 1.3rem; font-weight: 600; cursor: pointer; border: none;
  transition: all 0.25s ease; min-height: 3.6rem;
}
.gf9c-btn-register {
  background: linear-gradient(135deg, var(--gf9c-primary), #17a199);
  color: #fff; box-shadow: 0 2px 10px rgba(32, 178, 170, 0.3);
}
.gf9c-btn-register:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(32, 178, 170, 0.5); }
.gf9c-btn-login {
  background: transparent; color: var(--gf9c-accent);
  border: 1px solid var(--gf9c-accent);
}
.gf9c-btn-login:hover { background: rgba(204, 153, 255, 0.1); }
.gf9c-menu-toggle {
  background: none; border: none; color: var(--gf9c-text); font-size: 2rem;
  cursor: pointer; padding: 0.4rem; display: flex; align-items: center;
}

/* Mobile Menu */
.gf9c-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6); z-index: 9998;
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
.gf9c-overlay-active { opacity: 1; visibility: visible; }
.gf9c-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--gf9c-bg-light); z-index: 9999;
  transition: right 0.3s ease; overflow-y: auto;
  border-left: 1px solid var(--gf9c-border);
}
.gf9c-menu-active { right: 0; }
.gf9c-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.6rem; border-bottom: 1px solid var(--gf9c-border);
}
.gf9c-menu-header span { font-size: 1.6rem; font-weight: 700; color: var(--gf9c-primary); }
.gf9c-menu-close { background: none; border: none; color: var(--gf9c-text); font-size: 2rem; cursor: pointer; }
.gf9c-menu-links { padding: 1rem 0; }
.gf9c-menu-links a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 1.6rem; color: var(--gf9c-text); font-size: 1.4rem;
  border-bottom: 1px solid rgba(37, 58, 82, 0.5); transition: all 0.2s;
}
.gf9c-menu-links a:hover { background: rgba(32, 178, 170, 0.08); color: var(--gf9c-primary); }

/* Carousel */
.gf9c-carousel { position: relative; overflow: hidden; border-radius: var(--gf9c-radius); margin: 1.2rem 0; }
.gf9c-carousel-slide {
  display: none; width: 100%; cursor: pointer;
}
.gf9c-slide-active { display: block; animation: gf9cFadeIn 0.5s; }
@keyframes gf9cFadeIn { from { opacity: 0; } to { opacity: 1; } }
.gf9c-carousel-slide img { width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: var(--gf9c-radius); }
.gf9c-carousel-dots {
  position: absolute; bottom: 0.8rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.6rem;
}
.gf9c-carousel-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255, 255, 255, 0.4);
  cursor: pointer; transition: all 0.3s; border: none;
}
.gf9c-dot-active { background: var(--gf9c-primary); transform: scale(1.3); }
.gf9c-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45); color: #fff; border: none;
  width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer;
  font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.gf9c-carousel-arrow:hover { background: rgba(32, 178, 170, 0.7); }
.gf9c-arrow-prev { left: 0.8rem; }
.gf9c-arrow-next { right: 0.8rem; }

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

/* Game Grid */
.gf9c-game-section { margin: 2rem 0; }
.gf9c-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.gf9c-game-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  cursor: pointer; transition: transform 0.2s;
}
.gf9c-game-item:hover { transform: translateY(-3px); }
.gf9c-game-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--gf9c-radius-sm); border: 2px solid var(--gf9c-border);
  transition: border-color 0.2s;
}
.gf9c-game-item:hover img { border-color: var(--gf9c-primary); }
.gf9c-game-item span {
  font-size: 1.1rem; color: var(--gf9c-text-muted); text-align: center;
  line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content Blocks */
.gf9c-content-block {
  background: var(--gf9c-bg-card); border-radius: var(--gf9c-radius);
  padding: 1.6rem; margin: 1.4rem 0; border: 1px solid var(--gf9c-border);
}
.gf9c-content-block h2 {
  font-size: 1.7rem; color: var(--gf9c-primary); margin-bottom: 1rem;
}
.gf9c-content-block h3 {
  font-size: 1.5rem; color: var(--gf9c-accent); margin: 1rem 0 0.6rem;
}
.gf9c-content-block p {
  color: var(--gf9c-text-muted); line-height: 1.8; margin-bottom: 0.8rem; font-size: 1.3rem;
}
.gf9c-content-block ul { padding-left: 1.6rem; }
.gf9c-content-block li {
  color: var(--gf9c-text-muted); margin-bottom: 0.6rem; font-size: 1.3rem;
  line-height: 1.6; list-style: disc;
}

/* Promo Link Text */
.gf9c-promo-text {
  color: var(--gf9c-accent); font-weight: 700; cursor: pointer;
  transition: color 0.2s;
}
.gf9c-promo-text:hover { color: var(--gf9c-success); text-decoration: underline; }
.gf9c-promo-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(135deg, var(--gf9c-primary), #17a199);
  color: #fff; padding: 1rem 2rem; border-radius: var(--gf9c-radius-sm);
  font-size: 1.4rem; font-weight: 600; cursor: pointer; border: none;
  transition: all 0.25s; box-shadow: 0 3px 12px rgba(32, 178, 170, 0.3);
  text-align: center; justify-content: center;
}
.gf9c-promo-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 18px rgba(32, 178, 170, 0.5); }
.gf9c-promo-btn-outline {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: transparent; color: var(--gf9c-accent);
  padding: 0.8rem 1.8rem; border-radius: var(--gf9c-radius-sm);
  font-size: 1.3rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--gf9c-accent); transition: all 0.25s;
}
.gf9c-promo-btn-outline:hover { background: rgba(204, 153, 255, 0.1); }

/* Stats Grid */
.gf9c-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gf9c-stat-card {
  background: var(--gf9c-bg-light); padding: 1.2rem; border-radius: var(--gf9c-radius-sm);
  text-align: center; border: 1px solid var(--gf9c-border);
}
.gf9c-stat-card .gf9c-stat-number { font-size: 2rem; font-weight: 700; color: var(--gf9c-primary); }
.gf9c-stat-card .gf9c-stat-label { font-size: 1.1rem; color: var(--gf9c-text-muted); margin-top: 0.4rem; }

/* Testimonials */
.gf9c-testimonial {
  background: var(--gf9c-bg-light); border-radius: var(--gf9c-radius-sm);
  padding: 1.4rem; margin-bottom: 1rem; border-left: 3px solid var(--gf9c-primary);
}
.gf9c-testimonial p { font-size: 1.3rem; color: var(--gf9c-text-muted); font-style: italic; }
.gf9c-testimonial-author { font-size: 1.2rem; color: var(--gf9c-accent); margin-top: 0.6rem; font-weight: 600; }

/* Winners Ticker */
.gf9c-winners-list { display: flex; flex-direction: column; gap: 0.6rem; }
.gf9c-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 1.2rem; background: var(--gf9c-bg-light);
  border-radius: var(--gf9c-radius-sm); font-size: 1.2rem;
}
.gf9c-winner-name { color: var(--gf9c-text); font-weight: 600; }
.gf9c-winner-game { color: var(--gf9c-text-muted); }
.gf9c-winner-amount { color: var(--gf9c-success); font-weight: 700; }

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

/* Footer */
.gf9c-footer {
  background: var(--gf9c-bg-light); border-top: 1px solid var(--gf9c-border);
  padding: 2rem 0; margin-top: 2rem;
}
.gf9c-footer-text { font-size: 1.2rem; color: var(--gf9c-text-muted); line-height: 1.7; margin-bottom: 1rem; }
.gf9c-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.4rem; }
.gf9c-footer-links a {
  font-size: 1.2rem; color: var(--gf9c-text-muted); padding: 0.4rem 0.8rem;
  background: var(--gf9c-bg-card); border-radius: var(--gf9c-radius-sm);
  transition: all 0.2s;
}
.gf9c-footer-links a:hover { color: var(--gf9c-primary); background: var(--gf9c-bg); }
.gf9c-footer-copy { font-size: 1.1rem; color: var(--gf9c-text-muted); text-align: center; opacity: 0.7; }

/* Bottom Navigation */
.gf9c-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #0d1a2a 0%, var(--gf9c-bg) 100%);
  border-top: 1px solid var(--gf9c-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 6rem; padding: 0 0.4rem;
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.3);
}
.gf9c-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 5.2rem; background: none; border: none;
  color: var(--gf9c-text-muted); cursor: pointer; transition: all 0.25s;
  gap: 0.3rem; padding: 0.4rem;
}
.gf9c-bottom-nav-btn i, .gf9c-bottom-nav-btn .material-icons,
.gf9c-bottom-nav-btn ion-icon, .gf9c-bottom-nav-btn bi {
  font-size: 2.2rem; transition: transform 0.2s, color 0.2s;
}
.gf9c-bottom-nav-btn span { font-size: 1rem; }
.gf9c-bottom-nav-btn:hover i, .gf9c-bottom-nav-btn:hover .material-icons,
.gf9c-bottom-nav-btn:hover ion-icon {
  transform: scale(1.15); color: var(--gf9c-primary);
}
.gf9c-bottom-nav-btn:hover span { color: var(--gf9c-primary); }
.gf9c-nav-active i, .gf9c-nav-active .material-icons, .gf9c-nav-active ion-icon {
  color: var(--gf9c-primary) !important;
}
.gf9c-nav-active span { color: var(--gf9c-primary) !important; font-weight: 600; }

/* Animate on scroll */
.gf9c-animate { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.gf9c-visible { opacity: 1; transform: translateY(0); }

/* Desktop responsive */
@media (min-width: 769px) {
  .gf9c-bottom-nav { display: none; }
  .gf9c-container { max-width: 430px; }
}
@media (max-width: 768px) {
  .gf9c-wrapper { padding-bottom: 7rem; }
}

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