/* Bug Bunny Design System */
/* All classes use 'vfbd-' prefix for namespace isolation */

/* CSS Variables */
:root {
  --vfbd-primary: #CD853F;
  --vfbd-secondary: #A0522D;
  --vfbd-dark: #0D1117;
  --vfbd-medium: #696969;
  --vfbd-light: #8B7355;
  --vfbd-white: #FFFFFF;
  --vfbd-black: #000000;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--vfbd-white);
  background-color: var(--vfbd-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.vfbd-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  background-color: var(--vfbd-dark);
}

/* Header */
.vfbd-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--vfbd-secondary) 0%, var(--vfbd-primary) 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.vfbd-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.vfbd-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--vfbd-white);
  font-weight: 700;
  font-size: 1.8rem;
}

.vfbd-logo-icon {
  font-size: 2.4rem;
  margin-right: 0.5rem;
}

.vfbd-menu-btn {
  background: none;
  border: none;
  color: var(--vfbd-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.vfbd-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.vfbd-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.vfbd-btn-primary {
  background-color: var(--vfbd-white);
  color: var(--vfbd-secondary);
}

.vfbd-btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.vfbd-btn-secondary {
  background-color: transparent;
  color: var(--vfbd-white);
  border: 2px solid var(--vfbd-white);
}

.vfbd-btn-secondary:hover {
  background-color: var(--vfbd-white);
  color: var(--vfbd-secondary);
}

/* Mobile Menu */
.vfbd-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.vfbd-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.vfbd-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: linear-gradient(180deg, var(--vfbd-secondary) 0%, var(--vfbd-primary) 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.vfbd-mobile-menu.active {
  right: 0;
}

.vfbd-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.vfbd-menu-title {
  color: var(--vfbd-white);
  font-size: 1.8rem;
  font-weight: 700;
}

.vfbd-close-menu {
  background: none;
  border: none;
  color: var(--vfbd-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.vfbd-menu-list {
  list-style: none;
  padding: 1rem 0;
}

.vfbd-menu-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vfbd-menu-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--vfbd-white);
  text-decoration: none;
  font-size: 1.5rem;
  transition: background 0.3s ease;
}

.vfbd-menu-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content */
main {
  padding-top: 70px;
  padding-bottom: 80px;
}

.vfbd-section {
  padding: 2rem 0;
}

.vfbd-section-title {
  color: var(--vfbd-primary);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.vfbd-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(205, 133, 63, 0.2);
}

.vfbd-card-title {
  color: var(--vfbd-primary);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.vfbd-card-content {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  line-height: 1.6;
}

.vfbd-card-content p {
  margin-bottom: 1rem;
}

/* Game Grid */
.vfbd-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.vfbd-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--vfbd-white);
  transition: transform 0.3s ease;
}

.vfbd-game-item:hover {
  transform: scale(1.05);
}

.vfbd-game-icon {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
}

.vfbd-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vfbd-game-name {
  font-size: 1.2rem;
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Carousel */
.vfbd-carousel {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.vfbd-carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.vfbd-carousel-slide {
  min-width: 100%;
}

.vfbd-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* List */
.vfbd-list {
  list-style: none;
}

.vfbd-list-item {
  padding: 0.8rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
.vfbd-footer {
  background: linear-gradient(135deg, var(--vfbd-secondary) 0%, var(--vfbd-primary) 100%);
  padding: 2rem 1rem 8rem;
  margin-top: 3rem;
}

.vfbd-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.vfbd-footer-section {
  margin-bottom: 2rem;
}

.vfbd-footer-title {
  color: var(--vfbd-white);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.vfbd-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.vfbd-footer-link {
  color: var(--vfbd-white);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition: background 0.3s ease;
}

.vfbd-footer-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.vfbd-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.vfbd-partners img {
  width: 50px;
  height: 30px;
  object-fit: contain;
}

.vfbd-copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Bottom Navigation */
.vfbd-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--vfbd-secondary) 0%, var(--vfbd-primary) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.vfbd-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--vfbd-white);
  min-width: 60px;
  min-height: 60px;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.vfbd-nav-item:hover {
  transform: scale(1.1);
}

.vfbd-nav-item.active {
  color: var(--vfbd-black);
  background-color: rgba(255, 255, 255, 0.2);
}

.vfbd-nav-icon {
  font-size: 22px;
  margin-bottom: 0.2rem;
}

.vfbd-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .vfbd-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}
