/* ============================================================
 * arena plus app - shared stylesheet
 * Class prefix: g4c4-
 * Variables:   --g4c4-*
 * ============================================================ */

:root {
  --g4c4-primary: #FFA500;       /* warm orange */
  --g4c4-accent: #00FF7F;        /* mint green */
  --g4c4-accent-2: #3CB371;      /* deep green */
  --g4c4-bg: #1E1E1E;            /* dark backdrop */
  --g4c4-bg-2: #262626;
  --g4c4-bg-3: #303030;
  --g4c4-text: #FAFAD2;          /* light text */
  --g4c4-text-muted: #cfcfa6;
  --g4c4-border: rgba(255,165,0,0.25);
  --g4c4-shadow: 0 4px 18px rgba(0,0,0,0.45);
  --g4c4-radius: 14px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%;              /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--g4c4-bg);
  color: var(--g4c4-text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--g4c4-accent); text-decoration: none; }
a:hover { color: var(--g4c4-primary); }
img { max-width: 100%; display: block; }

h1, h2, h3 { margin: 0 0 0.8rem; line-height: 1.3; font-weight: 700; }
h1 { font-size: 2.2rem; color: var(--g4c4-primary); }
h2 { font-size: 1.9rem; color: var(--g4c4-accent); }
h3 { font-size: 1.6rem; color: var(--g4c4-text); }
p { margin: 0 0 1rem; }

