/* Big Bunny App - Theme Stylesheet */
/* All classes use wcd7f- prefix for namespace isolation */
/* Color palette: #CD853F | #8B4513 | #7B68EE | #0D1117 | #BA55D3 */

/* CSS Variables */
:root {
  --wcd7f-primary: #CD853F;
  --wcd7f-secondary: #8B4513;
  --wcd7f-accent: #7B68EE;
  --wcd7f-bg-dark: #0D1117;
  --wcd7f-highlight: #BA55D3;
  --wcd7f-text-light: #F5F0E8;
  --wcd7f-text-muted: #A89B8C;
  --wcd7f-bg-card: #161B22;
  --wcd7f-bg-card-hover: #1C2333;
  --wcd7f-border: #2A2018;
  --wcd7f-gold: #F0C060;
  --wcd7f-radius: 12px;
  --wcd7f-radius-sm: 8px;
  --wcd7f-shadow: 0 4px 20px rgba(0,0,0,0.4);
  --wcd7f-transition: all 0.3s ease;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--wcd7f-bg-dark);
  color: var(--wcd7f-text-light);
  line-height: 1.5rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

.wcd7f-wrapper {
  max-width: 430px;
  margin: 0 auto;
  width: 100%;
}

/* Header */
.wcd7f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--wcd7f-bg-dark) 0%, #1a1015 100%);
  border-bottom: 1px solid var(--wcd7f-border);
  padding: 8px 12px;
  transition: var(--wcd7f-transition);
}

.wcd7f-header--scrolled {
  box-shadow: 0 2px 16px rgba(205,133,63,0.15);
}

.wcd7f-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
}

.wcd7f-header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.wcd7f-header__logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.wcd7f-header__logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wcd7f-primary);
  letter-spacing: -0.5px;
}

.wcd7f-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wcd7f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: none;
  border-radius: var(--wcd7f-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--wcd7f-transition);
  text-decoration: none;
  min-height: 36px;
  gap: 4px;
}

.wcd7f-btn--register {
  background: linear-gradient(135deg, var(--wcd7f-primary) 0%, var(--wcd7f-highlight) 100%);
  color: #fff;
}

.wcd7f-btn--register:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(205,133,63,0.4);
}

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

.wcd7f-btn--login:hover {
  background: rgba(205,133,63,0.1);
}

.wcd7f-btn--menu {
  background: none;
  border: none;
  color: var(--wcd7f-text-light);
  font-size: 2rem;
  padding: 4px;
  cursor: pointer;
  line-height: 1;
}

/* Mobile Menu */
.wcd7f-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--wcd7f-bg-dark);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 20px;
  border-left: 1px solid var(--wcd7f-border);
  overflow-y: auto;
}

.wcd7f-mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--wcd7f-border);
}

.wcd7f-mobile-menu__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wcd7f-primary);
}

.wcd7f-mobile-menu__close {
  background: none;
  border: none;
  color: var(--wcd7f-text-light);
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}

.wcd7f-mobile-menu__link {
  display: block;
  padding: 12px 0;
  color: var(--wcd7f-text-light);
  text-decoration: none;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(42,32,24,0.5);
  transition: var(--wcd7f-transition);
}

.wcd7f-mobile-menu__link:hover {
  color: var(--wcd7f-primary);
  padding-left: 8px;
}

.wcd7f-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}

/* Bottom Navigation */
.wcd7f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a1015 0%, var(--wcd7f-bg-dark) 100%);
  border-top: 1px solid var(--wcd7f-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 62px;
  padding: 0 4px;
}

.wcd7f-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--wcd7f-text-muted);
  cursor: pointer;
  transition: var(--wcd7f-transition);
  gap: 3px;
  padding: 4px;
  border-radius: var(--wcd7f-radius-sm);
}

.wcd7f-bottom-nav__item:hover {
  color: var(--wcd7f-primary);
  transform: scale(1.08);
}

.wcd7f-bottom-nav__item--active {
  color: var(--wcd7f-primary);
}

.wcd7f-bottom-nav__item--active::after {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--wcd7f-primary);
  border-radius: 2px;
  margin-top: 1px;
}

.wcd7f-bottom-nav__icon {
  font-size: 22px;
  line-height: 1;
}

.wcd7f-bottom-nav__label {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}

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

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

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

.wcd7f-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.wcd7f-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
}

.wcd7f-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wcd7f-text-muted);
  border: none;
  cursor: pointer;
  transition: var(--wcd7f-transition);
}

