/**
 * Bee PH - Core CSS Layout
 * All classes use g73f prefix for namespace isolation
 * Mobile-first responsive design with maximum width 430px
 * Version: 1.0
 */

/* CSS Variables - Color Palette */
:root {
  --g73f-primary: #ADFF2F;
  --g73f-primary-dark: #9AE828;
  --g73f-secondary: #FA8072;
  --g73f-secondary-dark: #E86052;
  --g73f-background: #273746;
  --g73f-background-light: #2C3E50;
  --g73f-text: #FFFFFF;
  --g73f-text-muted: #BDC3C7;
  --g73f-border: #34495E;
  --g73f-success: #27AE60;
  --g73f-warning: #F39C12;
  --g73f-error: #E74C3C;
  --g73f-shadow: rgba(0, 0, 0, 0.3);
  --g73f-gradient: linear-gradient(135deg, var(--g73f-primary) 0%, var(--g73f-secondary) 100%);
}

/* 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, Cantarell, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--g73f-text);
  background-color: var(--g73f-background);
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

.g73f-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.g73f-wrapper {
  padding: 1rem;
  min-height: 100vh;
  padding-bottom: 80px;
}

/* Header Styles */
.g73f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--g73f-background);
  border-bottom: 1px solid var(--g73f-border);
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(39, 55, 70, 0.95);
}

.g73f-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  height: 56px;
  max-width: 430px;
  margin: 0 auto;
}

.g73f-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--g73f-text);
  font-weight: bold;
  font-size: 1.6rem;
}

.g73f-logo-icon {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
  border-radius: 4px;
}

.g73f-header-actions {
  display: flex;
  gap: 0.5rem;
}

.g73f-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 36px;
}

.g73f-btn-primary {
  background: var(--g73f-primary);
  color: var(--g73f-background);
}

.g73f-btn-primary:hover {
  background: var(--g73f-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--g73f-shadow);
}

.g73f-btn-secondary {
  background: var(--g73f-secondary);
  color: var(--g73f-text);
}

.g73f-btn-secondary:hover {
  background: var(--g73f-secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--g73f-shadow);
}

.g73f-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--g73f-text);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.g73f-menu-toggle:hover {
  background: var(--g73f-border);
}

/* Navigation Menu */
.g73f-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: var(--g73f-background);
  z-index: 9999;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.g73f-mobile-menu.g73f-menu-open {
  left: 0;
}

.g73f-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--g73f-border);
}

.g73f-menu-close {
  background: none;
  border: none;
  color: var(--g73f-text);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
}

.g73f-menu-close:hover {
  background: var(--g73f-border);
}

.g73f-menu-nav {
  padding: 1rem 0;
}

.g73f-menu-item {
  display: block;
  padding: 1rem;
  color: var(--g73f-text);
  text-decoration: none;
  border-bottom: 1px solid var(--g73f-border);
  transition: background 0.3s ease;
}

.g73f-menu-item:hover {
  background: var(--g73f-border);
}

.g73f-menu-item:last-child {
  border-bottom: none;
}

/* Mobile Bottom Navigation */
.g73f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--g73f-background);
  border-top: 1px solid var(--g73f-border);
  z-index: 1000;
  height: 64px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.g73f-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  color: var(--g73f-text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  background: none;
  border: none;
  font-size: 1rem;
}

.g73f-bottom-nav-item:hover,
.g73f-bottom-nav-item.g73f-active {
  color: var(--g73f-primary);
  background: rgba(173, 255, 47, 0.1);
  transform: scale(1.05);
}

.g73f-bottom-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.g73f-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Main Content */
.g73f-main {
  margin-top: 56px;
  padding: 1rem;
  padding-bottom: 80px;
  min-height: calc(100vh - 120px);
}

/* Carousel */
.g73f-carousel {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 200px;
  background: var(--g73f-background-light);
}

.g73f-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.g73f-carousel-item.g73f-active {
  opacity: 1;
}

.g73f-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.g73f-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.g73f-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.g73f-carousel-dot.g73f-active {
  background: var(--g73f-primary);
  width: 12px;
}

/* Game Grid */
.g73f-game-section {
  margin-bottom: 2rem;
}

.g73f-section-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--g73f-text);
  text-align: center;
}

.g73f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.g73f-game-item {
  background: var(--g73f-background-light);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--g73f-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  border: 1px solid var(--g73f-border);
}

.g73f-game-item:hover {
  background: var(--g73f-border);
  transform: scale(1.05);
  box-shadow: 0 4px 8px var(--g73f-shadow);
}

