/**
 * S5 Arena - Core Stylesheet
 * File: css/layout-288c.css
 * Prefix: w288c-
 * Palette: #E8F5E8 | #0000CD | #000080 | #1C2833 | #4169E1
 */

/* === CSS Variables === */
:root {
  --w288c-primary: #4169E1;
  --w288c-secondary: #0000CD;
  --w288c-dark: #1C2833;
  --w288c-navy: #000080;
  --w288c-light: #E8F5E8;
  --w288c-bg: #0D1117;
  --w288c-surface: #161B22;
  --w288c-card: #1C2430;
  --w288c-text: #E8F5E8;
  --w288c-text-muted: #8B9EB0;
  --w288c-accent: #4169E1;
  --w288c-gold: #FFD700;
  --w288c-radius: 8px;
  --w288c-header-h: 56px;
  --w288c-bottom-h: 60px;
  --w288c-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  --w288c-font-size: 62.5%;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--w288c-font-size); scroll-behavior: smooth; }
body {
  font-family: var(--w288c-font);
  background: var(--w288c-bg);
  color: var(--w288c-text);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
a { color: var(--w288c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--w288c-gold); }
img { max-width: 100%; height: auto; display: block; }

/* === Header === */
.w288c-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--w288c-dark), var(--w288c-navy));
  border-bottom: 2px solid var(--w288c-primary);
  max-width: 430px; margin: 0 auto;
  height: var(--w288c-header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
}
.w288c-logo {
  display: flex; align-items: center; gap: 0.8rem;
}
.w288c-logo img { width: 28px; height: 28px; border-radius: 4px; }
.w288c-logo-text {
  font-size: 1.6rem; font-weight: 700;
  background: linear-gradient(90deg, var(--w288c-light), var(--w288c-gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.w288c-header-actions { display: flex; gap: 0.6rem; align-items: center; }
.w288c-btn-register, .w288c-btn-login {
  border: none; border-radius: 6px; cursor: pointer;
  font-size: 1.2rem; font-weight: 600; padding: 0.5rem 1rem;
  transition: transform .15s, box-shadow .15s;
}
.w288c-btn-register {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: var(--w288c-dark);
}
.w288c-btn-login {
  background: transparent; color: var(--w288c-light);
  border: 1px solid var(--w288c-primary);
}
.w288c-btn-register:hover, .w288c-btn-login:hover { transform: scale(1.05); }
.w288c-menu-toggle {
  background: none; border: none; color: var(--w288c-light);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* === Mobile Menu Overlay === */
.w288c-mobile-menu {
  display: none; position: fixed; top: var(--w288c-header-h);
  left: 0; right: 0; bottom: 0; z-index: 9999;
  background: rgba(13,17,23,0.97);
  max-width: 430px; margin: 0 auto;
  padding: 2rem 1.5rem; overflow-y: auto;
}
.w288c-mobile-menu.w288c-menu-active { display: block; }
.w288c-mobile-menu a {
  display: block; padding: 1.2rem 0; font-size: 1.4rem;
  color: var(--w288c-text); border-bottom: 1px solid rgba(65,105,225,0.2);
}
.w288c-mobile-menu a:hover { color: var(--w288c-gold); padding-left: 0.8rem; }

/* === Main Content === */
main { padding-top: calc(var(--w288c-header-h) + 1rem); padding-bottom: 2rem; }

/* === Carousel === */
.w288c-carousel { position: relative; width: 100%; overflow: hidden; border-radius: var(--w288c-radius); margin-bottom: 2rem; }
.w288c-carousel-slide { display: none; width: 100%; cursor: pointer; }
.w288c-carousel-slide img { width: 100%; border-radius: var(--w288c-radius); }
.w288c-carousel-dots { display: flex; justify-content: center; gap: 0.6rem; padding: 0.8rem 0; }
.w288c-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--w288c-text-muted);
  cursor: pointer; border: none; transition: background .2s;
}
.w288c-dot-active { background: var(--w288c-gold); transform: scale(1.2); }

/* === Section Titles === */
.w288c-section-title {
  font-size: 1.8rem; font-weight: 700; margin: 2rem 0 1rem;
  padding-left: 1rem; border-left: 4px solid var(--w288c-primary);
  color: var(--w288c-light);
}

/* === Game Grid === */
.w288c-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; padding: 0 1rem; margin-bottom: 2rem;
}
.w288c-game-card {
  background: var(--w288c-card); border-radius: var(--w288c-radius);
  overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s;
  text-align: center;
}
.w288c-game-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(65,105,225,0.3); }
.w288c-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.w288c-game-card p {
  font-size: 1.1rem; color: var(--w288c-text); padding: 0.4rem 0.2rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* === Content Blocks === */
.w288c-content-block {
  padding: 1.5rem; margin: 0 1rem 1.5rem;
  background: var(--w288c-surface); border-radius: var(--w288c-radius);
  border: 1px solid rgba(65,105,225,0.15);
}
.w288c-content-block h2 {
  font-size: 1.6rem; margin-bottom: 0.8rem; color: var(--w288c-gold);
}
.w288c-content-block h3 {
  font-size: 1.4rem; margin: 1rem 0 0.5rem; color: var(--w288c-primary);
}
.w288c-content-block p {
  font-size: 1.3rem; line-height: 1.6; color: var(--w288c-text); margin-bottom: 0.8rem;
}
.w288c-content-block ul { padding-left: 1.5rem; margin-bottom: 0.8rem; }
.w288c-content-block li { font-size: 1.3rem; line-height: 1.6; margin-bottom: 0.4rem; color: var(--w288c-text-muted); }

/* === Promo Buttons & Links === */
.w288c-promo-btn {
  display: inline-block; padding: 0.8rem 1.8rem; border: none; border-radius: 6px;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  background: linear-gradient(135deg, var(--w288c-primary), var(--w288c-secondary));
  color: #fff; transition: transform .15s, box-shadow .15s;
}
.w288c-promo-btn:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(65,105,225,0.4); }
.w288c-promo-text {
  color: var(--w288c-gold); font-weight: 700; cursor: pointer;
  text-decoration: underline; font-size: 1.3rem;
}
.w288c-promo-text:hover { color: #FFA500; }

/* === Footer === */
.w288c-footer {
  background: linear-gradient(135deg, var(--w288c-dark), var(--w288c-navy));
  padding: 2rem 1.5rem 3rem; border-top: 2px solid var(--w288c-primary);
}
.w288c-footer-brand { font-size: 1.3rem; color: var(--w288c-text-muted); margin-bottom: 1.5rem; line-height: 1.5; }
.w288c-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem; }
.w288c-footer-links a {
  display: inline-block; padding: 0.5rem 1rem; border-radius: 4px;
  background: rgba(65,105,225,0.15); color: var(--w288c-light);
  font-size: 1.2rem; transition: background .2s;
}
.w288c-footer-links a:hover { background: rgba(65,105,225,0.3); }
.w288c-footer-copy { font-size: 1.1rem; color: var(--w288c-text-muted); text-align: center; padding-top: 1rem; border-top: 1px solid rgba(65,105,225,0.2); }

