/* abc8 app - design.css
   Mobile-first styles for abc8app.click
   All custom classes use the wc07c- prefix.
   Comments in English only.
*/
:root {
  --wc07c-bg: #1B263B;
  --wc07c-bg-soft: #243349;
  --wc07c-bg-card: #2b3c57;
  --wc07c-primary: #FFEF94;
  --wc07c-accent: #A0522D;
  --wc07c-text: #FFEF94;
  --wc07c-text-soft: #A9A9A9;
  --wc07c-muted: #696969;
  --wc07c-line: rgba(255, 239, 148, 0.12);
  --wc07c-radius: 14px;
  --wc07c-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

* { 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(--wc07c-bg);
  color: var(--wc07c-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.wc07c-wrapper {
  width: 100%;
  padding: 0 1.2rem;
}

/* ============ Header ============ */
.wc07c-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--wc07c-bg);
  border-bottom: 1px solid var(--wc07c-line);
  z-index: 1000;
  box-shadow: var(--wc07c-shadow);
}

.wc07c-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.6rem;
  padding: 0 1.2rem;
}

.wc07c-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wc07c-brand img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.6rem;
}

.wc07c-brand span {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--wc07c-primary);
  letter-spacing: 0.5px;
}

.wc07c-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wc07c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

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

.wc07c-btn-primary {
  background: linear-gradient(135deg, #FFEF94, #f5d76e);
  color: #1B263B;
  box-shadow: 0 4px 12px rgba(255, 239, 148, 0.25);
}

.wc07c-btn-outline {
  background: transparent;
  color: var(--wc07c-primary);
  border: 1.5px solid var(--wc07c-primary);
}

.wc07c-btn-ghost {
  background: transparent;
  color: var(--wc07c-primary);
  padding: 0 0.6rem;
  min-height: 3.6rem;
  font-size: 1.4rem;
}

.wc07c-icon-btn {
  background: transparent;
  border: none;
  color: var(--wc07c-primary);
  font-size: 2rem;
  cursor: pointer;
  min-width: 4.4rem;
  min-height: 4.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============ Mobile expandable menu ============ */
.wc07c-mobile-menu {
  position: fixed;
  top: 5.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--wc07c-bg-soft);
  border-bottom: 1px solid var(--wc07c-line);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
  z-index: 9999;
}

.wc07c-mobile-menu.wc07c-open { max-height: 60rem; }

.wc07c-mobile-menu ul { list-style: none; padding: 0.8rem 1.2rem; }

.wc07c-mobile-menu li a {
  display: block;
  padding: 1.1rem 0.6rem;
  color: var(--wc07c-primary);
  border-bottom: 1px solid var(--wc07c-line);
  font-size: 1.4rem;
}

.wc07c-mobile-menu li a:active { background: rgba(255, 239, 148, 0.08); }

/* ============ Main layout ============ */
.wc07c-main {
  padding-top: 5.6rem;
}

main { display: block; }

section { padding: 2rem 0; }

.wc07c-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--wc07c-primary);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1rem;
}

.wc07c-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--wc07c-primary);
  border-radius: 2px;
}

.wc07c-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--wc07c-primary);
  margin-bottom: 1rem;
}

.wc07c-lead {
  color: var(--wc07c-text-soft);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.wc07c-text-link {
  color: var(--wc07c-primary);
  font-weight: 700;
  border-bottom: 1px dashed var(--wc07c-primary);
  cursor: pointer;
}

/* ============ Carousel ============ */
.wc07c-carousel {
  position: relative;
  border-radius: var(--wc07c-radius);
  overflow: hidden;
  margin-bottom: 1.6rem;
  box-shadow: var(--wc07c-shadow);
}

.wc07c-slide {
  display: none;
  position: relative;
  cursor: pointer;
}

.wc07c-slide.wc07c-active { display: block; }

.wc07c-slide img { width: 100%; height: 18rem; object-fit: cover; }

.wc07c-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}

.wc07c-slide-cap b { color: var(--wc07c-primary); }

.wc07c-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.6rem 0;
}

.wc07c-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 239, 148, 0.4);
  border: none;
  cursor: pointer;
}

.wc07c-dot.wc07c-active { background: var(--wc07c-primary); }

/* ============ Game grid ============ */
.wc07c-game-block { margin-bottom: 2.4rem; }

.wc07c-cat-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wc07c-primary);
  margin: 1.2rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wc07c-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.wc07c-card {
  background: var(--wc07c-bg-card);
  border-radius: var(--wc07c-radius);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--wc07c-line);
  transition: transform 0.18s ease;
}

