/* club top - core base styles
   All custom classes use the wbd3f- prefix.
   Mobile-first: max-width 430px, rem units (root font 62.5%).
   Palette: #40E0D0 | #A0522D | #006400 | #FF6347 | #0A0A0A */

:root {
  --wbd3f-bg: #0A0A0A;
  --wbd3f-surface: #141414;
  --wbd3f-surface2: #1c2220;
  --wbd3f-primary: #40E0D0;
  --wbd3f-accent: #FF6347;
  --wbd3f-gold: #A0522D;
  --wbd3f-green: #006400;
  --wbd3f-text: #f4f7f6;
  --wbd3f-muted: #9aa7a5;
  --wbd3f-border: rgba(64, 224, 208, 0.18);
}

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

html { font-size: 62.5%; }

body {
  font-family: "Segoe UI", Roboto, system-ui, -apple-system, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #10302d 0%, var(--wbd3f-bg) 55%);
  color: var(--wbd3f-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--wbd3f-primary); text-decoration: none; }
a:hover { color: var(--wbd3f-accent); }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
.wbd3f-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(180deg, rgba(10,10,10,0.96), rgba(10,10,10,0.88));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wbd3f-border);
  max-width: 430px; margin: 0 auto;
}
.wbd3f-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 800; font-size: 1.6rem; color: var(--wbd3f-primary);
  letter-spacing: 0.5px;
}
.wbd3f-logo img { width: 30px; height: 30px; border-radius: 6px; }
.wbd3f-logo span { color: var(--wbd3f-accent); }

.wbd3f-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.wbd3f-menu-btn {
  background: transparent; border: 0; color: var(--wbd3f-text);
  font-size: 2rem; cursor: pointer; padding: 0.2rem 0.4rem; line-height: 1;
}
.wbd3f-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700; font-size: 1.3rem;
  border: 0; cursor: pointer; min-height: 36px; transition: transform .15s, box-shadow .15s;
}
.wbd3f-btn-login { background: transparent; color: var(--wbd3f-primary); border: 1px solid var(--wbd3f-primary); }
.wbd3f-btn-register { background: linear-gradient(135deg, var(--wbd3f-accent), #ff8a5b); color: #fff; box-shadow: 0 4px 14px rgba(255,99,71,.35); }
.wbd3f-btn:hover { transform: translateY(-1px); }

/* ===== Mobile slide-down menu ===== */
.wbd3f-mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  max-width: 430px; margin: 0 auto;
  background: var(--wbd3f-surface);
  border-bottom: 1px solid var(--wbd3f-border);
  transform: translateY(-110%); transition: transform .28s ease;
  padding: 5rem 1rem 1.2rem;
}
.wbd3f-mobile-menu.wbd3f-open { transform: translateY(0); }
.wbd3f-mobile-menu a {
  display: block; padding: 0.9rem 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--wbd3f-text); font-size: 1.4rem; font-weight: 600;
}
.wbd3f-mobile-menu a:hover { color: var(--wbd3f-primary); }

/* ===== Layout ===== */
main { max-width: 430px; margin: 0 auto; padding-top: 56px; }
@media (max-width: 768px) { main { padding-bottom: 84px; } }

.wbd3f-container, .wbd3f-wrapper { max-width: 430px; margin: 0 auto; }
.wbd3f-grid { display: grid; gap: 0.8rem; }
.wbd3f-card { background: var(--wbd3f-surface); border: 1px solid var(--wbd3f-border); border-radius: 14px; padding: 1rem; }
.wbd3f-nav { display: flex; align-items: center; gap: 0.6rem; }

