/* ============================================================
 * Philwin - style.css
 * Mobile-first gaming website styles.
 * All custom classes use the `we727-` prefix for isolation.
 * Palette: #273746 (dark) | #B0E0E6 (accent) | #F0F8FF (text) | #E6E6FA (soft)
 * ============================================================ */

:root {
  --we727-primary: #273746;
  --we727-bg: #1c2a36;
  --we727-bg-2: #20313f;
  --we727-accent: #B0E0E6;
  --we727-accent-2: #7fc7d4;
  --we727-text: #F0F8FF;
  --we727-soft: #E6E6FA;
  --we727-gold: #f5c46b;
  --we727-hot: #ff5c7a;
  --we727-line: rgba(176, 224, 230, 0.14);
  --we727-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

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

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

.we727-no-scroll { overflow: hidden; }

/* ---------- Layout helpers ---------- */
.we727-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.we727-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

main { padding-bottom: 80px; }

/* ---------- Header ---------- */
.we727-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(39, 55, 70, 0.98), rgba(32, 49, 63, 0.96));
  border-bottom: 1px solid var(--we727-line);
  transition: box-shadow 0.2s ease;
}

.we727-header.we727-scrolled { box-shadow: var(--we727-shadow); }

.we727-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  min-height: 52px;
}

.we727-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--we727-text);
  font-weight: 700;
  font-size: 1.6rem;
}

.we727-brand img { width: 28px; height: 28px; border-radius: 6px; }
.we727-brand .we727-brand-text {
  background: linear-gradient(90deg, var(--we727-accent), var(--we727-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.we727-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.we727-menu-toggle {
  background: transparent;
  border: 1px solid var(--we727-line);
  color: var(--we727-text);
  width: 36px; height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.we727-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  min-height: 38px;
}

.we727-btn:active { transform: scale(0.96); }

.we727-btn-primary {
  background: linear-gradient(135deg, var(--we727-gold), #d99550);
  color: #2a1d09;
  box-shadow: 0 4px 12px rgba(245, 196, 107, 0.35);
}

.we727-btn-ghost {
  background: transparent;
  color: var(--we727-accent);
  border: 1px solid var(--we727-accent);
}

.we727-btn-soft {
  background: rgba(176, 224, 230, 0.12);
  color: var(--we727-text);
}

.we727-btn-block { width: 100%; }

.we727-link-text {
  color: var(--we727-gold);
  font-weight: 700;
}

/* ---------- Mobile slide-in menu ---------- */
.we727-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9998;
}

.we727-menu-backdrop.we727-is-open {
  opacity: 1;
  pointer-events: auto;
}

.we727-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: var(--we727-primary);
  padding: 1.5rem 1.2rem;
  z-index: 9999;
  transition: right 0.25s ease;
  overflow-y: auto;
}

.we727-mobile-menu.we727-is-open { right: 0; }

.we727-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.we727-menu-close {
  background: transparent;
  border: none;
  color: var(--we727-text);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

.we727-nav { list-style: none; padding: 0; margin: 0; }
.we727-nav li { border-bottom: 1px solid var(--we727-line); }
.we727-nav a {
  display: block;
  padding: 1.1rem 0.4rem;
  color: var(--we727-text);
  font-weight: 600;
}
.we727-nav a:hover { color: var(--we727-accent); }

/* ---------- Hero carousel ---------- */
.we727-hero {
  margin-top: 60px;
  padding: 0.8rem 0;
}

.we727-hero-track {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--we727-shadow);
  cursor: pointer;
}

.we727-hero-slide {
  display: none;
  position: relative;
}
.we727-hero-slide.we727-is-active { display: block; }
.we727-hero-slide img { width: 100%; height: 180px; object-fit: cover; }
.we727-hero-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(0deg, rgba(28,42,54,0.92), transparent);
  color: var(--we727-text);
}
.we727-hero-cap h2 { margin: 0 0 0.2rem; font-size: 1.7rem; font-weight: 700; }
.we727-hero-cap p { margin: 0; font-size: 1.15rem; color: var(--we727-accent); }

.we727-hero-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
}
.we727-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(176, 224, 230, 0.35);
  cursor: pointer;
  border: none;
  padding: 0;
}
.we727-hero-dot.we727-is-active { background: var(--we727-gold); }

/* ---------- Section heading ---------- */
.we727-section { padding: 1.4rem 0; }
.we727-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--we727-text);
}
.we727-section-title i { color: var(--we727-gold); }
.we727-section-title .we727-pill {
  margin-left: auto;
  font-size: 1.1rem;
  color: var(--we727-accent);
  font-weight: 500;
}

/* ---------- Game grid ---------- */
.we727-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.we727-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  text-align: center;
}

