/**
 * ABC Link - Layout Stylesheet
 * All classes use wf11b- prefix for namespace isolation
 * Color Palette: #0F0F23 | #FFA500 | #E0FFFF | #FFFACD | #FFF8DC
 * Site: abclink.cfd
 */

/* Root variables and base reset */
:root {
  --wf11b-primary: #FFA500;
  --wf11b-bg: #0F0F23;
  --wf11b-bg-light: #1a1a3e;
  --wf11b-text: #E0FFFF;
  --wf11b-text-light: #FFFACD;
  --wf11b-text-muted: #FFF8DC;
  --wf11b-accent: #FFA500;
  --wf11b-border: #2a2a5a;
  --wf11b-card-bg: #161638;
  --wf11b-radius: 8px;
  --wf11b-radius-lg: 14px;
  --wf11b-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  font-size: 62.5%;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  background: var(--wf11b-bg);
  color: var(--wf11b-text);
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--wf11b-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--wf11b-text-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === HEADER === */
.wf11b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: linear-gradient(180deg, #0F0F23 0%, #131342 100%);
  border-bottom: 1px solid var(--wf11b-border);
  padding: 0 1.2rem;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wf11b-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.wf11b-logo-area img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.wf11b-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wf11b-primary);
  letter-spacing: 0.5px;
}

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

.wf11b-btn-register, .wf11b-btn-login {
  border: none;
  border-radius: var(--wf11b-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 1.2rem;
  transition: all 0.25s ease;
  min-height: 32px;
}

.wf11b-btn-register {
  background: linear-gradient(135deg, #FFA500, #FF8C00);
  color: #0F0F23;
}

.wf11b-btn-register:hover {
  background: linear-gradient(135deg, #FFB733, #FFA500);
  transform: scale(1.04);
}

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

.wf11b-btn-login:hover {
  background: rgba(255, 165, 0, 0.1);
  transform: scale(1.04);
}

.wf11b-menu-btn {
  background: none;
  border: none;
  color: var(--wf11b-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* === MOBILE MENU === */
.wf11b-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}
.wf11b-overlay-active { display: block; }

.wf11b-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: var(--wf11b-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.6rem;
  overflow-y: auto;
}

.wf11b-menu-active { right: 0; }

.wf11b-mobile-menu .wf11b-menu-close {
  background: none;
  border: none;
  color: var(--wf11b-text);
  font-size: 2.2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.2rem;
}

.wf11b-menu-links {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.wf11b-menu-links a {
  display: block;
  padding: 1rem 1.2rem;
  color: var(--wf11b-text);
  font-size: 1.5rem;
  border-radius: var(--wf11b-radius);
  transition: background 0.2s;
}

.wf11b-menu-links a:hover {
  background: rgba(255, 165, 0, 0.12);
  color: var(--wf11b-primary);
}

/* === MAIN CONTENT === */
.wf11b-main {
  padding-top: 54px;
  min-height: 100vh;
}

/* === CAROUSEL === */
.wf11b-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16/8;
  overflow: hidden;
  background: var(--wf11b-bg-light);
}

.wf11b-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.wf11b-slide-active { opacity: 1; }

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

.wf11b-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

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

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

/* === SECTION COMMON === */
.wf11b-section {
  padding: 2rem 1.2rem;
}

.wf11b-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wf11b-primary);
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 1rem;
}

.wf11b-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 3px;
  background: var(--wf11b-primary);
  border-radius: 2px;
}

/* === GAME GRID === */
.wf11b-game-section {
  padding: 1.2rem;
}

.wf11b-game-section h2 {
  font-size: 1.7rem;
  color: var(--wf11b-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wf11b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.wf11b-game-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--wf11b-radius);
  overflow: hidden;
}

.wf11b-game-card:hover { transform: translateY(-2px); }

.wf11b-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--wf11b-radius);
  border: 1px solid var(--wf11b-border);
}

