/* =========================================================
 * sv388 com link - style.css
 * All custom classes use prefix "v42c-" to avoid conflicts.
 * Mobile-first design, max-width 430px viewport target.
 * Palette: #FA8072 | #212F3D | #FF4500 (dark = bg, light = text)
 * ========================================================= */

:root {
  --v42c-primary: #FA8072;
  --v42c-bg: #212F3D;
  --v42c-accent: #FF4500;
  --v42c-text: #F5F6FA;
  --v42c-muted: #B7BFD1;
  --v42c-card: #2C3E50;
  --v42c-border: rgba(250, 128, 114, 0.25);
  --v42c-radius: 10px;
  --v42c-header-h: 56px;
  --v42c-nav-h: 62px;
}

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

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

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--v42c-bg);
  color: var(--v42c-text);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Layout ---------- */
.v42c-container { width: 100%; padding: 0 1.2rem; }
.v42c-wrapper { padding-top: var(--v42c-header-h); }

/* ---------- Header ---------- */
.v42c-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  height: var(--v42c-header-h);
  background: linear-gradient(90deg, #1B2631, #2C3E50);
  border-bottom: 2px solid var(--v42c-primary);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
}
.v42c-logo { display: flex; align-items: center; gap: 0.6rem; }
.v42c-logo img { width: 28px; height: 28px; border-radius: 6px; }
.v42c-logo span { font-size: 1.5rem; font-weight: 700; color: var(--v42c-text); }