/* ---------- Layout helpers ---------- */
.g4c4-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.g4c4-wrapper { padding: 1.6rem 0; }
.g4c4-section { padding: 1.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* ---------- Header ---------- */
.g4c4-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a1a1a 0%, #1E1E1E 100%);
  border-bottom: 2px solid var(--g4c4-primary);
  box-shadow: var(--g4c4-shadow);
}
.g4c4-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem;
}
.g4c4-brand { display: flex; align-items: center; gap: 0.8rem; color: var(--g4c4-primary); }
.g4c4-brand img { width: 3rem; height: 3rem; border-radius: 8px; }
.g4c4-brand-name { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.3px; }
.g4c4-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.g4c4-icon-btn {
  background: transparent; border: none; color: var(--g4c4-text);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem; line-height: 1;
}
.g4c4-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.8rem 1.4rem; border: none; border-radius: 999px;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  min-height: 40px; text-decoration: none;
}
.g4c4-btn:hover { transform: translateY(-1px); }
.g4c4-btn-primary { background: linear-gradient(135deg, #FFA500, #FF8C00); color: #1E1E1E; }
.g4c4-btn-accent  { background: linear-gradient(135deg, #00FF7F, #3CB371); color: #1E1E1E; }
.g4c4-btn-ghost   { background: transparent; color: var(--g4c4-text); border: 1px solid var(--g4c4-border); }
.g4c4-btn-block { display: block; width: 100%; }

/* ---------- Mobile slide-down menu ---------- */
.g4c4-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 9998; opacity: 0; visibility: hidden; transition: opacity 0.25s ease;
}
.g4c4-overlay-show { opacity: 1; visibility: visible; }
.g4c4-mobile-menu {
  position: fixed; top: 0; right: -80%; bottom: 0; width: 78%;
  background: var(--g4c4-bg-2); z-index: 9999;
  transform: translateX(0); transition: right 0.3s ease;
  padding: 7rem 1.4rem 2rem; overflow-y: auto;
}
.g4c4-menu-open { right: 0; }
.g4c4-mobile-menu a {
  display: block; padding: 1rem 0.4rem;
  border-bottom: 1px solid rgba(255,165,0,0.15);
  color: var(--g4c4-text); font-size: 1.4rem; font-weight: 600;
}
.g4c4-mobile-menu a:hover { color: var(--g4c4-primary); padding-left: 1rem; }

/* ---------- Hero carousel ---------- */
.g4c4-carousel {
  position: relative; margin: 6.5rem auto 0; max-width: 430px;
  border-radius: var(--g4c4-radius); overflow: hidden; box-shadow: var(--g4c4-shadow);
}
.g4c4-slide {
  display: none; position: relative; cursor: pointer;
}
.g4c4-slide-active { display: block; }
.g4c4-slide img { width: 100%; height: auto; }
.g4c4-slide-caption {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  background: rgba(0,0,0,0.55); padding: 0.8rem 1rem; border-radius: 10px;
  font-size: 1.3rem; color: var(--g4c4-text);
}
.g4c4-dots { text-align: center; padding: 0.6rem 0; }
.g4c4-dot {
  display: inline-block; width: 9px; height: 9px; margin: 0 3px;
  border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer;
}
.g4c4-dot-active { background: var(--g4c4-primary); }

/* ---------- Chips / filter ---------- */
.g4c4-chip-row {
  display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.6rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.g4c4-chip {
  flex: 0 0 auto; padding: 0.6rem 1.2rem; border-radius: 999px;
  background: var(--g4c4-bg-3); color: var(--g4c4-text);
  font-size: 1.25rem; cursor: pointer; white-space: nowrap; border: 1px solid transparent;
}
.g4c4-chip-active { background: var(--g4c4-primary); color: #1E1E1E; font-weight: 700; }

/* ---------- Game grid ---------- */
.g4c4-game-section h2 { display: flex; align-items: center; gap: 0.6rem; }
.g4c4-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
  margin: 0.6rem 0 1.4rem;
}
.g4c4-game-card {
  background: var(--g4c4-bg-2); border-radius: 12px; overflow: hidden;
  text-align: center; cursor: pointer; padding: 0.5rem;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.g4c4-game-card:hover { transform: translateY(-2px); border-color: var(--g4c4-primary); }
.g4c4-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px;
  margin-bottom: 0.4rem;
}
.g4c4-game-name {
  font-size: 1.15rem; color: var(--g4c4-text); font-weight: 600;
  line-height: 1.2; min-height: 2.6em; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Cards / info blocks ---------- */
.g4c4-card {
  background: linear-gradient(160deg, var(--g4c4-bg-2), var(--g4c4-bg-3));
  border: 1px solid var(--g4c4-border);
  border-radius: var(--g4c4-radius); padding: 1.4rem; margin: 0.8rem 0;
  box-shadow: var(--g4c4-shadow);
}
.g4c4-card h3 { color: var(--g4c4-primary); }
.g4c4-card ul { margin: 0.4rem 0 0; padding-left: 1.4rem; }
.g4c4-card li { margin-bottom: 0.4rem; }

/* ---------- Feature / step list ---------- */
.g4c4-steps { list-style: none; padding: 0; counter-reset: step; }
.g4c4-steps li {
  position: relative; padding: 0.6rem 0 0.6rem 3.4rem;
  counter-increment: step; border-bottom: 1px dashed rgba(255,165,0,0.15);
}
.g4c4-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.6rem;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--g4c4-primary); color: #1E1E1E;
  font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* ---------- Testimonial ---------- */
.g4c4-testi {
  display: flex; gap: 0.8rem; align-items: flex-start;
  background: var(--g4c4-bg-2); border-radius: 12px; padding: 1rem; margin: 0.6rem 0;
  border-left: 3px solid var(--g4c4-accent-2);
}
.g4c4-testi .g4c4-ava {
  width: 3.4rem; height: 3.4rem; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--g4c4-primary), var(--g4c4-accent-2));
  display: flex; align-items: center; justify-content: center; color: #1E1E1E; font-weight: 800;
}
.g4c4-testi small { color: var(--g4c4-text-muted); display: block; margin-top: 0.3rem; }

/* ---------- Payment chips ---------- */
.g4c4-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.g4c4-pay {
  background: var(--g4c4-bg-3); padding: 0.5rem 1rem; border-radius: 8px;
  font-size: 1.2rem; color: var(--g4c4-text); border: 1px solid var(--g4c4-border);
}

/* ---------- Promo text link (bold inline) ---------- */
.g4c4-promo-text {
  color: var(--g4c4-primary); font-weight: 800; cursor: pointer;
  text-decoration: underline;
}
.g4c4-promo-text:hover { color: var(--g4c4-accent); }

/* ---------- Back to top ---------- */
.g4c4-top-btn {
  position: fixed; right: 1rem; bottom: 7.5rem; z-index: 1100;
  width: 4.2rem; height: 4.2rem; border-radius: 50%;
  background: var(--g4c4-primary); color: #1E1E1E; border: none;
  font-size: 1.8rem; cursor: pointer; opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease; box-shadow: var(--g4c4-shadow);
}
.g4c4-top-show { opacity: 1; visibility: visible; }

/* ---------- Footer ---------- */
.g4c4-footer {
  background: #161616; padding: 2rem 1.2rem 9rem;
  border-top: 2px solid var(--g4c4-primary);
}
.g4c4-footer-inner { max-width: 430px; margin: 0 auto; }
.g4c4-footer-brand { color: var(--g4c4-text-muted); font-size: 1.3rem; margin-bottom: 1rem; }
.g4c4-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin: 1rem 0;
}
.g4c4-footer-links a {
  color: var(--g4c4-text); font-size: 1.25rem; text-decoration: underline;
}
.g4c4-footer-links a:hover { color: var(--g4c4-primary); }
.g4c4-footer-promos {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin: 1rem 0;
}
.g4c4-copyright { font-size: 1.15rem; color: var(--g4c4-text-muted); margin-top: 1rem; }

/* ---------- Mobile bottom navigation ---------- */
.g4c4-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, #1f1f1f, #111);
  border-top: 2px solid var(--g4c4-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.g4c4-bottom-nav a {
  flex: 1 1 0; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--g4c4-text-muted); font-size: 1.05rem;
  text-decoration: none; transition: color 0.2s ease, transform 0.15s ease;
}
.g4c4-bottom-nav a:hover, .g4c4-bottom-nav a:active { color: var(--g4c4-primary); transform: translateY(-2px); }
.g4c4-bottom-nav a .material-icons,
.g4c4-bottom-nav a ion-icon,
.g4c4-bottom-nav a i { font-size: 24px; }
.g4c4-bottom-nav .g4c4-nav-current { color: var(--g4c4-primary); }
.g4c4-bottom-nav .g4c4-nav-badge {
  position: absolute; margin-left: 2.2rem; margin-top: -0.6rem;
  background: #ff3b30; color: #fff; font-size: 0.9rem;
  padding: 0 5px; border-radius: 999px; line-height: 1.5;
}
.g4c4-nav-item { position: relative; }

/* ---------- Main content spacing for fixed header + bottom nav ---------- */
main { padding-top: 6.2rem; }
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* ---------- Desktop hides bottom nav ---------- */
@media (min-width: 769px) {
  .g4c4-bottom-nav { display: none; }
  main { padding-bottom: 2rem; }
  .g4c4-container, .g4c4-footer-inner, .g4c4-header-inner, .g4c4-carousel { max-width: 760px; }
}

/* ---------- Utility ---------- */
.g4c4-text-center { text-align: center; }
.g4c4-mt-1 { margin-top: 0.6rem; }
.g4c4-mt-2 { margin-top: 1.2rem; }
.g4c4-hidden { display: none !important; }
.g4c4-promo-banner {
  background: linear-gradient(90deg, #FFA500, #3CB371);
  color: #1E1E1E; padding: 1rem; border-radius: 12px; text-align: center;
  font-weight: 800; margin: 1rem 0; cursor: pointer;
}
