/* ph777-games.css - Core styles for ph777 games website */
/* All classes use the wa154- prefix for namespace isolation */
/* Palette: #141414 bg | #008000 green | #7FFF00 light green | #00FF00 bright green */

:root {
  --wa154-bg: #141414;
  --wa154-bg-alt: #1c1c1c;
  --wa154-bg-card: #202020;
  --wa154-primary: #008000;
  --wa154-accent: #7FFF00;
  --wa154-bright: #00FF00;
  --wa154-text: #f4f4f4;
  --wa154-text-dim: #b5b5b5;
  --wa154-border: #2e2e2e;
  --wa154-radius: 1.2rem;
  --wa154-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.55);
  font-size: 62.5%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--wa154-bg);
  color: var(--wa154-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--wa154-accent); text-decoration: none; }
a:hover { color: var(--wa154-bright); }

/* ===== Header ===== */
.wa154-header {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; padding: 0.8rem 1rem;
  background: linear-gradient(90deg, #0e0e0e, #1a1a1a);
  border-bottom: 0.2rem solid var(--wa154-primary);
  box-shadow: var(--wa154-shadow);
}
.wa154-brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.wa154-brand img { width: 3rem; height: 3rem; border-radius: 0.6rem; }
.wa154-brand b { color: var(--wa154-bright); font-size: 1.5rem; white-space: nowrap; }
.wa154-brand span { color: var(--wa154-text-dim); font-size: 1.1rem; display: block; }
.wa154-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.wa154-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.2rem; border-radius: 2rem;
  font-weight: 700; font-size: 1.3rem; border: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-height: 4rem;
}
.wa154-btn-login { background: transparent; color: var(--wa154-accent); border: 0.15rem solid var(--wa154-accent); }
.wa154-btn-register {
  background: linear-gradient(90deg, var(--wa154-primary), var(--wa154-bright));
  color: #101010; box-shadow: 0 0.4rem 0.8rem rgba(0, 128, 0, 0.45);
}
.wa154-btn:hover { transform: translateY(-0.1rem); }
.wa154-menu-btn {
  background: transparent; border: 0.15rem solid var(--wa154-border);
  color: var(--wa154-text); border-radius: 0.8rem;
  padding: 0.6rem 0.8rem; font-size: 1.6rem; cursor: pointer;
  min-height: 4rem; min-width: 4rem;
}

/* ===== Nav Menu ===== */
.wa154-nav-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #161616; border-bottom: 0.2rem solid var(--wa154-primary);
  display: none; flex-direction: column;
  padding: 0.6rem 1rem 1rem; box-shadow: var(--wa154-shadow);
}
.wa154-nav-open { display: flex; }
.wa154-nav-menu a { color: var(--wa154-text); padding: 0.9rem 0.6rem; border-bottom: 0.1rem solid var(--wa154-border); font-size: 1.4rem; }
.wa154-nav-menu a:last-child { border-bottom: none; }
.wa154-nav-menu a:hover { color: var(--wa154-bright); padding-left: 1.2rem; }

/* ===== Carousel ===== */
.wa154-carousel { position: relative; width: 100%; height: 18rem; overflow: hidden; border-radius: 0 0 1.2rem 1.2rem; }
.wa154-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; cursor: pointer; }
.wa154-slide img { width: 100%; height: 100%; object-fit: cover; }
.wa154-slide-active { opacity: 1; }
.wa154-slide-caption {
  position: absolute; left: 1rem; bottom: 1.4rem;
  background: rgba(0, 0, 0, 0.65); color: var(--wa154-bright);
  padding: 0.5rem 1rem; border-radius: 1rem; font-weight: 700; font-size: 1.3rem;
}
.wa154-dots { position: absolute; bottom: 0.6rem; right: 1rem; display: flex; gap: 0.4rem; }
.wa154-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255, 255, 255, 0.35); border: none; cursor: pointer; }
.wa154-dot-active { background: var(--wa154-bright); }

