/**
 * Gamezone APK - Theme Stylesheet
 * Prefix: gaed-
 * Color palette: #1E1E1E (dark bg), #FF91A4 (pink accent), #B03060 (deep rose)
 */

/* CSS Variables */
:root {
  --gaed-primary: #FF91A4;
  --gaed-secondary: #B03060;
  --gaed-bg: #1E1E1E;
  --gaed-bg-light: #2A2A2A;
  --gaed-bg-card: #333333;
  --gaed-text: #F5F5F5;
  --gaed-text-muted: #CCCCCC;
  --gaed-text-dim: #999999;
  --gaed-border: #444444;
  --gaed-accent-glow: rgba(255, 145, 164, 0.3);
  --gaed-gradient: linear-gradient(135deg, #B03060, #FF91A4);
  --gaed-radius: 8px;
  --gaed-radius-lg: 12px;
  --gaed-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --gaed-header-h: 56px;
  --gaed-bottom-h: 60px;
}

/* Reset & Base */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--gaed-primary);
  text-decoration: none;
}

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

/* Header */
.gaed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--gaed-bg);
  border-bottom: 1px solid var(--gaed-border);
  max-width: 430px;
  margin: 0 auto;
  height: var(--gaed-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
}

.gaed-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.gaed-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.gaed-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gaed-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gaed-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gaed-btn-register,
.gaed-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gaed-btn-register {
  background: var(--gaed-gradient);
  color: #FFFFFF;
}

.gaed-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px var(--gaed-accent-glow);
}

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

.gaed-btn-login:hover {
  background: rgba(255, 145, 164, 0.1);
}

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

/* Mobile Menu */
.gaed-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 ease;
}

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

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

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

.gaed-menu-close {
  background: none;
  border: none;
  color: var(--gaed-text);
  font-size: 2.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.gaed-menu-nav {
  list-style: none;
}

.gaed-menu-nav li {
  margin-bottom: 0.5rem;
}

.gaed-menu-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.8rem;
  color: var(--gaed-text);
  font-size: 1.4rem;
  border-radius: var(--gaed-radius);
  transition: background 0.2s ease;
}

.gaed-menu-nav a:hover {
  background: var(--gaed-bg-card);
  color: var(--gaed-primary);
}

.gaed-menu-nav .material-icons,
.gaed-menu-nav .fas,
.gaed-menu-nav .far {
  font-size: 2rem;
  color: var(--gaed-primary);
}

/* Main content spacing */
.gaed-main {
  padding-top: calc(var(--gaed-header-h) + 1rem);
  min-height: 100vh;
}

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

.gaed-carousel-inner {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 50%;
}

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

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

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

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

.gaed-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s ease;
}

.gaed-dot-active {
  background: var(--gaed-primary);
}

/* Section headings */
.gaed-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding: 0 1.2rem;
  color: var(--gaed-text);
  position: relative;
}

.gaed-section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gaed-gradient);
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* Game grid */
.gaed-game-section {
  margin-bottom: 2rem;
}

.gaed-cat-title {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0 1.2rem;
  margin-bottom: 1rem;
  color: var(--gaed-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gaed-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0 1rem;
}

.gaed-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gaed-game-item:hover {
  transform: translateY(-2px);
}

.gaed-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--gaed-radius);
  overflow: hidden;
  border: 2px solid var(--gaed-border);
  transition: border-color 0.2s ease;
}

.gaed-game-item:hover .gaed-game-img {
  border-color: var(--gaed-primary);
}

.gaed-game-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gaed-game-name {
  font-size: 1.1rem;
  text-align: center;
  margin-top: 0.4rem;
  color: var(--gaed-text-muted);
  line-height: 1.3rem;
  max-height: 2.6rem;
  overflow: hidden;
}

/* Content sections */
.gaed-content-block {
  padding: 1.5rem 1.2rem;
  margin-bottom: 1rem;
}

.gaed-content-block h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gaed-text);
}

.gaed-content-block h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--gaed-primary);
}

.gaed-content-block p {
  margin-bottom: 0.8rem;
  color: var(--gaed-text-muted);
  line-height: 1.6rem;
}

.gaed-content-block ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0.8rem;
}

.gaed-content-block li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gaed-text-muted);
}

.gaed-content-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  background: var(--gaed-primary);
  border-radius: 50%;
}

