/**
 * Wagi777 Design Stylesheet
 * File: css/design-dc2e.css
 * Prefix: wdc2e-
 * Palette: #008B8B (primary) | #2D2D2D (bg) | #20B2AA (accent)
 */

/* === CSS Variables === */
:root {
  --wdc2e-primary: #008B8B;
  --wdc2e-bg: #2D2D2D;
  --wdc2e-accent: #20B2AA;
  --wdc2e-text: #F0F8FF;
  --wdc2e-text-muted: #A8C8C8;
  --wdc2e-card-bg: #1A3A3A;
  --wdc2e-card-border: #005555;
  --wdc2e-btn-gradient: linear-gradient(135deg, #008B8B 0%, #20B2AA 100%);
  --wdc2e-radius: 1.0rem;
  --wdc2e-radius-sm: 0.6rem;
  --wdc2e-shadow: 0 4px 20px rgba(0, 139, 139, 0.25);
  --wdc2e-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 62.5%;
}

/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--wdc2e-font);
  background: var(--wdc2e-bg);
  color: var(--wdc2e-text);
  line-height: 1.5rem;
  font-size: 1.6rem;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* === Header === */
.wdc2e-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(180deg, #1A3A3A 0%, #2D2D2D 100%);
  border-bottom: 2px solid var(--wdc2e-primary);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wdc2e-header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.wdc2e-header-logo img { width: 28px; height: 28px; border-radius: 4px; }
.wdc2e-header-logo span {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--wdc2e-accent);
  letter-spacing: 0.5px;
}
.wdc2e-header-actions { display: flex; gap: 0.6rem; align-items: center; }
.wdc2e-btn-register {
  background: var(--wdc2e-btn-gradient);
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: var(--wdc2e-radius-sm);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wdc2e-btn-register:hover { transform: scale(1.05); box-shadow: var(--wdc2e-shadow); }
.wdc2e-btn-login {
  background: transparent;
  color: var(--wdc2e-accent);
  border: 1.5px solid var(--wdc2e-accent);
  padding: 0.45rem 1.0rem;
  border-radius: var(--wdc2e-radius-sm);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.wdc2e-btn-login:hover { background: rgba(32, 178, 170, 0.15); }
.wdc2e-menu-btn {
  background: none;
  border: none;
  color: var(--wdc2e-accent);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* === Mobile Menu === */
.wdc2e-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}
.wdc2e-overlay-active { display: block; }
.wdc2e-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 260px;
  height: 100vh;
  background: #1A3A3A;
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.wdc2e-menu-active { right: 0; }
.wdc2e-mobile-menu a {
  display: block;
  color: var(--wdc2e-text);
  text-decoration: none;
  padding: 1.0rem 0;
  border-bottom: 1px solid #005555;
  font-size: 1.5rem;
  transition: color 0.2s, padding-left 0.2s;
}
.wdc2e-mobile-menu a:hover { color: var(--wdc2e-accent); padding-left: 0.8rem; }
.wdc2e-menu-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: var(--wdc2e-accent);
  font-size: 2.4rem;
  cursor: pointer;
}

/* === Carousel === */
.wdc2e-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 5.2rem;
  border-radius: 0 0 var(--wdc2e-radius) var(--wdc2e-radius);
}
.wdc2e-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.wdc2e-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}
.wdc2e-carousel-slide img { width: 100%; height: auto; display: block; }
.wdc2e-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.wdc2e-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}
.wdc2e-dot-active { background: var(--wdc2e-accent); }

/* === Container & Sections === */
.wdc2e-container { padding: 1.2rem; }
.wdc2e-section { margin-bottom: 2.4rem; }
.wdc2e-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--wdc2e-accent);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--wdc2e-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.wdc2e-section-title .material-icons { font-size: 2.2rem; }