.v42c-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v42c-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem; border-radius: 20px;
  font-size: 1.25rem; font-weight: 700; cursor: pointer;
  border: none; min-height: 36px;
  transition: transform 0.15s, opacity 0.15s;
}
.v42c-btn:active { transform: scale(0.96); }
.v42c-btn-register { background: var(--v42c-accent); color: #fff; }
.v42c-btn-login { background: var(--v42c-primary); color: #212F3D; }

.v42c-menu-btn {
  background: transparent; border: none; color: var(--v42c-text);
  font-size: 2rem; cursor: pointer; padding: 0 0.4rem;
  min-width: 44px; min-height: 44px;
}

/* ---------- Mobile expandable menu ---------- */
.v42c-mobile-menu {
  position: fixed; top: var(--v42c-header-h); left: 0; right: 0; z-index: 9999;
  max-width: 430px; margin: 0 auto;
  background: #1B2631; border-bottom: 2px solid var(--v42c-primary);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.v42c-mobile-menu.v42c-open { max-height: 480px; }
.v42c-mobile-menu ul { list-style: none; padding: 0.6rem 0; }
.v42c-mobile-menu li a {
  display: block; padding: 1rem 1.4rem; color: var(--v42c-text);
  font-size: 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.v42c-mobile-menu li a:active { background: rgba(250,128,114,0.12); }

/* ---------- Hero / Carousel ---------- */
.v42c-hero {
  position: relative; overflow: hidden; margin: 1rem 0;
  border-radius: var(--v42c-radius);
}
.v42c-slides { position: relative; }
.v42c-slide {
  display: none; padding: 2rem 1.4rem;
  background: linear-gradient(135deg, #2C3E50, #FA8072);
  border-radius: var(--v42c-radius);
}
.v42c-slide.v42c-active { display: block; }
.v42c-slide img { width: 100%; max-height: 145px; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; }
.v42c-slide h2 { font-size: 2rem; color: #fff; margin-bottom: 0.6rem; }
.v42c-slide p { font-size: 1.3rem; color: #fff; opacity: 0.95; margin-bottom: 1rem; }
.v42c-slide .v42c-cta {
  display: inline-block; background: var(--v42c-accent); color: #fff;
  padding: 0.7rem 1.6rem; border-radius: 24px; font-weight: 700; font-size: 1.3rem;
}
.v42c-dots { display: flex; gap: 0.5rem; justify-content: center; padding: 0.6rem 0; }
.v42c-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; }
.v42c-dot.v42c-active { background: var(--v42c-primary); }

/* ---------- Section titles ---------- */
.v42c-section { padding: 1.2rem 0; }
.v42c-section-title {
  font-size: 1.8rem; color: var(--v42c-primary); margin-bottom: 0.8rem;
  border-left: 4px solid var(--v42c-accent); padding-left: 0.8rem;
}

/* ---------- Tabs ---------- */
.v42c-tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.4rem 0 1rem; }
.v42c-tab {
  padding: 0.5rem 1.2rem; border-radius: 18px; white-space: nowrap;
  background: var(--v42c-card); color: var(--v42c-muted);
  font-size: 1.2rem; cursor: pointer; border: 1px solid transparent;
}
.v42c-tab.v42c-active { background: var(--v42c-primary); color: #212F3D; font-weight: 700; }

/* ---------- Game grid ---------- */
.v42c-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.v42c-card {
  background: var(--v42c-card); border-radius: var(--v42c-radius);
  overflow: hidden; border: 1px solid var(--v42c-border);
  transition: transform 0.15s;
}
.v42c-card:active { transform: scale(0.97); }
.v42c-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.v42c-card .v42c-card-name {
  font-size: 1.1rem; color: var(--v42c-text); text-align: center;
  padding: 0.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- SEO content ---------- */
.v42c-content { padding: 1rem 1.2rem; }
.v42c-content h2 { color: var(--v42c-primary); font-size: 1.8rem; margin: 1.2rem 0 0.6rem; }
.v42c-content h3 { color: #FFD9D2; font-size: 1.5rem; margin: 1rem 0 0.4rem; }
.v42c-content p { color: var(--v42c-text); font-size: 1.35rem; margin-bottom: 0.8rem; line-height: 1.6; }
.v42c-content a { font-weight: 700; color: var(--v42c-accent); text-decoration: underline; }
.v42c-content ul { margin: 0.6rem 0 1rem 1.6rem; }
.v42c-content li { font-size: 1.3rem; margin-bottom: 0.4rem; }

/* ---------- Footer ---------- */
.v42c-footer {
  background: #1B2631; border-top: 2px solid var(--v42c-primary);
  padding: 1.4rem 1.2rem; margin-top: 1.4rem;
}
.v42c-footer p { font-size: 1.25rem; color: var(--v42c-muted); margin-bottom: 0.8rem; line-height: 1.5; }
.v42c-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.v42c-footer-links a {
  background: var(--v42c-card); color: var(--v42c-text);
  padding: 0.4rem 0.8rem; border-radius: 14px; font-size: 1.15rem;
  border: 1px solid var(--v42c-border);
}
.v42c-footer-copy { font-size: 1.1rem; color: var(--v42c-muted); margin-top: 0.8rem; }
.v42c-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.v42c-footer-promo button {
  background: var(--v42c-accent); color: #fff; border: none;
  padding: 0.5rem 1rem; border-radius: 16px; font-size: 1.15rem; font-weight: 700;
}

/* ---------- Mobile bottom navigation ---------- */
.v42c-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  height: var(--v42c-nav-h);
  background: linear-gradient(180deg, #2C3E50, #1B2631);
  border-top: 2px solid var(--v42c-primary);
  display: flex; justify-content: space-around; align-items: center;
}
.v42c-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--v42c-muted);
  font-size: 1.05rem; cursor: pointer; gap: 2px;
  transition: color 0.2s, transform 0.15s;
}
.v42c-nav-btn .v42c-nav-icon { font-size: 22px; line-height: 1; }
.v42c-nav-btn .v42c-nav-label { font-size: 1rem; }
.v42c-nav-btn:active { transform: scale(0.92); }
.v42c-nav-btn.v42c-current { color: var(--v42c-primary); }
.v42c-nav-btn-promo { color: var(--v42c-accent); }

/* Mobile bottom padding so content not hidden behind fixed nav */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .v42c-bottom-nav { display: none; }
  body { max-width: 100%; }
  .v42c-header, .v42c-mobile-menu { max-width: 100%; }
  .v42c-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Utility ---------- */
.v42c-text-promo { color: var(--v42c-accent); font-weight: 700; }
.v42c-hidden { display: none !important; }
