/**
 * OnePlus Games - Layout Stylesheet
 * File: css/layout-f93d.css
 * All classes prefixed with "g3da-" for namespace isolation
 */

:root {
  --g3da-primary: #32CD32;
  --g3da-primary-dark: #228B22;
  --g3da-bg: #006400;
  --g3da-bg-light: #004d00;
  --g3da-bg-card: #0a3d0a;
  --g3da-text: #98FB98;
  --g3da-text-bright: #b5ffb5;
  --g3da-accent: #32CD32;
  --g3da-gray: #3A3A3A;
  --g3da-gray-light: #555;
  --g3da-white: #f0fff0;
  --g3da-gold: #ffd700;
  --g3da-radius: 10px;
  --g3da-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  --g3da-transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--g3da-bg);
  color: var(--g3da-text);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

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

a:hover { color: var(--g3da-white); }

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

/* ========== HEADER ========== */
.g3da-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #004d00 0%, #006400 50%, #003300 100%);
  border-bottom: 2px solid var(--g3da-primary);
  padding: 0 1.2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.g3da-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g3da-logo-area img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.g3da-logo-area span {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--g3da-gold);
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(50, 205, 50, 0.4);
}

.g3da-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g3da-btn-register {
  background: linear-gradient(135deg, #32CD32, #228B22);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--g3da-transition);
  min-height: 36px;
  min-width: 80px;
  text-align: center;
}

.g3da-btn-register:hover {
  background: linear-gradient(135deg, #3bef3b, #32CD32);
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(50, 205, 50, 0.5);
}

.g3da-btn-login {
  background: transparent;
  color: var(--g3da-text);
  border: 2px solid var(--g3da-primary);
  padding: 0.5rem 1.4rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--g3da-transition);
  min-height: 36px;
  min-width: 70px;
  text-align: center;
}

.g3da-btn-login:hover {
  background: var(--g3da-primary);
  color: #006400;
}

.g3da-menu-toggle {
  background: none;
  border: none;
  color: var(--g3da-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ========== MOBILE MENU ========== */
.g3da-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #003300, #001a00);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.g3da-menu-active { right: 0 !important; }

.g3da-menu-close {
  background: none;
  border: none;
  color: var(--g3da-text);
  font-size: 2.8rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}

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

.g3da-menu-links li {
  border-bottom: 1px solid rgba(50, 205, 50, 0.15);
}

.g3da-menu-links a {
  display: block;
  padding: 1.2rem 0;
  font-size: 1.5rem;
  color: var(--g3da-text);
  transition: var(--g3da-transition);
}

.g3da-menu-links a:hover {
  color: var(--g3da-gold);
  padding-left: 1rem;
}

.g3da-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;
}

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

/* ========== MAIN CONTENT ========== */
.g3da-main {
  padding-top: 56px;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
}

/* Banner carousel */
.g3da-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
}

.g3da-banner-slide {
  display: none;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.g3da-banner-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 430/200;
  object-fit: cover;
}

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

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

.g3da-dot-active {
  background: var(--g3da-gold);
  transform: scale(1.2);
}

/* Section titles */
.g3da-section {
  padding: 2rem 1.2rem;
}

.g3da-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--g3da-gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--g3da-primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g3da-section-title .material-icons {
  font-size: 2.4rem;
  color: var(--g3da-primary);
}

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

.g3da-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--g3da-transition);
  border-radius: var(--g3da-radius);
  padding: 0.5rem;
}

.g3da-game-item:hover {
  background: rgba(50, 205, 50, 0.1);
  transform: translateY(-2px);
}

.g3da-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--g3da-radius);
  object-fit: cover;
  border: 2px solid transparent;
  transition: var(--g3da-transition);
}

.g3da-game-item:hover img {
  border-color: var(--g3da-primary);
  box-shadow: 0 0 10px rgba(50, 205, 50, 0.3);
}

.g3da-game-name {
  font-size: 1.1rem;
  margin-top: 0.4rem;
  color: var(--g3da-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content modules */
.g3da-card {
  background: var(--g3da-bg-card);
  border-radius: var(--g3da-radius);
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(50, 205, 50, 0.15);
  box-shadow: var(--g3da-shadow);
}

.g3da-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g3da-gold);
  margin-bottom: 1rem;
}

.g3da-card p {
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--g3da-text);
}