/* === Game Grid === */
.wdc2e-category-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wdc2e-text);
  margin: 1.6rem 0 0.8rem;
  padding-left: 0.4rem;
  border-left: 3px solid var(--wdc2e-accent);
}
.wdc2e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.wdc2e-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.wdc2e-game-item:hover { transform: translateY(-3px); }
.wdc2e-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--wdc2e-radius-sm);
  border: 1.5px solid var(--wdc2e-card-border);
  object-fit: cover;
}
.wdc2e-game-item p {
  font-size: 1.1rem;
  color: var(--wdc2e-text-muted);
  margin-top: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Cards === */
.wdc2e-card {
  background: var(--wdc2e-card-bg);
  border-radius: var(--wdc2e-radius);
  border: 1px solid var(--wdc2e-card-border);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}
.wdc2e-card h3 {
  color: var(--wdc2e-accent);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.wdc2e-card p {
  color: var(--wdc2e-text-muted);
  font-size: 1.35rem;
  line-height: 1.6;
}

/* === Buttons === */
.wdc2e-btn-promo {
  display: inline-block;
  background: var(--wdc2e-btn-gradient);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: var(--wdc2e-radius-sm);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wdc2e-btn-promo:hover { transform: scale(1.05); box-shadow: var(--wdc2e-shadow); }
.wdc2e-btn-text {
  color: var(--wdc2e-accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.wdc2e-btn-text:hover { color: #5CE0D8; }

/* === Promo Banner === */
.wdc2e-promo-banner {
  background: linear-gradient(135deg, #005555 0%, #008B8B 50%, #20B2AA 100%);
  border-radius: var(--wdc2e-radius);
  padding: 1.6rem;
  text-align: center;
  margin-bottom: 1.6rem;
}
.wdc2e-promo-banner h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}
.wdc2e-promo-banner p { color: #D0F0F0; font-size: 1.3rem; margin-bottom: 1.0rem; }

/* === Features List === */
.wdc2e-features { list-style: none; }
.wdc2e-features li {
  padding: 0.6rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--wdc2e-text-muted);
  font-size: 1.35rem;
}
.wdc2e-features li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--wdc2e-accent);
  font-size: 1.2rem;
}

/* === Testimonials === */
.wdc2e-testimonial {
  background: var(--wdc2e-card-bg);
  border-left: 3px solid var(--wdc2e-accent);
  padding: 1.0rem 1.2rem;
  margin-bottom: 0.8rem;
  border-radius: 0 var(--wdc2e-radius-sm) var(--wdc2e-radius-sm) 0;
}
.wdc2e-testimonial p { font-size: 1.3rem; color: var(--wdc2e-text-muted); font-style: italic; }
.wdc2e-testimonial cite {
  display: block;
  font-size: 1.1rem;
  color: var(--wdc2e-accent);
  margin-top: 0.4rem;
  font-style: normal;
}

/* === Winners === */
.wdc2e-winners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.wdc2e-winner-item {
  background: var(--wdc2e-card-bg);
  border-radius: var(--wdc2e-radius-sm);
  padding: 0.8rem;
  text-align: center;
  border: 1px solid var(--wdc2e-card-border);
}
.wdc2e-winner-item strong { color: var(--wdc2e-accent); display: block; font-size: 1.3rem; }
.wdc2e-winner-item span { font-size: 1.1rem; color: var(--wdc2e-text-muted); }

/* === Footer === */
.wdc2e-footer {
  background: linear-gradient(180deg, #2D2D2D 0%, #1A2A2A 100%);
  padding: 2rem 1.2rem 1rem;
  border-top: 2px solid var(--wdc2e-primary);
  margin-top: 2rem;
}
.wdc2e-footer-brand {
  text-align: center;
  margin-bottom: 1.6rem;
}
.wdc2e-footer-brand p {
  font-size: 1.25rem;
  color: var(--wdc2e-text-muted);
  line-height: 1.5;
  max-width: 360px;
  margin: 0 auto;
}
.wdc2e-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.wdc2e-footer-links a {
  color: var(--wdc2e-accent);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  transition: color 0.2s;
}
.wdc2e-footer-links a:hover { color: #5CE0D8; }
.wdc2e-footer-promo-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.2rem 0;
}
.wdc2e-footer-promo-btns button {
  background: var(--wdc2e-btn-gradient);
  color: #fff;
  border: none;
  padding: 0.5rem 1.0rem;
  border-radius: var(--wdc2e-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}
.wdc2e-footer-promo-btns button:hover { transform: scale(1.05); }
.wdc2e-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  padding-top: 1.0rem;
  border-top: 1px solid #3A3A3A;
}

/* === Bottom Nav === */
.wdc2e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #1A3A3A 0%, #0D2020 100%);
  border-top: 1.5px solid var(--wdc2e-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.4rem;
}
.wdc2e-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: #7A9A9A;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  border-radius: 0.6rem;
  padding: 0.2rem;
}
.wdc2e-bottom-nav-item:hover,
.wdc2e-bottom-nav-item:focus {
  color: var(--wdc2e-accent);
  transform: scale(1.08);
}
.wdc2e-bottom-nav-item.active { color: var(--wdc2e-accent); }
.wdc2e-bottom-nav-item .material-icons { font-size: 24px; }
.wdc2e-bottom-nav-item i { font-size: 22px; }
.wdc2e-bottom-nav-item ion-icon { font-size: 24px; }
.wdc2e-bottom-nav-item bi { font-size: 22px; }
.wdc2e-bottom-nav-label {
  font-size: 1.0rem;
  margin-top: 0.15rem;
  font-weight: 500;
}

/* === Help Page Styles === */
.wdc2e-help-section { margin-bottom: 1.8rem; }
.wdc2e-help-section h2 {
  font-size: 1.7rem;
  color: var(--wdc2e-accent);
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--wdc2e-card-border);
}
.wdc2e-help-section h3 {
  font-size: 1.4rem;
  color: var(--wdc2e-text);
  margin: 1.0rem 0 0.5rem;
}
.wdc2e-help-section p, .wdc2e-help-section li {
  font-size: 1.35rem;
  color: var(--wdc2e-text-muted);
  line-height: 1.6;
}
.wdc2e-help-section ol, .wdc2e-help-section ul {
  padding-left: 2rem;
  margin: 0.6rem 0;
}
.wdc2e-faq-item {
  background: var(--wdc2e-card-bg);
  border-radius: var(--wdc2e-radius-sm);
  padding: 1.0rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--wdc2e-accent);
}
.wdc2e-faq-item strong { color: var(--wdc2e-accent); display: block; margin-bottom: 0.4rem; font-size: 1.4rem; }

/* === Desktop: hide bottom nav === */
@media (min-width: 769px) {
  .wdc2e-bottom-nav { display: none; }
}

/* === Mobile: bottom padding === */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* === Utility === */
.wdc2e-text-center { text-align: center; }
.wdc2e-mt-1 { margin-top: 0.8rem; }
.wdc2e-mt-2 { margin-top: 1.6rem; }
.wdc2e-mb-1 { margin-bottom: 0.8rem; }
.wdc2e-mb-2 { margin-bottom: 1.6rem; }
.wdc2e-hidden { display: none; }
.wdc2e-img-fluid { max-width: 100%; height: auto; }
.wdc2e-inline-link {
  color: var(--wdc2e-accent);
  text-decoration: underline;
  cursor: pointer;
}
.wdc2e-inline-link:hover { color: #5CE0D8; }