.wf11b-game-card span {
  display: block;
  font-size: 1.1rem;
  color: var(--wf11b-text-muted);
  margin-top: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === CONTENT BLOCKS === */
.wf11b-content-block {
  background: var(--wf11b-card-bg);
  border: 1px solid var(--wf11b-border);
  border-radius: var(--wf11b-radius-lg);
  padding: 1.6rem;
  margin: 1.2rem;
}

.wf11b-content-block h2 {
  font-size: 1.8rem;
  color: var(--wf11b-primary);
  margin-bottom: 1rem;
}

.wf11b-content-block h3 {
  font-size: 1.5rem;
  color: var(--wf11b-text-light);
  margin: 1rem 0 0.5rem;
}

.wf11b-content-block p {
  color: var(--wf11b-text);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.wf11b-content-block ul {
  padding-left: 1.6rem;
  margin-bottom: 0.8rem;
}

.wf11b-content-block li {
  list-style: disc;
  color: var(--wf11b-text-muted);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

/* Promo button inside content */
.wf11b-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, #FFA500, #FF8C00);
  color: #0F0F23;
  font-weight: 700;
  font-size: 1.4rem;
  padding: 0.8rem 2rem;
  border-radius: var(--wf11b-radius);
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-align: center;
}

.wf11b-promo-btn:hover {
  background: linear-gradient(135deg, #FFB733, #FFA500);
  transform: scale(1.04);
}

.wf11b-promo-link {
  color: var(--wf11b-primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.wf11b-promo-link:hover { color: var(--wf11b-text-light); }

/* === TESTIMONIALS === */
.wf11b-testimonial {
  background: var(--wf11b-card-bg);
  border: 1px solid var(--wf11b-border);
  border-radius: var(--wf11b-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
}

.wf11b-testimonial-name {
  font-weight: 700;
  color: var(--wf11b-primary);
  font-size: 1.3rem;
}

.wf11b-testimonial-text {
  color: var(--wf11b-text-muted);
  font-size: 1.3rem;
  margin-top: 0.4rem;
}

/* === WINNER TABLE === */
.wf11b-winner-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
}

.wf11b-winner-table th {
  background: var(--wf11b-primary);
  color: #0F0F23;
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-weight: 600;
}

.wf11b-winner-table td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--wf11b-border);
  color: var(--wf11b-text-muted);
}

.wf11b-winner-table tr:nth-child(even) td {
  background: rgba(255, 165, 0, 0.04);
}

/* === FOOTER === */
.wf11b-footer {
  background: linear-gradient(180deg, var(--wf11b-bg-light) 0%, #0a0a1e 100%);
  border-top: 1px solid var(--wf11b-border);
  padding: 2rem 1.2rem 1rem;
}

.wf11b-footer-brand {
  font-size: 1.3rem;
  color: var(--wf11b-text-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.wf11b-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.wf11b-footer-links a {
  background: var(--wf11b-card-bg);
  border: 1px solid var(--wf11b-border);
  color: var(--wf11b-text);
  padding: 0.4rem 0.8rem;
  border-radius: var(--wf11b-radius);
  font-size: 1.2rem;
  transition: all 0.2s;
}

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

.wf11b-footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.wf11b-footer-partners img {
  height: 28px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.wf11b-footer-partners img:hover { opacity: 1; }

.wf11b-footer-copy {
  text-align: center;
  font-size: 1.2rem;
  color: var(--wf11b-text-muted);
  opacity: 0.7;
  padding-top: 0.8rem;
  border-top: 1px solid var(--wf11b-border);
}

/* === BOTTOM NAV === */
.wf11b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: linear-gradient(180deg, #161638 0%, #0F0F23 100%);
  border-top: 2px solid var(--wf11b-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.4rem;
}

.wf11b-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wf11b-text-muted);
  transition: all 0.2s ease;
  position: relative;
  border-radius: 8px;
}

.wf11b-bottom-btn:hover,
.wf11b-bottom-btn:focus {
  color: var(--wf11b-primary);
  background: rgba(255, 165, 0, 0.08);
  transform: scale(1.08);
}

.wf11b-bottom-btn .wf11b-bnav-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.wf11b-bottom-btn .wf11b-bnav-text {
  font-size: 1rem;
  margin-top: 0.15rem;
  white-space: nowrap;
}

.wf11b-bottom-btn.wf11b-bnav-active {
  color: var(--wf11b-primary);
}

.wf11b-bottom-btn.wf11b-bnav-active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--wf11b-primary);
  border-radius: 2px;
}

/* === HELP PAGE LAYOUT === */
.wf11b-help-hero {
  background: linear-gradient(135deg, #0F0F23, #1a1a3e);
  padding: 2rem 1.2rem;
  text-align: center;
}

.wf11b-help-hero h1 {
  font-size: 2.2rem;
  color: var(--wf11b-primary);
  margin-bottom: 0.6rem;
}

.wf11b-help-hero p {
  font-size: 1.4rem;
  color: var(--wf11b-text-muted);
}

.wf11b-help-content {
  padding: 1.2rem;
}

.wf11b-faq-item {
  background: var(--wf11b-card-bg);
  border: 1px solid var(--wf11b-border);
  border-radius: var(--wf11b-radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
}

.wf11b-faq-item h3 {
  font-size: 1.4rem;
  color: var(--wf11b-primary);
  margin-bottom: 0.5rem;
}

.wf11b-faq-item p {
  font-size: 1.3rem;
  color: var(--wf11b-text-muted);
  line-height: 1.5;
}

/* === DESKTOP ADAPTATIONS === */
@media (min-width: 769px) {
  .wf11b-bottom-nav { display: none; }
  body { max-width: 430px; }
}

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

/* === UTILITIES === */
.wf11b-text-center { text-align: center; }
.wf11b-mt-1 { margin-top: 0.8rem; }
.wf11b-mt-2 { margin-top: 1.6rem; }
.wf11b-mb-1 { margin-bottom: 0.8rem; }
.wf11b-mb-2 { margin-bottom: 1.6rem; }
.wf11b-hidden { display: none; }