/* === Bottom Nav === */
.w288c-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000; max-width: 430px; margin: 0 auto;
  height: var(--w288c-bottom-h);
  background: linear-gradient(180deg, var(--w288c-dark), #0A0E14);
  border-top: 2px solid var(--w288c-primary);
  justify-content: space-around; align-items: center;
}
.w288c-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 54px; background: none; border: none;
  color: var(--w288c-text-muted); cursor: pointer; transition: color .2s, transform .15s;
  font-size: 1rem; gap: 0.2rem;
}
.w288c-bottom-btn:hover, .w288c-bottom-btn:focus { color: var(--w288c-gold); transform: scale(1.08); }
.w288c-bottom-btn .w288c-bnav-icon { font-size: 2.2rem; line-height: 1; }
.w288c-bottom-btn .w288c-bnav-label { font-size: 1rem; }

/* === Testimonial Cards === */
.w288c-testimonial {
  background: var(--w288c-card); border-radius: var(--w288c-radius);
  padding: 1.2rem; margin-bottom: 1rem; border-left: 3px solid var(--w288c-gold);
}
.w288c-testimonial p { font-size: 1.2rem; font-style: italic; color: var(--w288c-text-muted); margin-bottom: 0.5rem; }
.w288c-testimonial strong { color: var(--w288c-gold); font-size: 1.1rem; }

/* === Payment / Winner Grid === */
.w288c-badge-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin: 1rem 0; }
.w288c-badge-item {
  background: var(--w288c-card); padding: 0.6rem 1.2rem; border-radius: 20px;
  font-size: 1.2rem; color: var(--w288c-text);
}

/* === Utility === */
.w288c-text-center { text-align: center; }
.w288c-mt-1 { margin-top: 1rem; }
.w288c-mb-1 { margin-bottom: 1rem; }
.w288c-hidden { display: none; }

/* === Responsive === */
@media (max-width: 768px) {
  .w288c-bottom-nav { display: flex; }
  main { padding-bottom: calc(var(--w288c-bottom-h) + 1.5rem); }
  .w288c-footer { padding-bottom: calc(var(--w288c-bottom-h) + 2rem); }
}
@media (min-width: 769px) {
  .w288c-bottom-nav { display: none !important; }
  .w288c-menu-toggle { display: none; }
}
