/**
 * Playtime Login - Layout CSS Module
 * File: css/layout-e34d.css
 * Prefix: g4d6-
 * Color Palette: #273746 | #228B22 | #32CD32 | #EEEEEE | #8B008B
 * Mobile-first design, max-width 430px
 */

/* Root font size for rem units */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

:root {
  --g4d6-primary: #228B22;
  --g4d6-accent: #32CD32;
  --g4d6-bg-dark: #273746;
  --g4d6-bg-deep: #1a2632;
  --g4d6-text-light: #EEEEEE;
  --g4d6-highlight: #8B008B;
  --g4d6-card-bg: #1e2f3d;
  --g4d6-border: #345268;
  --g4d6-gradient-start: #228B22;
  --g4d6-gradient-end: #32CD32;
  --g4d6-shadow: rgba(0, 0, 0, 0.35);
  --g4d6-radius: 1.0rem;
  --g4d6-radius-sm: 0.6rem;
}

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

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

a {
  color: var(--g4d6-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--g4d6-highlight);
}

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

/* ============ HEADER ============ */
.g4d6-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 5.4rem;
  background: linear-gradient(135deg, var(--g4d6-bg-deep) 0%, #1c3040 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  border-bottom: 2px solid var(--g4d6-primary);
  box-shadow: 0 2px 12px var(--g4d6-shadow);
}

.g4d6-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g4d6-logo-area img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.5rem;
}

.g4d6-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g4d6-accent);
  letter-spacing: 0.5px;
}

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

.g4d6-btn-register {
  background: linear-gradient(135deg, var(--g4d6-gradient-start), var(--g4d6-gradient-end));
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: var(--g4d6-radius-sm);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.g4d6-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(50, 205, 50, 0.4);
}

.g4d6-btn-login {
  background: transparent;
  color: var(--g4d6-accent);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.5rem 1.0rem;
  border: 1.5px solid var(--g4d6-accent);
  border-radius: var(--g4d6-radius-sm);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.g4d6-btn-login:hover {
  background: var(--g4d6-accent);
  color: var(--g4d6-bg-deep);
}

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

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

.g4d6-overlay-active {
  opacity: 1;
  visibility: visible;
}

.g4d6-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--g4d6-bg-deep);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
  border-left: 2px solid var(--g4d6-primary);
}

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

.g4d6-mobile-menu .g4d6-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--g4d6-border);
}

.g4d6-mobile-menu .g4d6-menu-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g4d6-accent);
}

.g4d6-menu-close {
  background: none;
  border: none;
  color: var(--g4d6-text-light);
  font-size: 2rem;
  cursor: pointer;
}

.g4d6-mobile-menu ul {
  list-style: none;
  padding: 1rem 0;
}

.g4d6-mobile-menu li {
  border-bottom: 1px solid rgba(52, 82, 104, 0.3);
}

.g4d6-mobile-menu a {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--g4d6-text-light);
  font-size: 1.4rem;
  transition: background 0.2s, color 0.2s;
}

.g4d6-mobile-menu a:hover {
  background: rgba(50, 205, 50, 0.1);
  color: var(--g4d6-accent);
}

/* ============ MAIN CONTENT ============ */
.g4d6-main {
  padding-top: 5.4rem;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .g4d6-main {
    padding-bottom: 7rem;
  }
}

.g4d6-container {
  padding: 0 1.2rem;
}

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

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

.g4d6-slide-active {
  display: block;
}

.g4d6-slide img {
  width: 100%;
  height: auto;
  min-height: 16rem;
  object-fit: cover;
}

.g4d6-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.g4d6-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(238, 238, 238, 0.4);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}

.g4d6-dot-active {
  background: var(--g4d6-accent);
  transform: scale(1.2);
}

/* ============ SECTION HEADINGS ============ */
.g4d6-section {
  padding: 2rem 1.2rem;
}

.g4d6-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g4d6-accent);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--g4d6-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g4d6-section-title i,
.g4d6-section-title .material-icons {
  font-size: 2rem;
}

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

.g4d6-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--g4d6-radius-sm);
  overflow: hidden;
}

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

.g4d6-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--g4d6-radius-sm);
  border: 2px solid var(--g4d6-border);
  transition: border-color 0.2s;
}

.g4d6-game-item:hover img {
  border-color: var(--g4d6-accent);
}

.g4d6-game-name {
  font-size: 1.1rem;
  color: var(--g4d6-text-light);
  margin-top: 0.3rem;
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ CATEGORY TABS ============ */
.g4d6-cat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.g4d6-cat-icon {
  width: 2.8rem;
  height: 2.8rem;
  background: linear-gradient(135deg, var(--g4d6-highlight), #a020a0);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
}

.g4d6-cat-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g4d6-accent);
}

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

.g4d6-card h2 {
  font-size: 1.6rem;
  color: var(--g4d6-accent);
  margin-bottom: 0.8rem;
}

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

.g4d6-card p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--g4d6-text-light);
  margin-bottom: 0.8rem;
}