.wbd3f-section { padding: 1.4rem 1rem; }
.wbd3f-section-title {
  font-size: 1.7rem; font-weight: 800; margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.wbd3f-section-title i { color: var(--wbd3f-primary); }

/* ===== Hero / Banner ===== */
.wbd3f-hero {
  position: relative; margin: 0.6rem 0; border-radius: 14px; overflow: hidden;
  height: 200px; background: var(--wbd3f-surface2);
}
.wbd3f-hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1rem; background-size: cover; background-position: center;
}
.wbd3f-hero-slide.wbd3f-active { opacity: 1; }
.wbd3f-hero-slide h2 { font-size: 2rem; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.wbd3f-hero-slide p { font-size: 1.3rem; color: #e7efee; text-shadow: 0 1px 4px rgba(0,0,0,.6); margin: 0.2rem 0 0.6rem; }
.wbd3f-hero-cta {
  align-self: flex-start; background: var(--wbd3f-accent); color: #fff;
  padding: 0.5rem 1rem; border-radius: 8px; font-weight: 700; font-size: 1.3rem;
}

/* ===== Filter tabs ===== */
.wbd3f-filters { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.6rem 0; -webkit-overflow-scrolling: touch; }
.wbd3f-filter-tab {
  flex: 0 0 auto; padding: 0.5rem 1rem; border-radius: 20px;
  background: var(--wbd3f-surface); border: 1px solid var(--wbd3f-border);
  color: var(--wbd3f-muted); font-size: 1.2rem; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.wbd3f-filter-tab.wbd3f-active { background: var(--wbd3f-primary); color: #04221f; border-color: var(--wbd3f-primary); }

/* ===== Game grid ===== */
.wbd3f-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.wbd3f-game-card {
  position: relative; border-radius: 10px; overflow: hidden; background: var(--wbd3f-surface);
  border: 1px solid var(--wbd3f-border); cursor: pointer; transition: transform .15s;
}
.wbd3f-game-card:hover { transform: translateY(-2px); }
.wbd3f-game-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.wbd3f-game-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.35rem 0.4rem; font-size: 1.05rem; font-weight: 600;
  background: linear-gradient(0deg, rgba(0,0,0,.88), transparent);
  text-align: center; color: #fff;
}

/* ===== Promo strip ===== */
.wbd3f-promo {
  background: linear-gradient(135deg, var(--wbd3f-green), #0b3d0b);
  border: 1px solid var(--wbd3f-border); border-radius: 14px; padding: 1rem;
  margin: 1rem 0; display: flex; flex-direction: column; gap: 0.6rem;
}
.wbd3f-promo h3 { color: var(--wbd3f-primary); font-size: 1.6rem; }
.wbd3f-promo p { color: #d6e6e2; font-size: 1.3rem; }
.wbd3f-promo-link { font-weight: 800; color: var(--wbd3f-accent); font-size: 1.4rem; }

/* ===== SEO content ===== */
.wbd3f-seo { color: #cfd8d6; font-size: 1.35rem; line-height: 1.6rem; }
.wbd3f-seo h2 { color: var(--wbd3f-primary); font-size: 1.7rem; margin: 1rem 0 0.5rem; }
.wbd3f-seo h3 { color: var(--wbd3f-accent); font-size: 1.45rem; margin: 0.8rem 0 0.4rem; }
.wbd3f-seo p { margin: 0.4rem 0; }
.wbd3f-seo a { font-weight: 700; }

/* ===== Footer ===== */
.wbd3f-footer { background: var(--wbd3f-surface); border-top: 1px solid var(--wbd3f-border); padding: 1.4rem 1rem 2rem; }
.wbd3f-footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.wbd3f-footer h4 { color: var(--wbd3f-primary); font-size: 1.3rem; margin-bottom: 0.5rem; }
.wbd3f-footer a { display: block; color: var(--wbd3f-muted); font-size: 1.2rem; padding: 0.2rem 0; }
.wbd3f-footer a:hover { color: var(--wbd3f-primary); }
.wbd3f-footer-bottom { margin-top: 1rem; color: var(--wbd3f-muted); font-size: 1.1rem; text-align: center; }

/* ===== Mobile bottom nav ===== */
.wbd3f-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto; height: 62px;
  display: flex; justify-content: space-around; align-items: center;
  background: linear-gradient(180deg, rgba(20,20,20,.96), #050505);
  border-top: 1px solid var(--wbd3f-border);
}
.wbd3f-bottomnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; color: var(--wbd3f-muted);
  font-size: 1rem; gap: 0.2rem; transition: color .15s, transform .15s;
}
.wbd3f-bottomnav a i, .wbd3f-bottomnav a .material-icons-outlined, .wbd3f-bottomnav a ion-icon { font-size: 22px; }
.wbd3f-bottomnav a:hover, .wbd3f-bottomnav a.wbd3f-current { color: var(--wbd3f-primary); transform: translateY(-1px); }
.wbd3f-bottomnav a.wbd3f-current { color: var(--wbd3f-accent); }

@media (min-width: 769px) { .wbd3f-bottomnav { display: none; } }
