/**
 * BigBunny Layout Styles - Mobile-First Design
 * All classes prefixed with v70d- to avoid conflicts
 * Color palette: #FDF5E6 | #00FF00 | #FFE4B5 | #34495E | #ADFF2F
 */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  font-size: 62.5%; /* 1rem = 10px */
  --v70d-primary: #00FF00;
  --v70d-secondary: #ADFF2F;
  --v70d-accent: #FFE4B5;
  --v70d-dark: #34495E;
  --v70d-light: #FDF5E6;
  --v70d-bg: #2C3E50;
  --v70d-text: #FDF5E6;
  --v70d-shadow: rgba(0, 0, 0, 0.3);
  --v70d-radius: 8px;
  --v70d-transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--v70d-text);
  background: linear-gradient(135deg, var(--v70d-bg) 0%, var(--v70d-dark) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container and Wrapper */
.v70d-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.v70d-wrapper {
  width: 100%;
  padding-bottom: 7rem; /* Space for fixed bottom nav */
}

/* Header and Navigation */
.v70d-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to right, var(--v70d-dark), #2C3E50);
  box-shadow: 0 2px 10px var(--v70d-shadow);
  z-index: 1000;
  padding: 1rem 0;
}

.v70d-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.v70d-logo-section {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v70d-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.v70d-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v70d-primary);
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.v70d-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v70d-btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  border: none;
  border-radius: var(--v70d-radius);
  cursor: pointer;
  transition: var(--v70d-transition);
  font-weight: 600;
}

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

.v70d-btn-register {
  background: linear-gradient(135deg, var(--v70d-primary), var(--v70d-secondary));
  color: var(--v70d-dark);
}

.v70d-btn-small:active {
  transform: scale(0.95);
}

.v70d-hamburger {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

.v70d-hamburger span {
  width: 24px;
  height: 3px;
  background: var(--v70d-primary);
  border-radius: 2px;
  transition: var(--v70d-transition);
}

.v70d-hamburger.app663-active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.v70d-hamburger.app663-active span:nth-child(2) {
  opacity: 0;
}

.v70d-hamburger.app663-active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.v70d-mobile-menu {
  position: fixed;
  top: 56px;
  right: -100%;
  width: 75%;
  max-width: 300px;
  height: calc(100vh - 56px);
  background: var(--v70d-dark);
  box-shadow: -2px 0 10px var(--v70d-shadow);
  transition: right 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.v70d-mobile-menu.app663-menu-open {
  right: 0;
}

.v70d-menu-overlay {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: var(--v70d-transition);
  z-index: 998;
}

.v70d-menu-overlay.app663-overlay-active {
  opacity: 1;
  visibility: visible;
}

.v70d-menu-list {
  list-style: none;
  padding: 2rem 0;
}

.v70d-menu-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.v70d-nav-link {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--v70d-text);
  text-decoration: none;
  font-size: 1.5rem;
  transition: var(--v70d-transition);
}

.v70d-nav-link:hover,
.v70d-nav-link.app663-active {
  background: rgba(0, 255, 0, 0.1);
  color: var(--v70d-primary);
  padding-left: 2.5rem;
}

/* Main Content */
.v70d-main {
  padding-top: 6.5rem;
  min-height: 100vh;
}

/* Carousel */
.v70d-carousel {
  width: 100%;
  overflow: hidden;
  border-radius: var(--v70d-radius);
  margin: 1.5rem 0;
}

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

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

.v70d-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Headings */
.v70d-h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--v70d-primary);
  margin: 2rem 0 1.5rem;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.v70d-h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--v70d-secondary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v70d-primary);
}

.v70d-h3 {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--v70d-accent);
  margin: 1.5rem 0 1rem;
}

/* Game Grid */
.v70d-game-section {
  margin: 2.5rem 0;
}

.v70d-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.v70d-game-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--v70d-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--v70d-transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.v70d-game-card:active {
  transform: scale(0.95);
}

.v70d-game-card:hover {
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  border-color: var(--v70d-primary);
}

