/*!
 * pinas77 theme stylesheet
 * Mobile-first styling for header, navigation, games grid, footer,
 * and fixed mobile bottom navigation. All classes use w4836- prefix.
 */

:root {
  --w4836-primary: #bae1ff;
  --w4836-accent: #ffb6c1;
  --w4836-soft: #ffc0cb;
  --w4836-neutral: #e0e0e0;
  --w4836-bg: #0c0c0c;
  --w4836-bg-2: #15161a;
  --w4836-card: #1c1d23;
  --w4836-text: #faf0e6;
  --w4836-muted: #b8bcc8;
  --w4836-gold: #f5c97a;
  --w4836-radius: 14px;
  --w4836-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --w4836-header-h: 56px;
  --w4836-bottom-h: 62px;
}

* {
  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: radial-gradient(circle at top, #1a1c22 0%, #0c0c0c 60%);
  color: var(--w4836-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}

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

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

.w4836-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}

.w4836-wrapper {
  padding-top: var(--w4836-header-h);
  padding-bottom: calc(var(--w4836-bottom-h) + 20px);
}

/* ===== Header ===== */
.w4836-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--w4836-header-h);
  background: linear-gradient(90deg, #14151b 0%, #1f2230 100%);
  border-bottom: 1px solid rgba(186, 225, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.w4836-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--w4836-text);
  font-weight: 700;
  font-size: 1.7rem;
}

.w4836-brand img,
.w4836-brand .w4836-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--w4836-primary), var(--w4836-accent));
}

.w4836-brand .w4836-logo-text {
  background: linear-gradient(90deg, var(--w4836-primary), var(--w4836-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.w4836-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.w4836-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.w4836-btn:active {
  transform: scale(0.95);
}

.w4836-btn-login {
  background: transparent;
  color: var(--w4836-text);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.w4836-btn-register {
  background: linear-gradient(90deg, var(--w4836-accent), var(--w4836-soft));
  color: #2a1018;
  box-shadow: 0 4px 14px rgba(255, 182, 193, 0.4);
}

.w4836-menu-toggle {
  background: transparent;
  border: none;
  color: var(--w4836-text);
  font-size: 2rem;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.w4836-menu-toggle:hover {
  background: rgba(186, 225, 255, 0.12);
}

/* ===== Mobile menu ===== */
.w4836-mobile-menu {
  position: fixed;
  top: var(--w4836-header-h);
  left: 0;
  right: 0;
  z-index: 9999;
  background: #15161d;
  border-bottom: 1px solid rgba(186, 225, 255, 0.18);
  padding: 8px 12px 14px;
  transform: translateY(-140%);
  transition: transform 0.28s ease;
  max-height: calc(100vh - var(--w4836-header-h));
  overflow-y: auto;
}

.w4836-mobile-menu.w4836-menu-open {
  transform: translateY(0);
}

.w4836-mobile-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--w4836-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.w4836-mobile-menu a:hover,
.w4836-mobile-menu a:focus {
  background: rgba(186, 225, 255, 0.08);
}

/* ===== Hero ===== */
.w4836-hero {
  margin: 12px 0 16px;
  border-radius: var(--w4836-radius);
  overflow: hidden;
  box-shadow: var(--w4836-shadow);
}

.w4836-carousel {
  position: relative;
  overflow: hidden;
}

.w4836-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.w4836-carousel-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

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

.w4836-carousel-cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(12, 12, 12, 0.65);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--w4836-text);
}

.w4836-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
}

.w4836-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
}

.w4836-carousel-dot.w4836-dot-active {
  background: var(--w4836-accent);
  width: 22px;
  border-radius: 6px;
}

/* ===== Sections ===== */
.w4836-section {
  margin: 20px 0;
}

.w4836-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--w4836-text);
}

.w4836-section-title::before {
  content: "";
  width: 5px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(var(--w4836-primary), var(--w4836-accent));
}

