/**
 * Bugs Bunny Casino - Main Stylesheet
 * All classes use ui4b- prefix for namespace isolation
 */

/* CSS Custom Properties (Variables) */
:root {
  --ui4b-primary: #2E4057;
  --ui4b-secondary: #8B7355;
  --ui4b-accent: #BC8F8F;
  --ui4b-highlight: #FFE4B5;
  --ui4b-dark: #2F2F2F;
  --ui4b-light: #FFFFFF;
  --ui4b-text: #FFE4B5;
  --ui4b-text-muted: #BC8F8F;
  --ui4b-border: #8B7355;
  --ui4b-shadow: rgba(46, 64, 87, 0.3);
}

/* Reset and Base Styles */
* {
  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, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--ui4b-text);
  background-color: var(--ui4b-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Header Styles */
.ui4b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--ui4b-primary) 0%, var(--ui4b-dark) 100%);
  box-shadow: 0 2px 10px var(--ui4b-shadow);
  z-index: 1000;
  padding: 1rem;
}

.ui4b-header-container {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ui4b-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ui4b-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.ui4b-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ui4b-highlight);
}

.ui4b-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.ui4b-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ui4b-btn-primary {
  background: linear-gradient(135deg, var(--ui4b-accent) 0%, var(--ui4b-secondary) 100%);
  color: var(--ui4b-light);
  box-shadow: 0 4px 15px rgba(188, 143, 143, 0.3);
}

.ui4b-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(188, 143, 143, 0.4);
}

.ui4b-btn-secondary {
  background: transparent;
  color: var(--ui4b-highlight);
  border: 2px solid var(--ui4b-accent);
}

.ui4b-btn-secondary:hover {
  background: var(--ui4b-accent);
  color: var(--ui4b-light);
}

.ui4b-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--ui4b-highlight);
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.ui4b-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ui4b-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ui4b-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--ui4b-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem;
  overflow-y: auto;
}

.ui4b-mobile-menu.active {
  right: 0;
}

.ui4b-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--ui4b-border);
}

.ui4b-menu-close {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--ui4b-highlight);
  cursor: pointer;
}

.ui4b-menu-nav a {
  display: block;
  padding: 1rem 0;
  color: var(--ui4b-text);
  font-size: 1.6rem;
  border-bottom: 1px solid rgba(139, 115, 85, 0.2);
  transition: all 0.3s ease;
}

.ui4b-menu-nav a:hover {
  color: var(--ui4b-highlight);
  padding-left: 1rem;
}

/* Main Content */
.ui4b-main {
  padding-top: 80px;
  padding-bottom: 80px;
  min-height: 100vh;
}

@media (min-width: 769px) {
  .ui4b-main {
    padding-bottom: 2rem;
  }
}

.ui4b-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Carousel */
.ui4b-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px var(--ui4b-shadow);
}

.ui4b-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.ui4b-slide.active {
  opacity: 1;
}

.ui4b-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section Styles */
.ui4b-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(46, 64, 87, 0.5) 0%, rgba(47, 47, 47, 0.5) 100%);
  border-radius: 12px;
  border: 1px solid var(--ui4b-border);
}

.ui4b-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ui4b-highlight);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Game Grid */
.ui4b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.ui4b-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.ui4b-game-item:hover {
  transform: scale(1.05);
}

.ui4b-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--ui4b-shadow);
}

.ui4b-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ui4b-game-name {
  font-size: 1rem;
  color: var(--ui4b-text);
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bottom Navigation */
.ui4b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--ui4b-dark) 0%, rgba(47, 47, 47, 0.98) 100%);
  box-shadow: 0 -2px 10px var(--ui4b-shadow);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

@media (min-width: 769px) {
  .ui4b-bottom-nav {
    display: none;
  }
}

.ui4b-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 60px;
  min-height: 60px;
  color: var(--ui4b-text-muted);
  transition: all 0.3s ease;
}

.ui4b-nav-item:hover {
  color: var(--ui4b-highlight);
  transform: scale(1.1);
}

.ui4b-nav-item.active {
  color: var(--ui4b-highlight);
}

.ui4b-nav-icon {
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ui4b-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.ui4b-footer {
  background: var(--ui4b-dark);
  padding: 2rem 1rem;
  margin-top: 2rem;
  border-top: 3px solid var(--ui4b-border);
}

.ui4b-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.ui4b-footer-link {
  color: var(--ui4b-highlight);
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--ui4b-border);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.ui4b-footer-link:hover {
  background: var(--ui4b-accent);
  color: var(--ui4b-light);
}

.ui4b-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.ui4b-partner-img {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.ui4b-partner-img:hover {
  opacity: 1;
}

.ui4b-copyright {
  text-align: center;
  color: var(--ui4b-text-muted);
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .ui4b-menu-toggle {
    display: block;
  }

  .ui4b-header-buttons {
    display: none;
  }
}

@media (min-width: 769px) {
  .ui4b-container {
    max-width: 1200px;
  }

  .ui4b-game-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* Utility Classes */
.ui4b-text-center {
  text-align: center;
}

.ui4b-mt-1 {
  margin-top: 1rem;
}

.ui4b-mt-2 {
  margin-top: 2rem;
}

.ui4b-mb-1 {
  margin-bottom: 1rem;
}

.ui4b-mb-2 {
  margin-bottom: 2rem;
}

.ui4b-promo-link {
  color: var(--ui4b-highlight);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.ui4b-promo-link:hover {
  color: var(--ui4b-accent);
}