.we727-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--we727-bg-2);
  border: 1px solid var(--we727-line);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.we727-game:hover .we727-game-img { transform: translateY(-2px); box-shadow: var(--we727-shadow); }
.we727-game-img img { width: 100%; height: 100%; object-fit: cover; }

.we727-game-name {
  font-size: 1.1rem;
  color: var(--we727-text);
  line-height: 1.25;
  height: 2.8em;
  overflow: hidden;
  word-break: break-word;
}

/* ---------- Cards ---------- */
.we727-card {
  background: var(--we727-primary);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--we727-line);
  box-shadow: var(--we727-shadow);
}

.we727-card h3 { margin: 0 0 0.6rem; font-size: 1.5rem; color: var(--we727-accent); }
.we727-card p { margin: 0 0 0.6rem; color: var(--we727-text); font-size: 1.25rem; line-height: 1.6; }

/* ---------- Feature / highlight row ---------- */
.we727-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.we727-feature {
  background: var(--we727-primary);
  border-radius: 10px;
  padding: 0.9rem;
  text-align: center;
  border: 1px solid var(--we727-line);
}
.we727-feature i { font-size: 2rem; color: var(--we727-gold); }
.we727-feature h4 { margin: 0.4rem 0 0.2rem; font-size: 1.2rem; color: var(--we727-text); }
.we727-feature p { margin: 0; font-size: 1.05rem; color: var(--we727-soft); }

/* ---------- RTP table ---------- */
.we727-rtp {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.15rem;
}
.we727-rtp th, .we727-rtp td {
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--we727-line);
  text-align: left;
}
.we727-rtp th { color: var(--we727-accent); font-size: 1.1rem; }
.we727-rtp .we727-rtp-high { color: var(--we727-gold); font-weight: 700; }

/* ---------- Testimonials ---------- */
.we727-testi {
  background: var(--we727-primary);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--we727-gold);
}
.we727-testi p { margin: 0 0 0.4rem; font-size: 1.2rem; color: var(--we727-text); }
.we727-testi .we727-testi-by { font-size: 1.05rem; color: var(--we727-accent); }

/* ---------- Payment chips ---------- */
.we727-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.we727-chip {
  background: var(--we727-primary);
  border: 1px solid var(--we727-line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 1.1rem;
  color: var(--we727-text);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ---------- Footer ---------- */
.we727-footer {
  background: var(--we727-primary);
  border-top: 1px solid var(--we727-line);
  padding: 1.6rem 1.2rem 2rem;
  color: var(--we727-text);
}
.we727-footer h4 { color: var(--we727-accent); font-size: 1.3rem; margin: 0 0 0.5rem; }
.we727-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 0.8rem 0;
}
.we727-footer-links a { font-size: 1.15rem; color: var(--we727-text); }
.we727-footer-links a:hover { color: var(--we727-accent); }
.we727-footer-copy {
  font-size: 1.05rem;
  color: var(--we727-soft);
  margin-top: 1rem;
  opacity: 0.85;
}

/* ---------- Mobile bottom navigation ---------- */
.we727-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, rgba(39, 55, 70, 0.98), rgba(20, 30, 40, 0.99));
  border-top: 1px solid var(--we727-line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.35);
}

.we727-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--we727-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  position: relative;
  transition: color 0.18s ease, transform 0.18s ease;
}
.we727-bottom-nav-btn i,
.we727-bottom-nav-btn .material-icons-outlined {
  font-size: 22px;
}
.we727-bottom-nav-btn:hover { color: var(--we727-accent); }
.we727-bottom-nav-btn:active { transform: scale(0.92); }
.we727-bottom-nav-btn.we727-is-current { color: var(--we727-gold); }
.we727-bottom-nav-btn.we727-is-current::after {
  content: "";
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--we727-gold);
}
.we727-bottom-nav-btn .we727-badge {
  position: absolute;
  top: 6px; right: 18px;
  background: var(--we727-hot);
  color: #fff;
  font-size: 0.85rem;
  min-width: 14px; height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Desktop rules ---------- */
@media (min-width: 769px) {
  .we727-bottom-nav { display: none; }
  main { padding-bottom: 30px; }
  .we727-container, .we727-wrapper, .we727-header-inner, .we727-footer { max-width: 720px; }
}

@media (min-width: 481px) {
  .we727-grid { grid-template-columns: repeat(4, 1fr); }
}

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

/* ---------- Utility ---------- */
.we727-text-gold { color: var(--we727-gold); }
.we727-text-accent { color: var(--we727-accent); }
.we727-center { text-align: center; }
.we727-mt-1 { margin-top: 0.6rem; }
.we727-mt-2 { margin-top: 1.2rem; }