/* ===== Layout ===== */
.wa154-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1rem; }
main { padding-bottom: 80px; }
.wa154-section { padding: 1.8rem 0; }
.wa154-section h2 {
  font-size: 1.9rem; color: var(--wa154-bright); margin-bottom: 0.6rem;
  border-left: 0.4rem solid var(--wa154-bright); padding-left: 0.8rem;
}
.wa154-section h3 { font-size: 1.6rem; color: var(--wa154-accent); margin: 1rem 0 0.4rem; }
.wa154-section p { color: var(--wa154-text-dim); margin-bottom: 0.8rem; font-size: 1.4rem; }
.wa154-text-link { color: var(--wa154-bright); font-weight: 700; text-decoration: underline; }
.wa154-promo-banner {
  background: linear-gradient(90deg, #0a3d00, #005a00);
  border: 0.15rem solid var(--wa154-bright); border-radius: var(--wa154-radius);
  padding: 1.2rem; text-align: center; margin: 1.4rem 0;
}
.wa154-promo-banner b { color: var(--wa154-bright); font-size: 1.6rem; }
.wa154-promo-banner p { color: var(--wa154-text); margin: 0.4rem 0 0; }
.wa154-cta-row { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin: 1rem 0; }

/* ===== Game Grid ===== */
.wa154-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-top: 0.6rem; }
.wa154-game-card {
  background: var(--wa154-bg-card); border: 0.1rem solid var(--wa154-border);
  border-radius: 0.9rem; overflow: hidden; text-align: center; cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  opacity: 0; transform: translateY(1rem);
}
.wa154-game-card:hover { transform: translateY(-0.2rem); border-color: var(--wa154-bright); }
.wa154-revealed { opacity: 1; transform: translateY(0); }
.wa154-game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.wa154-game-card span {
  display: block; padding: 0.4rem 0.3rem; font-size: 1.15rem;
  color: var(--wa154-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wa154-cat-title { font-size: 1.7rem; color: var(--wa154-accent); margin: 1.4rem 0 0.4rem; display: flex; align-items: center; gap: 0.5rem; }

/* ===== Feature / Info Cards ===== */
.wa154-cards-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin: 0.8rem 0; }
.wa154-info-card { background: var(--wa154-bg-card); border: 0.1rem solid var(--wa154-border); border-radius: var(--wa154-radius); padding: 1rem; text-align: center; }
.wa154-info-card i { color: var(--wa154-bright); font-size: 2.2rem; }
.wa154-info-card b { display: block; color: var(--wa154-accent); margin: 0.4rem 0; font-size: 1.4rem; }
.wa154-info-card p { font-size: 1.25rem; margin: 0; }

/* ===== Testimonials ===== */
.wa154-testimonial { background: var(--wa154-bg-card); border-left: 0.3rem solid var(--wa154-bright); border-radius: 0.8rem; padding: 0.9rem 1rem; margin-bottom: 0.7rem; }
.wa154-testimonial b { color: var(--wa154-accent); }
.wa154-testimonial .wa154-stars { color: #ffcc00; }

/* ===== Payment icons ===== */
.wa154-pay-row { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; margin: 0.8rem 0; }
.wa154-pay-row span { background: #fff; color: #141414; font-weight: 700; font-size: 1.1rem; padding: 0.4rem 0.8rem; border-radius: 0.5rem; }

/* ===== Winners ===== */
.wa154-winner { display: flex; justify-content: space-between; padding: 0.5rem 0.8rem; background: var(--wa154-bg-card); border-radius: 0.6rem; margin-bottom: 0.4rem; font-size: 1.25rem; }
.wa154-winner b { color: var(--wa154-bright); }

/* ===== Footer ===== */
.wa154-footer { background: #0b0b0b; border-top: 0.2rem solid var(--wa154-primary); padding: 1.6rem 1rem 2rem; margin-top: 1.4rem; }
.wa154-footer h3 { color: var(--wa154-accent); font-size: 1.5rem; margin-bottom: 0.6rem; }
.wa154-footer p { color: var(--wa154-text-dim); font-size: 1.3rem; margin-bottom: 0.8rem; }
.wa154-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin: 0.6rem 0 1rem; }
.wa154-footer-links a { color: var(--wa154-text); font-size: 1.25rem; }
.wa154-footer-links a:hover { color: var(--wa154-bright); }
.wa154-footer-promos { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin: 0.8rem 0; }
.wa154-footer-copy { text-align: center; color: #777; font-size: 1.15rem; border-top: 0.1rem solid var(--wa154-border); padding-top: 1rem; margin-top: 0.8rem; }

/* ===== Back to top ===== */
.wa154-top-btn {
  position: fixed; right: 1.2rem; bottom: 8rem; width: 4rem; height: 4rem;
  border-radius: 50%; background: var(--wa154-primary); color: #fff; border: none;
  font-size: 1.8rem; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease; z-index: 900;
}
.wa154-top-visible { opacity: 1; pointer-events: auto; }

/* ===== Bottom Nav (mobile only) ===== */
.wa154-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 62px;
  background: linear-gradient(180deg, #111, #000);
  border-top: 0.15rem solid var(--wa154-bright);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -0.4rem 1rem rgba(0, 0, 0, 0.6);
}
.wa154-bottom-nav button, .wa154-bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; background: transparent; border: none; color: var(--wa154-text-dim);
  font-size: 1rem; min-width: 60px; min-height: 60px; cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease; text-decoration: none;
}
.wa154-bottom-nav i, .wa154-bottom-nav .material-icons-outlined, .wa154-bottom-nav ion-icon { font-size: 2.2rem; }
.wa154-bottom-nav button:hover, .wa154-bottom-nav a:hover { color: var(--wa154-bright); transform: scale(1.06); }
.wa154-bottom-nav .wa154-active { color: var(--wa154-bright); }
.wa154-bottom-nav .wa154-nav-badge { position: absolute; top: 0.6rem; right: 1.6rem; background: #ff3b3b; color: #fff; font-size: 0.9rem; border-radius: 1rem; padding: 0 0.4rem; }

/* ===== Desktop: hide bottom nav ===== */
@media (min-width: 769px) {
  body { max-width: 768px; }
  .wa154-bottom-nav { display: none; }
  main { padding-bottom: 2rem; }
}

/* ===== Small screens tuning ===== */
@media (max-width: 360px) {
  .wa154-game-grid { grid-template-columns: repeat(2, 1fr); }
  .wa154-cards-row { grid-template-columns: 1fr; }
}