.wcd7f-carousel-dot--active {
  background: var(--wcd7f-primary);
  width: 20px;
  border-radius: 4px;
}

/* Sections */
.wcd7f-section {
  padding: 20px 0;
}

.wcd7f-section__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wcd7f-text-light);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--wcd7f-primary);
}

.wcd7f-section__subtitle {
  font-size: 1.3rem;
  color: var(--wcd7f-text-muted);
  margin-bottom: 16px;
}

/* Game Grid */
.wcd7f-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.wcd7f-game-card {
  background: var(--wcd7f-bg-card);
  border-radius: var(--wcd7f-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--wcd7f-transition);
  border: 1px solid transparent;
}

.wcd7f-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--wcd7f-primary);
  box-shadow: 0 4px 12px rgba(205,133,63,0.2);
}

.wcd7f-game-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.wcd7f-game-card__name {
  padding: 6px 8px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--wcd7f-text-light);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content Cards */
.wcd7f-card {
  background: var(--wcd7f-bg-card);
  border-radius: var(--wcd7f-radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--wcd7f-border);
}

.wcd7f-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wcd7f-primary);
  margin-bottom: 8px;
}

.wcd7f-card__text {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--wcd7f-text-light);
}

.wcd7f-card__text p {
  margin-bottom: 8px;
}

/* Promo Buttons */
.wcd7f-promo-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--wcd7f-primary), var(--wcd7f-highlight));
  color: #fff;
  border: none;
  border-radius: var(--wcd7f-radius-sm);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: var(--wcd7f-transition);
  text-decoration: none;
}

.wcd7f-promo-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(205,133,63,0.4);
}

/* Text Links */
.wcd7f-text-link {
  color: var(--wcd7f-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--wcd7f-transition);
}

.wcd7f-text-link:hover {
  color: var(--wcd7f-highlight);
  text-decoration: underline;
}

/* Footer */
.wcd7f-footer {
  padding: 24px 0 80px;
  border-top: 1px solid var(--wcd7f-border);
  margin-top: 32px;
}

.wcd7f-footer__brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wcd7f-primary);
  margin-bottom: 8px;
}

.wcd7f-footer__desc {
  font-size: 1.2rem;
  color: var(--wcd7f-text-muted);
  line-height: 1.6rem;
  margin-bottom: 16px;
}

.wcd7f-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.wcd7f-footer__link {
  padding: 6px 12px;
  background: var(--wcd7f-bg-card);
  border: 1px solid var(--wcd7f-border);
  border-radius: var(--wcd7f-radius-sm);
  color: var(--wcd7f-text-light);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--wcd7f-transition);
  cursor: pointer;
}

.wcd7f-footer__link:hover {
  border-color: var(--wcd7f-primary);
  color: var(--wcd7f-primary);
}

.wcd7f-footer__copy {
  font-size: 1.1rem;
  color: var(--wcd7f-text-muted);
  text-align: center;
  margin-top: 16px;
}

/* Help Page Styles */
.wcd7f-help-hero {
  padding: 64px 0 20px;
  text-align: center;
}

.wcd7f-help-hero__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--wcd7f-primary);
  margin-bottom: 8px;
}

.wcd7f-help-hero__desc {
  font-size: 1.3rem;
  color: var(--wcd7f-text-muted);
}

.wcd7f-faq-item {
  margin-bottom: 12px;
}

.wcd7f-faq-item__q {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--wcd7f-accent);
  margin-bottom: 4px;
}

.wcd7f-faq-item__a {
  font-size: 1.3rem;
  color: var(--wcd7f-text-light);
  line-height: 1.8rem;
  padding-left: 12px;
  border-left: 2px solid var(--wcd7f-border);
}

/* Steps list */
.wcd7f-steps {
  counter-reset: step-counter;
  list-style: none;
}

.wcd7f-steps__item {
  counter-increment: step-counter;
  padding: 10px 0 10px 36px;
  position: relative;
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--wcd7f-text-light);
}

.wcd7f-steps__item::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  background: var(--wcd7f-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Tag / Badge */
.wcd7f-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
}

.wcd7f-badge--hot {
  background: rgba(186,85,211,0.2);
  color: var(--wcd7f-highlight);
}

.wcd7f-badge--new {
  background: rgba(123,104,238,0.2);
  color: var(--wcd7f-accent);
}

/* Desktop: hide bottom nav, show wider layout */
@media (min-width: 769px) {
  .wcd7f-bottom-nav {
    display: none;
  }
  .wcd7f-container {
    max-width: 430px;
  }
}

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