.v70d-game-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.v70d-game-name {
  padding: 0.6rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--v70d-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content Sections */
.v70d-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--v70d-radius);
  padding: 1.5rem;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.v70d-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--v70d-text);
  margin: 1rem 0;
}

.v70d-list {
  list-style: none;
  padding-left: 0;
}

.v70d-list-item {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--v70d-text);
  line-height: 1.6;
}

.v70d-list-item:before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--v70d-primary);
  font-weight: bold;
}

/* Buttons */
.v70d-btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--v70d-radius);
  cursor: pointer;
  transition: var(--v70d-transition);
  margin: 1rem 0.5rem;
}

.v70d-btn-primary {
  background: linear-gradient(135deg, var(--v70d-primary), var(--v70d-secondary));
  color: var(--v70d-dark);
  box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.v70d-btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 8px rgba(0, 255, 0, 0.3);
}

.v70d-btn-outline {
  background: transparent;
  border: 2px solid var(--v70d-primary);
  color: var(--v70d-primary);
}

.v70d-btn-full {
  width: 100%;
  display: block;
}

/* Link Styles */
.v70d-link {
  color: var(--v70d-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--v70d-transition);
}

.v70d-link:hover {
  color: var(--v70d-secondary);
  text-decoration: underline;
}

/* Footer */
.v70d-footer {
  background: var(--v70d-dark);
  padding: 3rem 1.5rem 8rem;
  margin-top: 4rem;
  border-top: 2px solid var(--v70d-primary);
}

.v70d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.v70d-footer-link {
  color: var(--v70d-text);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--v70d-transition);
}

.v70d-footer-link:hover {
  color: var(--v70d-primary);
}

.v70d-partners {
  margin: 3rem 0;
}

.v70d-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.v70d-partner-img {
  width: 100%;
  height: auto;
  opacity: 0.7;
  transition: var(--v70d-transition);
  border-radius: 4px;
}

.v70d-partner-img:hover {
  opacity: 1;
}

.v70d-copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation */
.v70d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, var(--v70d-dark), #2C3E50);
  border-top: 2px solid var(--v70d-primary);
  box-shadow: 0 -2px 10px var(--v70d-shadow);
  z-index: 1000;
  height: 60px;
}

.v70d-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
}

.v70d-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--v70d-transition);
  padding: 0.5rem;
  min-width: 60px;
}

.v70d-bottom-nav-item i {
  font-size: 2.2rem;
}

.v70d-bottom-nav-item:hover,
.v70d-bottom-nav-item.app663-active {
  color: var(--v70d-primary);
  transform: translateY(-2px);
}

/* Utility Classes */
.v70d-text-center {
  text-align: center;
}

.v70d-mt-1 {
  margin-top: 1rem;
}

.v70d-mt-2 {
  margin-top: 2rem;
}

.v70d-mb-1 {
  margin-bottom: 1rem;
}

.v70d-mb-2 {
  margin-bottom: 2rem;
}

.v70d-hidden {
  display: none;
}

/* Responsive Design */
@media (max-width: 380px) {
  .v70d-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .v70d-logo-text {
    font-size: 1.6rem;
  }

  .v70d-h1 {
    font-size: 2rem;
  }

  .v70d-partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 431px) {
  .v70d-container {
    max-width: 100%;
    padding: 0 2rem;
  }

  body {
    background-attachment: fixed;
  }
}

/* Loading and Animations */
@keyframes v70d-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v70d-fade-in {
  animation: v70d-fadeIn 0.5s ease forwards;
}

/* Scroll to Top Button */
.v70d-scroll-top {
  position: fixed;
  bottom: 70px;
  right: 15px;
  width: 45px;
  height: 45px;
  background: var(--v70d-primary);
  color: var(--v70d-dark);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--v70d-transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 255, 0, 0.4);
}

.v70d-scroll-top.app663-visible {
  opacity: 1;
  visibility: visible;
}

.v70d-scroll-top:active {
  transform: scale(0.9);
}
