/**
 * Jilliqq Gaming Site - Main Stylesheet
 * File: style-fbf3.css
 * Prefix: wfbf3-
 * Mobile-first design, max-width 430px, dark theme
 */

/* ===== CSS Variables ===== */
:root {
  --wfbf3-primary: #AD1457;
  --wfbf3-bg: #0E1621;
  --wfbf3-text: #FFC0CB;
  --wfbf3-accent: #1E90FF;
  --wfbf3-highlight: #AD1457;
  --wfbf3-white: #FFFFFF;
  --wfbf3-gray: #8892a0;
  --wfbf3-dark-card: #151f2e;
  --wfbf3-darker: #0a0f18;
  --wfbf3-border: rgba(173, 20, 87, 0.3);
  --wfbf3-radius: 10px;
  --wfbf3-radius-sm: 6px;
  --wfbf3-radius-lg: 16px;
  --wfbf3-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --wfbf3-shadow-primary: 0 4px 15px rgba(173, 20, 87, 0.35);
  --wfbf3-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--wfbf3-bg);
  color: var(--wfbf3-text);
  font-size: 1.5rem;
  line-height: 1.6;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--wfbf3-accent);
  text-decoration: none;
  transition: var(--wfbf3-transition);
}

a:hover {
  color: var(--wfbf3-primary);
}

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

ul, ol {
  list-style: none;
}

/* ===== Container ===== */
.wfbf3-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}

/* ===== Header ===== */
.wfbf3-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: var(--wfbf3-darker);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 1000;
  border-bottom: 1px solid var(--wfbf3-border);
}

.wfbf3-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wfbf3-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.wfbf3-site-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wfbf3-white);
  letter-spacing: 0.5px;
}

.wfbf3-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wfbf3-btn-register {
  background: var(--wfbf3-primary);
  color: var(--wfbf3-white);
  border: none;
  padding: 6px 14px;
  border-radius: var(--wfbf3-radius-sm);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--wfbf3-transition);
}

.wfbf3-btn-register:hover {
  background: #c2185b;
  transform: scale(1.05);
}

.wfbf3-btn-login {
  background: transparent;
  color: var(--wfbf3-accent);
  border: 1.5px solid var(--wfbf3-accent);
  padding: 5px 14px;
  border-radius: var(--wfbf3-radius-sm);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--wfbf3-transition);
}

.wfbf3-btn-login:hover {
  background: rgba(30, 144, 255, 0.15);
}

.wfbf3-hamburger {
  background: none;
  border: none;
  color: var(--wfbf3-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ===== Mobile Menu ===== */
.wfbf3-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--wfbf3-transition);
}

.wfbf3-overlay-active {
  opacity: 1;
  visibility: visible;
}

.wfbf3-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--wfbf3-darker);
  z-index: 9999;
  transition: right 0.35s ease;
  overflow-y: auto;
  padding: 70px 16px 20px;
}

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

.wfbf3-mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--wfbf3-text);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--wfbf3-transition);
}

.wfbf3-mobile-menu a:hover {
  color: var(--wfbf3-primary);
  padding-left: 8px;
}

.wfbf3-menu-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--wfbf3-text);
  font-size: 2.4rem;
  cursor: pointer;
}

/* ===== Carousel ===== */
.wfbf3-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  border-radius: 0 0 var(--wfbf3-radius) var(--wfbf3-radius);
}

.wfbf3-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.wfbf3-slide {
  min-width: 100%;
  cursor: pointer;
}

.wfbf3-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.wfbf3-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.wfbf3-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--wfbf3-transition);
}

.wfbf3-dot-active {
  background: var(--wfbf3-primary);
  width: 24px;
  border-radius: 4px;
}

/* ===== Main Content ===== */
main {
  padding: 16px 0 80px;
}

.wfbf3-section {
  margin-bottom: 24px;
}

.wfbf3-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wfbf3-white);
  margin-bottom: 12px;
  padding-left: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wfbf3-section-title i,
.wfbf3-section-title .material-symbols-outlined {
  color: var(--wfbf3-primary);
  font-size: 2rem;
}

/* ===== Game Grid ===== */
.wfbf3-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.wfbf3-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--wfbf3-transition);
  padding: 6px;
  border-radius: var(--wfbf3-radius-sm);
  background: var(--wfbf3-dark-card);
}

.wfbf3-game-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--wfbf3-shadow-primary);
}

.wfbf3-game-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--wfbf3-radius-sm);
  object-fit: cover;
  margin-bottom: 4px;
}

.wfbf3-game-name {
  font-size: 1.1rem;
  color: var(--wfbf3-text);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ===== Content Modules ===== */
.wfbf3-card {
  background: var(--wfbf3-dark-card);
  border-radius: var(--wfbf3-radius);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--wfbf3-border);
}

.wfbf3-card h2 {
  font-size: 1.8rem;
  color: var(--wfbf3-white);
  margin-bottom: 10px;
}

.wfbf3-card h3 {
  font-size: 1.5rem;
  color: var(--wfbf3-accent);
  margin-bottom: 8px;
}

.wfbf3-card p {
  font-size: 1.35rem;
  color: var(--wfbf3-text);
  line-height: 1.7;
  margin-bottom: 8px;
}