.g3da-card ul {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.g3da-card li {
  font-size: 1.3rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

/* Promo CTA */
.g3da-cta-box {
  background: linear-gradient(135deg, #004d00, #006400);
  border: 2px solid var(--g3da-primary);
  border-radius: var(--g3da-radius);
  padding: 2rem;
  text-align: center;
  margin: 2rem 1.2rem;
}

.g3da-cta-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--g3da-gold);
  margin-bottom: 1rem;
}

.g3da-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #32CD32, #228B22);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 1rem 3rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: var(--g3da-transition);
  min-height: 44px;
}

.g3da-cta-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(50, 205, 50, 0.5);
}

/* FAQ */
.g3da-faq-item {
  border-bottom: 1px solid rgba(50, 205, 50, 0.15);
}

.g3da-faq-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 1.4rem 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--g3da-text-bright);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--g3da-transition);
}

.g3da-faq-btn:hover { color: var(--g3da-gold); }

.g3da-faq-btn::after {
  content: '+';
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--g3da-primary);
  transition: transform 0.3s ease;
}

.g3da-faq-open::after {
  transform: rotate(45deg);
}

.g3da-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.g3da-faq-answer p {
  font-size: 1.3rem;
  line-height: 1.7;
  padding-bottom: 1.4rem;
  color: var(--g3da-text);
}

/* ========== FOOTER ========== */
.g3da-footer {
  background: linear-gradient(180deg, #003300, #001a00);
  padding: 2rem 1.2rem;
  border-top: 2px solid var(--g3da-primary);
}

.g3da-footer-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.g3da-footer-brand h3 {
  font-size: 2rem;
  color: var(--g3da-gold);
  margin-bottom: 0.8rem;
}

.g3da-footer-brand p {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--g3da-text);
}

.g3da-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin: 1.5rem 0;
}

.g3da-footer-links a {
  font-size: 1.3rem;
  color: var(--g3da-text);
}

.g3da-footer-links a:hover { color: var(--g3da-gold); }

.g3da-footer-copy {
  text-align: center;
  font-size: 1.2rem;
  color: var(--g3da-gray-light);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(50, 205, 50, 0.1);
}

/* ========== BOTTOM MOBILE NAV ========== */
.g3da-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(180deg, #003d00, #001a00);
  border-top: 2px solid var(--g3da-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
}

.g3da-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(--g3da-text);
  cursor: pointer;
  transition: var(--g3da-transition);
  border-radius: 8px;
  padding: 0.4rem;
}

.g3da-bottom-btn:hover,
.g3da-bottom-btn:focus {
  color: var(--g3da-gold);
  background: rgba(50, 205, 50, 0.1);
}

.g3da-bottom-btn .g3da-nav-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 2px;
}

.g3da-bottom-btn .g3da-nav-label {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.g3da-bottom-btn.g3da-nav-active {
  color: var(--g3da-gold);
}

.g3da-bottom-btn.g3da-nav-active .g3da-nav-icon {
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
}

/* ========== BACK TO TOP ========== */
.g3da-back-top {
  position: fixed;
  bottom: 75px;
  right: 15px;
  z-index: 999;
  width: 40px;
  height: 40px;
  background: var(--g3da-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--g3da-shadow);
  transition: var(--g3da-transition);
}

.g3da-top-visible { display: flex !important; }

.g3da-back-top:hover {
  background: var(--g3da-gold);
  color: #006400;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .g3da-main { padding-bottom: 80px; }
  .g3da-bottom-nav { display: flex; }
}

@media (min-width: 769px) {
  .g3da-bottom-nav { display: none; }
  .g3da-main { max-width: 430px; }
}

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

/* Prominent promo link style */
.g3da-promo-link {
  display: inline-block;
  color: var(--g3da-gold);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: var(--g3da-transition);
}

.g3da-promo-link:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Testimonial cards */
.g3da-testimonial {
  background: rgba(50, 205, 50, 0.05);
  border-left: 3px solid var(--g3da-primary);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0 var(--g3da-radius) var(--g3da-radius) 0;
}

.g3da-testimonial p {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.g3da-testimonial span {
  font-size: 1.2rem;
  color: var(--g3da-gold);
  font-weight: 600;
}

/* Winner ticker */
.g3da-winner-ticker {
  background: var(--g3da-bg-card);
  border-radius: var(--g3da-radius);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
}

.g3da-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(50, 205, 50, 0.1);
  font-size: 1.3rem;
}

.g3da-winner-row:last-child { border-bottom: none; }

.g3da-winner-amount {
  color: var(--g3da-gold);
  font-weight: 700;
}