.g73f-game-icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  margin-bottom: 0.3rem;
  object-fit: cover;
}

.g73f-game-name {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* Cards */
.g73f-card {
  background: var(--g73f-background-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--g73f-border);
  transition: all 0.3s ease;
}

.g73f-card:hover {
  box-shadow: 0 8px 16px var(--g73f-shadow);
  transform: translateY(-2px);
}

.g73f-card-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--g73f-text);
}

.g73f-card-content {
  color: var(--g73f-text-muted);
  line-height: 1.6;
}

.g73f-card-link {
  color: var(--g73f-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
}

.g73f-card-link:hover {
  text-decoration: underline;
  color: var(--g73f-primary-dark);
}

/* Features Section */
.g73f-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.g73f-feature-item {
  background: var(--g73f-background-light);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--g73f-border);
  transition: all 0.3s ease;
}

.g73f-feature-item:hover {
  background: var(--g73f-border);
  transform: scale(1.02);
}

.g73f-feature-icon {
  font-size: 2rem;
  color: var(--g73f-primary);
  margin-bottom: 0.5rem;
}

.g73f-feature-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: var(--g73f-text);
}

.g73f-feature-description {
  font-size: 0.9rem;
  color: var(--g73f-text-muted);
}

/* Footer */
.g73f-footer {
  background: var(--g73f-background-light);
  border-top: 1px solid var(--g73f-border);
  padding: 2rem 1rem 1rem;
  margin-top: 3rem;
  margin-bottom: 64px;
}

.g73f-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.g73f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.g73f-footer-link {
  color: var(--g73f-text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.g73f-footer-link:hover {
  color: var(--g73f-primary);
}

.g73f-partners {
  margin: 1.5rem 0;
  text-align: center;
}

.g73f-partners-title {
  font-size: 1.2rem;
  color: var(--g73f-text-muted);
  margin-bottom: 1rem;
}

.g73f-partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.g73f-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.g73f-partner-logo:hover {
  opacity: 1;
}

.g73f-copyright {
  text-align: center;
  color: var(--g73f-text-muted);
  font-size: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--g73f-border);
}

/* Responsive Design */
@media (min-width: 769px) {
  .g73f-bottom-nav {
    display: none;
  }

  .g73f-wrapper {
    padding-bottom: 1rem;
  }

  .g73f-main {
    padding-bottom: 1rem;
  }

  .g73f-footer {
    margin-bottom: 0;
  }

  .g73f-menu-toggle {
    display: block;
  }

  .g73f-header-actions {
    display: none;
  }
}

@media (max-width: 768px) {
  .g73f-menu-toggle {
    display: block;
  }

  .g73f-header-actions {
    display: none;
  }
}

/* Utility Classes */
.g73f-text-center {
  text-align: center;
}

.g73f-text-left {
  text-align: left;
}

.g73f-text-right {
  text-align: right;
}

.g73f-mb-1 {
  margin-bottom: 1rem;
}

.g73f-mb-2 {
  margin-bottom: 2rem;
}

.g73f-mt-1 {
  margin-top: 1rem;
}

.g73f-mt-2 {
  margin-top: 2rem;
}

.g73f-hidden {
  display: none;
}

.g73f-visible {
  display: block;
}

.g73f-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Accessibility */
.g73f-keyboard-nav *:focus {
  outline: 2px solid var(--g73f-primary);
  outline-offset: 2px;
}

/* Animation Classes */
.g73f-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.g73f-animate.g73f-animate-visible {
  opacity: 1;
  transform: translateY(0);
}

.g73f-touch-active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* Loading States */
.g73f-loading {
  opacity: 0.6;
  pointer-events: none;
}

.g73f-spinner {
  border: 2px solid var(--g73f-border);
  border-top: 2px solid var(--g73f-primary);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: g73f-spin 1s linear infinite;
  display: inline-block;
}

@keyframes g73f-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
.g73f-custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.g73f-custom-scrollbar::-webkit-scrollbar-track {
  background: var(--g73f-background);
}

.g73f-custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--g73f-border);
  border-radius: 3px;
}

.g73f-custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--g73f-primary);
}

/* Print Styles */
@media print {
  .g73f-header,
  .g73f-bottom-nav,
  .g73f-mobile-menu,
  .g73f-carousel {
    display: none !important;
  }

  .g73f-main {
    margin-top: 0;
    padding: 0;
  }

  body {
    background: white !important;
    color: black !important;
  }
}