.wfbf3-card ul {
  padding-left: 16px;
  list-style: disc;
}

.wfbf3-card li {
  font-size: 1.35rem;
  color: var(--wfbf3-text);
  margin-bottom: 6px;
  line-height: 1.5;
}

/* ===== Promo CTA ===== */
.wfbf3-cta-box {
  background: linear-gradient(135deg, var(--wfbf3-primary), #880e4f);
  border-radius: var(--wfbf3-radius-lg);
  padding: 20px 16px;
  text-align: center;
  margin: 20px 0;
  cursor: pointer;
  transition: var(--wfbf3-transition);
}

.wfbf3-cta-box:hover {
  transform: scale(1.02);
  box-shadow: var(--wfbf3-shadow-primary);
}

.wfbf3-cta-box h2 {
  color: var(--wfbf3-white);
  font-size: 2rem;
  margin-bottom: 8px;
}

.wfbf3-cta-box p {
  color: var(--wfbf3-text);
  font-size: 1.35rem;
}

/* ===== Footer ===== */
.wfbf3-footer {
  background: var(--wfbf3-darker);
  padding: 24px 12px;
  border-top: 1px solid var(--wfbf3-border);
}

.wfbf3-footer-brand {
  text-align: center;
  margin-bottom: 16px;
}

.wfbf3-footer-brand p {
  font-size: 1.3rem;
  color: var(--wfbf3-gray);
  line-height: 1.6;
}

.wfbf3-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.wfbf3-footer-links a {
  background: var(--wfbf3-dark-card);
  color: var(--wfbf3-text);
  padding: 6px 12px;
  border-radius: var(--wfbf3-radius-sm);
  font-size: 1.2rem;
  border: 1px solid var(--wfbf3-border);
  transition: var(--wfbf3-transition);
}

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

.wfbf3-footer-copy {
  text-align: center;
  font-size: 1.2rem;
  color: var(--wfbf3-gray);
  margin-top: 12px;
}

/* ===== Bottom Navigation ===== */
.wfbf3-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--wfbf3-darker);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1px solid var(--wfbf3-border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.wfbf3-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--wfbf3-gray);
  cursor: pointer;
  transition: var(--wfbf3-transition);
  padding: 4px 0;
  border-radius: var(--wfbf3-radius-sm);
}

.wfbf3-nav-btn:hover,
.wfbf3-nav-btn:focus {
  color: var(--wfbf3-primary);
  transform: scale(1.1);
}

.wfbf3-nav-btn-active {
  color: var(--wfbf3-primary);
}

.wfbf3-nav-btn i,
.wfbf3-nav-btn .material-symbols-outlined,
.wfbf3-nav-btn bi {
  font-size: 22px;
  line-height: 1;
}

.wfbf3-nav-btn span {
  font-size: 1rem;
  margin-top: 2px;
  white-space: nowrap;
}

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

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

/* ===== Utility Classes ===== */
.wfbf3-text-center { text-align: center; }
.wfbf3-mb-8 { margin-bottom: 8px; }
.wfbf3-mb-16 { margin-bottom: 16px; }
.wfbf3-mb-24 { margin-bottom: 24px; }
.wfbf3-mt-16 { margin-top: 16px; }
.wfbf3-hidden { display: none; }

/* ===== Scroll to Top ===== */
.wfbf3-scroll-top {
  position: fixed;
  bottom: 72px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: var(--wfbf3-primary);
  color: var(--wfbf3-white);
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--wfbf3-shadow-primary);
  transition: var(--wfbf3-transition);
}

/* ===== FAQ Accordion ===== */
.wfbf3-faq-item {
  background: var(--wfbf3-dark-card);
  border-radius: var(--wfbf3-radius-sm);
  margin-bottom: 10px;
  border: 1px solid var(--wfbf3-border);
  overflow: hidden;
}

.wfbf3-faq-question {
  padding: 14px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--wfbf3-white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wfbf3-faq-question::after {
  content: '+';
  font-size: 1.8rem;
  color: var(--wfbf3-accent);
  transition: var(--wfbf3-transition);
}

.wfbf3-faq-answer {
  padding: 0 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.wfbf3-faq-answer p {
  font-size: 1.3rem;
  color: var(--wfbf3-text);
  line-height: 1.6;
  padding-bottom: 14px;
}

.wfbf3-faq-item:target .wfbf3-faq-answer {
  max-height: 300px;
  padding: 0 14px;
}

.wfbf3-faq-item:target .wfbf3-faq-question::after {
  content: '-';
}

/* ===== Step List ===== */
.wfbf3-steps {
  counter-reset: step-counter;
}

.wfbf3-step-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.wfbf3-step-num {
  background: var(--wfbf3-primary);
  color: var(--wfbf3-white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}

.wfbf3-step-text {
  font-size: 1.35rem;
  color: var(--wfbf3-text);
  line-height: 1.6;
}

/* ===== Internal Link ===== */
.wfbf3-inline-link {
  color: var(--wfbf3-accent);
  text-decoration: underline;
  transition: var(--wfbf3-transition);
}

.wfbf3-inline-link:hover {
  color: var(--wfbf3-primary);
}