/* CTA buttons */
.gaed-cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gaed-gradient);
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.gaed-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px var(--gaed-accent-glow);
}

.gaed-text-link {
  color: var(--gaed-primary);
  font-weight: 600;
  border-bottom: 1px dashed var(--gaed-primary);
  transition: color 0.2s ease;
}

.gaed-text-link:hover {
  color: var(--gaed-secondary);
}

/* Promo banner */
.gaed-promo-banner {
  background: linear-gradient(135deg, #B03060 0%, #FF91A4 100%);
  border-radius: var(--gaed-radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gaed-promo-banner:hover {
  transform: scale(1.02);
}

.gaed-promo-banner h3 {
  font-size: 1.6rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.gaed-promo-banner p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Card style */
.gaed-card {
  background: var(--gaed-bg-card);
  border-radius: var(--gaed-radius-lg);
  padding: 1.5rem;
  margin: 1rem 1.2rem;
  border: 1px solid var(--gaed-border);
}

.gaed-card h3 {
  font-size: 1.4rem;
  color: var(--gaed-primary);
  margin-bottom: 0.8rem;
}

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

/* Testimonial card */
.gaed-testimonial {
  background: var(--gaed-bg-card);
  border-radius: var(--gaed-radius-lg);
  padding: 1.2rem;
  margin: 0.8rem 1.2rem;
  border-left: 3px solid var(--gaed-primary);
}

.gaed-testimonial-author {
  font-weight: 600;
  color: var(--gaed-primary);
  font-size: 1.3rem;
}

.gaed-testimonial-text {
  color: var(--gaed-text-muted);
  font-size: 1.2rem;
  margin-top: 0.5rem;
  line-height: 1.5rem;
}

/* Footer */
.gaed-footer {
  background: var(--gaed-bg-light);
  padding: 2rem 1.2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--gaed-border);
}

.gaed-footer-brand {
  font-size: 1.3rem;
  color: var(--gaed-text-dim);
  line-height: 1.6rem;
  margin-bottom: 1.5rem;
}

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

.gaed-footer-link {
  padding: 0.5rem 1rem;
  background: var(--gaed-bg-card);
  color: var(--gaed-text-muted);
  border-radius: 20px;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.gaed-footer-link:hover {
  background: var(--gaed-primary);
  color: #FFFFFF;
}

.gaed-footer-copy {
  font-size: 1.1rem;
  color: var(--gaed-text-dim);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--gaed-border);
}

/* Bottom navigation */
.gaed-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--gaed-bg);
  border-top: 1px solid var(--gaed-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: var(--gaed-bottom-h);
  max-width: 430px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.gaed-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--gaed-text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  padding: 0.3rem;
}

.gaed-bottom-btn:hover,
.gaed-bottom-btn:active {
  color: var(--gaed-primary);
  transform: scale(1.1);
}

.gaed-bottom-btn .material-icons,
.gaed-bottom-btn .fas,
.gaed-bottom-btn .far,
.gaed-bottom-btn .iconify {
  font-size: 22px;
  margin-bottom: 2px;
}

.gaed-bottom-btn span {
  font-size: 1rem;
  white-space: nowrap;
}

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

.gaed-bottom-btn-active::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gaed-gradient);
  border-radius: 1px;
  margin-top: 2px;
}

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

@media (max-width: 768px) {
  .gaed-main {
    padding-bottom: 80px;
  }
}

/* Utility */
.gaed-text-center {
  text-align: center;
}

.gaed-mb-1 {
  margin-bottom: 0.5rem;
}

.gaed-mb-2 {
  margin-bottom: 1rem;
}

.gaed-mb-3 {
  margin-bottom: 1.5rem;
}

.gaed-promise-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 145, 164, 0.15);
  color: var(--gaed-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Winners showcase */
.gaed-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(68, 68, 68, 0.5);
}

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

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

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

/* Payment icons row */
.gaed-payment-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.gaed-payment-item {
  background: var(--gaed-bg-card);
  padding: 0.6rem 1.2rem;
  border-radius: var(--gaed-radius);
  font-size: 1.2rem;
  color: var(--gaed-text-muted);
  border: 1px solid var(--gaed-border);
}

/* FAQ accordion */
.gaed-faq-item {
  border-bottom: 1px solid var(--gaed-border);
  padding: 1rem 0;
}

.gaed-faq-q {
  font-weight: 600;
  color: var(--gaed-text);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

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