.w4836-h1 {
  font-size: 2.1rem;
  line-height: 1.35;
  font-weight: 800;
  margin: 18px 0 8px;
  background: linear-gradient(90deg, #fff 30%, var(--w4836-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.w4836-lead {
  color: var(--w4836-muted);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

/* ===== Game grid ===== */
.w4836-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.w4836-game-card {
  background: var(--w4836-card);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  padding: 6px 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.w4836-game-card:hover,
.w4836-game-card:active {
  transform: translateY(-3px);
  box-shadow: var(--w4836-shadow);
  border-color: rgba(255, 182, 193, 0.4);
}

.w4836-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.w4836-game-card .w4836-game-name {
  font-size: 1.15rem;
  color: var(--w4836-text);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w4836-cat-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 1.1rem;
  background: rgba(186, 225, 255, 0.16);
  color: var(--w4836-primary);
  margin-bottom: 10px;
  text-transform: capitalize;
}

/* ===== Cards / features ===== */
.w4836-card {
  background: var(--w4836-card);
  border-radius: var(--w4836-radius);
  padding: 14px;
  box-shadow: var(--w4836-shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.w4836-card h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--w4836-text);
}

.w4836-card p {
  margin: 0 0 10px;
  color: var(--w4836-muted);
  font-size: 1.3rem;
}

.w4836-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.w4836-feature {
  background: rgba(186, 225, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  border: 1px solid rgba(186, 225, 255, 0.12);
}

.w4836-feature .material-icons,
.w4836-feature i {
  font-size: 26px;
  color: var(--w4836-accent);
}

.w4836-feature h4 {
  margin: 6px 0 4px;
  font-size: 1.3rem;
  color: var(--w4836-text);
}

.w4836-feature p {
  font-size: 1.15rem;
  color: var(--w4836-muted);
  margin: 0;
}

/* ===== Promo banner CTA ===== */
.w4836-cta {
  background: linear-gradient(120deg, #2a1822 0%, #1c2230 100%);
  border: 1px solid rgba(255, 182, 193, 0.35);
  border-radius: var(--w4836-radius);
  padding: 16px;
  text-align: center;
  margin: 18px 0;
}

.w4836-cta h3 {
  margin: 0 0 6px;
  font-size: 1.7rem;
  color: var(--w4836-gold);
}

.w4836-cta p {
  color: var(--w4836-muted);
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.w4836-link-bold {
  color: var(--w4836-accent);
  font-weight: 700;
  text-decoration: underline;
}

/* ===== Testimonials ===== */
.w4836-testimonials {
  display: grid;
  gap: 10px;
}

.w4836-testimonial {
  background: var(--w4836-card);
  border-radius: 12px;
  padding: 12px;
  border-left: 4px solid var(--w4836-primary);
}

.w4836-testimonial .w4836-stars {
  color: var(--w4836-gold);
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.w4836-testimonial p {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: var(--w4836-text);
}

.w4836-testimonial span {
  color: var(--w4836-muted);
  font-size: 1.15rem;
}

/* ===== Footer ===== */
.w4836-footer {
  margin-top: 24px;
  padding: 18px 0 calc(var(--w4836-bottom-h) + 24px);
  background: #0a0b0f;
  border-top: 1px solid rgba(186, 225, 255, 0.12);
}

.w4836-footer-brand {
  color: var(--w4836-muted);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.w4836-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.w4836-footer-links a {
  font-size: 1.15rem;
  color: var(--w4836-primary);
  background: rgba(186, 225, 255, 0.08);
  padding: 6px 10px;
  border-radius: 8px;
}

.w4836-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.w4836-footer-promos .w4836-btn {
  flex: 1 1 45%;
  font-size: 1.2rem;
}

.w4836-copyright {
  color: var(--w4836-muted);
  font-size: 1.1rem;
  text-align: center;
}

/* ===== Bottom nav ===== */
.w4836-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--w4836-bottom-h);
  background: linear-gradient(180deg, #181a22 0%, #0c0c0c 100%);
  border-top: 1px solid rgba(255, 182, 193, 0.25);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 4px 0;
}

.w4836-bottom-nav a,
.w4836-bottom-nav button {
  flex: 1;
  min-width: 60px;
  min-height: 58px;
  background: transparent;
  border: none;
  color: var(--w4836-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1.05rem;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}

.w4836-bottom-nav a:active,
.w4836-bottom-nav button:active {
  transform: scale(0.92);
}

.w4836-bottom-nav .material-icons,
.w4836-bottom-nav i {
  font-size: 24px;
}

.w4836-bottom-nav .w4836-active {
  color: var(--w4836-accent);
}

.w4836-bottom-nav .w4836-active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--w4836-accent);
}

.w4836-nav-badge {
  position: absolute;
  top: 6px;
  right: 22%;
  background: #ff4d6d;
  color: #fff;
  font-size: 0.9rem;
  padding: 1px 5px;
  border-radius: 999px;
}

/* ===== Reveal animation ===== */
.w4836-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.w4836-reveal.w4836-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (min-width: 431px) and (max-width: 768px) {
  .w4836-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 769px) {
  body {
    background: #0c0c0c;
  }
  .w4836-container {
    max-width: 760px;
  }
  .w4836-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .w4836-features {
    grid-template-columns: repeat(4, 1fr);
  }
  .w4836-bottom-nav {
    display: none;
  }
  .w4836-footer {
    padding-bottom: 24px;
  }
  .w4836-wrapper {
    padding-bottom: 24px;
  }
}