/* ============ PROMO BUTTONS ============ */
.g4d6-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--g4d6-gradient-start), var(--g4d6-gradient-end));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 1rem 2.4rem;
  border-radius: 3rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 15px rgba(50, 205, 50, 0.3);
}

.g4d6-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(50, 205, 50, 0.5);
}

.g4d6-promo-link {
  color: var(--g4d6-accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.g4d6-promo-link:hover {
  color: var(--g4d6-highlight);
}

/* ============ CTA SECTION ============ */
.g4d6-cta-section {
  text-align: center;
  padding: 2.5rem 1.2rem;
  background: linear-gradient(135deg, var(--g4d6-bg-deep), #0f1c26);
  margin: 1rem 0;
}

.g4d6-cta-section h2 {
  font-size: 1.8rem;
  color: var(--g4d6-accent);
  margin-bottom: 1rem;
}

.g4d6-cta-section p {
  font-size: 1.3rem;
  color: var(--g4d6-text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8rem;
}

/* ============ TESTIMONIALS ============ */
.g4d6-testimonial {
  background: var(--g4d6-card-bg);
  border-radius: var(--g4d6-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--g4d6-primary);
}

.g4d6-testimonial-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--g4d6-accent);
}

.g4d6-testimonial-text {
  font-size: 1.2rem;
  color: #ccc;
  line-height: 1.6rem;
  margin-top: 0.4rem;
  font-style: italic;
}

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

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

/* ============ WINNERS SHOWCASE ============ */
.g4d6-winner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: var(--g4d6-card-bg);
  border-radius: var(--g4d6-radius-sm);
  margin-bottom: 0.6rem;
}

.g4d6-winner-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g4d6-highlight), var(--g4d6-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  flex-shrink: 0;
}

.g4d6-winner-info {
  flex: 1;
}

.g4d6-winner-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--g4d6-text-light);
}

.g4d6-winner-game {
  font-size: 1.1rem;
  color: #aaa;
}

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

/* ============ FOOTER ============ */
.g4d6-footer {
  background: var(--g4d6-bg-deep);
  padding: 2.5rem 1.2rem 3rem;
  border-top: 2px solid var(--g4d6-primary);
}

.g4d6-footer-brand {
  font-size: 1.3rem;
  color: #bbb;
  line-height: 1.8rem;
  margin-bottom: 1.5rem;
}

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

.g4d6-footer-links a {
  background: var(--g4d6-card-bg);
  padding: 0.5rem 1rem;
  border-radius: var(--g4d6-radius-sm);
  font-size: 1.1rem;
  color: var(--g4d6-text-light);
  border: 1px solid var(--g4d6-border);
  transition: border-color 0.2s, color 0.2s;
}

.g4d6-footer-links a:hover {
  border-color: var(--g4d6-accent);
  color: var(--g4d6-accent);
}

.g4d6-footer-copy {
  font-size: 1.1rem;
  color: #777;
  text-align: center;
  margin-top: 1rem;
}

/* ============ BOTTOM NAV ============ */
.g4d6-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 6rem;
  background: linear-gradient(180deg, #1a2c3a, #0f1a24);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--g4d6-primary);
  box-shadow: 0 -3px 12px var(--g4d6-shadow);
}

.g4d6-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #8a9baa;
  font-size: 1rem;
  transition: color 0.2s, transform 0.15s;
  padding: 0.3rem;
  gap: 0.2rem;
}

.g4d6-bottom-nav-btn i,
.g4d6-bottom-nav-btn .material-icons,
.g4d6-bottom-nav-btn ion-icon {
  font-size: 2.2rem;
}

.g4d6-bottom-nav-btn span {
  font-size: 1rem;
}

.g4d6-bottom-nav-btn:hover {
  color: var(--g4d6-accent);
  transform: scale(1.1);
}

.g4d6-bottom-active {
  color: var(--g4d6-accent) !important;
}

.g4d6-bottom-active i,
.g4d6-bottom-active .material-icons,
.g4d6-bottom-active ion-icon {
  filter: drop-shadow(0 0 6px rgba(50, 205, 50, 0.5));
}

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

@media (max-width: 320px) {
  .g4d6-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============ HELP PAGES ============ */
.g4d6-help-section {
  padding: 1.5rem 1.2rem;
}

.g4d6-help-section h2 {
  font-size: 1.6rem;
  color: var(--g4d6-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--g4d6-primary);
}

.g4d6-help-section h3 {
  font-size: 1.4rem;
  color: var(--g4d6-accent);
  margin: 1rem 0 0.5rem;
}

.g4d6-help-section p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--g4d6-text-light);
  margin-bottom: 0.8rem;
}

.g4d6-help-section ol,
.g4d6-help-section ul {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.g4d6-help-section li {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--g4d6-text-light);
  margin-bottom: 0.5rem;
}

.g4d6-faq-item {
  background: var(--g4d6-card-bg);
  border-radius: var(--g4d6-radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--g4d6-highlight);
}

.g4d6-faq-q {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--g4d6-accent);
  margin-bottom: 0.4rem;
}

.g4d6-faq-a {
  font-size: 1.2rem;
  color: #ccc;
  line-height: 1.6rem;
}

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