.wc07c-card:active { transform: scale(0.96); }

.wc07c-card img {
  width: 100%;
  height: 8rem;
  object-fit: cover;
}

.wc07c-card-name {
  font-size: 1.1rem;
  color: var(--wc07c-text-soft);
  padding: 0.4rem 0.2rem 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Info / feature blocks ============ */
.wc07c-card-box {
  background: var(--wc07c-bg-card);
  border-radius: var(--wc07c-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--wc07c-line);
}

.wc07c-card-box h3 {
  font-size: 1.5rem;
  color: var(--wc07c-primary);
  margin-bottom: 0.6rem;
}

.wc07c-card-box p {
  color: var(--wc07c-text-soft);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.wc07c-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.wc07c-feature {
  background: var(--wc07c-bg-card);
  padding: 1rem;
  border-radius: var(--wc07c-radius);
  text-align: center;
  border: 1px solid var(--wc07c-line);
}

.wc07c-feature .material-icons,
.wc07c-feature .ion {
  font-size: 2.4rem;
  color: var(--wc07c-primary);
}

.wc07c-feature h4 {
  font-size: 1.3rem;
  margin: 0.4rem 0;
  color: var(--wc07c-text);
}

.wc07c-feature p {
  font-size: 1.15rem;
  color: var(--wc07c-text-soft);
}

/* ============ CTA banner ============ */
.wc07c-cta {
  background: linear-gradient(135deg, var(--wc07c-accent), #c87744);
  border-radius: var(--wc07c-radius);
  padding: 1.6rem;
  text-align: center;
  margin: 1.6rem 0;
  color: #fff;
  box-shadow: var(--wc07c-shadow);
}

.wc07c-cta h3 { font-size: 1.7rem; margin-bottom: 0.6rem; color: var(--wc07c-primary); }
.wc07c-cta p { font-size: 1.3rem; color: #fff; margin-bottom: 1rem; }

/* ============ FAQ accordion ============ */
.wc07c-faq-item {
  background: var(--wc07c-bg-card);
  border-radius: var(--wc07c-radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--wc07c-line);
}

.wc07c-faq-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--wc07c-primary);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wc07c-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  padding: 0 1.2rem;
  color: var(--wc07c-text-soft);
  font-size: 1.25rem;
}

.wc07c-faq-item.wc07c-open .wc07c-faq-answer { max-height: 30rem; padding-bottom: 1.2rem; }

/* ============ Testimonials / winners ============ */
.wc07c-list { list-style: none; }
.wc07c-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--wc07c-line);
  font-size: 1.25rem;
  color: var(--wc07c-text-soft);
}
.wc07c-list li b { color: var(--wc07c-primary); }

/* ============ Footer ============ */
.wc07c-footer {
  background: var(--wc07c-bg-soft);
  padding: 2.4rem 1.2rem 8rem;
  border-top: 1px solid var(--wc07c-line);
  margin-top: 2rem;
}

.wc07c-footer p {
  color: var(--wc07c-text-soft);
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.wc07c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 1rem 0;
}

.wc07c-footer-links a {
  color: var(--wc07c-text-soft);
  font-size: 1.2rem;
}

.wc07c-footer-links a:hover { color: var(--wc07c-primary); }

.wc07c-promo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.wc07c-copy {
  margin-top: 1.2rem;
  color: var(--wc07c-muted);
  font-size: 1.1rem;
  text-align: center;
}

/* ============ Bottom nav (mobile only) ============ */
.wc07c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 6rem;
  background: var(--wc07c-bg-soft);
  border-top: 1px solid var(--wc07c-line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.3);
}

.wc07c-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 6rem;
  background: transparent;
  border: none;
  color: var(--wc07c-text-soft);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.wc07c-bottom-nav-btn .material-icons,
.wc07c-bottom-nav-btn .fas,
.wc07c-bottom-nav-btn .far,
.wc07c-bottom-nav-btn ion-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.wc07c-bottom-nav-btn span {
  font-size: 1rem;
}

.wc07c-bottom-nav-btn.wc07c-current,
.wc07c-bottom-nav-btn:active {
  color: var(--wc07c-primary);
  transform: translateY(-2px);
}

/* ============ Desktop ============ */
@media (min-width: 769px) {
  body { max-width: 430px; }
  .wc07c-bottom-nav { display: none; }
  .wc07c-footer { padding-bottom: 2.4rem; }
}

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