/* spentime.css - Universal Stylesheet with g806- prefix */
/* All classes use g806- prefix for namespace isolation */

:root {
  --g806-primary: #2C3E50;
  --g806-secondary: #FF4500;
  --g806-accent: #48D1CC;
  --g806-danger: #FF0000;
  --g806-navy: #000080;
  --g806-text-light: #FFFFFF;
  --g806-text-dark: #2C3E50;
  --g806-bg-dark: #1A1F2E;
  --g806-bg-light: #F5F5F5;
  --g806-border: #E0E0E0;
  --g806-shadow: rgba(0, 0, 0, 0.1);
  --g806-radius: 8px;
  --g806-transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--g806-bg-dark);
  color: var(--g806-text-light);
  line-height: 1.6;
  font-size: 1.4rem;
  padding-top: 60px;
  overflow-x: hidden;
}

body.xb480-mobile {
  padding-bottom: 80px;
}

/* Header Styles */
.g806-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--g806-primary) 0%, var(--g806-navy) 100%);
  box-shadow: 0 4px 12px var(--g806-shadow);
  z-index: 1000;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.g806-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.g806-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.6rem;
  color: var(--g806-text-light);
  white-space: nowrap;
}

.g806-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.g806-logo span {
  display: none;
}

@media (min-width: 480px) {
  .g806-logo span {
    display: inline;
  }
}

.g806-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g806-menu-toggle {
  background: none;
  border: none;
  color: var(--g806-text-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 769px) {
  .g806-menu-toggle {
    display: none;
  }
}

.g806-btn {
  padding: 8px 16px;
  background-color: var(--g806-secondary);
  color: var(--g806-text-light);
  border: none;
  border-radius: var(--g806-radius);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  transition: var(--g806-transition);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.g806-btn:hover {
  background-color: #FF6B35;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 69, 0, 0.3);
}

.g806-btn-primary {
  background-color: var(--g806-secondary);
}

.g806-btn-secondary {
  background-color: var(--g806-accent);
  color: var(--g806-text-dark);
}

.g806-btn-secondary:hover {
  background-color: #3DBFB3;
}

.g806-btn-sm {
  padding: 6px 12px;
  font-size: 1.1rem;
}

/* Mobile Menu */
.g806-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 80px;
  background-color: var(--g806-primary);
  flex-direction: column;
  z-index: 999;
  overflow-y: auto;
}

.g806-mobile-menu.xb480-menu-active {
  display: flex;
}

@media (min-width: 769px) {
  .g806-mobile-menu {
    display: flex !important;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    background-color: transparent;
    flex-direction: row;
    gap: 16px;
    padding: 0;
  }
}

.g806-nav-link {
  padding: 12px 16px;
  color: var(--g806-text-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--g806-transition);
  font-weight: 500;
}

@media (min-width: 769px) {
  .g806-nav-link {
    padding: 8px 12px;
    border-bottom: none;
    border-radius: var(--g806-radius);
  }

  .g806-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

.g806-nav-link:hover {
  background-color: var(--g806-secondary);
}

/* Main Container */
.g806-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

.g806-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding: 24px 0;
}

/* Carousel Styles */
.g806-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--g806-radius);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--g806-primary);
}

.g806-carousel-slides {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.g806-carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.g806-carousel-slide.xb480-active {
  opacity: 1;
}

.g806-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--g806-text-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  z-index: 10;
  transition: var(--g806-transition);
}

.g806-carousel-btn:hover {
  background-color: var(--g806-secondary);
}

.g806-carousel-prev {
  left: 12px;
}

.g806-carousel-next {
  right: 12px;
}

/* Game Grid */
.g806-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.g806-game-card {
  aspect-ratio: 1;
  border-radius: var(--g806-radius);
  overflow: hidden;
  background-color: var(--g806-primary);
  transition: var(--g806-transition);
  cursor: pointer;
  position: relative;
  group: true;
}

.g806-game-card:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(255, 69, 0, 0.4);
}

.g806-game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}

.g806-game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--g806-text-light);
  padding: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.g806-game-card:hover .g806-game-name {
  opacity: 1;
}

/* Section Styles */
.g806-section {
  margin-bottom: 32px;
  padding: 20px;
  background-color: var(--g806-primary);
  border-radius: var(--g806-radius);
  border-left: 4px solid var(--g806-secondary);
}

.g806-section-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 16px;
  color: var(--g806-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.g806-section-title i {
  font-size: 2rem;
}

.g806-section-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--g806-text-light);
}

.g806-section-content p {
  margin-bottom: 12px;
}

.g806-section-content a {
  color: var(--g806-accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--g806-transition);
}

.g806-section-content a:hover {
  color: var(--g806-secondary);
  text-decoration: underline;
}

/* Feature Grid */
.g806-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 480px) {
  .g806-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.g806-feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: var(--g806-radius);
  text-align: center;
  border: 1px solid var(--g806-border);
  transition: var(--g806-transition);
}

.g806-feature-item:hover {
  background-color: rgba(255, 69, 0, 0.1);
  border-color: var(--g806-secondary);
}

.g806-feature-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
  color: var(--g806-secondary);
}

.g806-feature-text {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Footer Styles */
.g806-footer {
  background-color: var(--g806-navy);
  padding: 20px 16px;
  margin-top: 40px;
  border-top: 2px solid var(--g806-secondary);
}

.g806-footer-section {
  margin-bottom: 16px;
}

.g806-footer-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--g806-secondary);
  margin-bottom: 12px;
}

.g806-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 1.2rem;
}

.g806-footer-links a {
  color: var(--g806-accent);
  text-decoration: none;
  transition: var(--g806-transition);
  border-bottom: 1px solid transparent;
}

.g806-footer-links a:hover {
  color: var(--g806-secondary);
  border-bottom-color: var(--g806-secondary);
}

.g806-partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.g806-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  transition: var(--g806-transition);
}

.g806-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.g806-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation */
.g806-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--g806-primary) 0%, var(--g806-navy) 100%);
  border-top: 2px solid var(--g806-secondary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 80px;
  z-index: 1000;
  box-shadow: 0 -4px 12px var(--g806-shadow);
}

@media (min-width: 769px) {
  .g806-bottom-nav {
    display: none;
  }
}

.g806-bottom-nav-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--g806-text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--g806-transition);
  font-size: 1.1rem;
  position: relative;
  min-height: 60px;
}

.g806-bottom-nav-btn:hover {
  background-color: rgba(255, 69, 0, 0.1);
}

.g806-bottom-nav-btn.xb480-active {
  color: var(--g806-secondary);
}

.g806-bottom-nav-btn i,
.g806-bottom-nav-btn .icon {
  font-size: 2.4rem;
}

.g806-bottom-nav-btn span {
  font-size: 1rem;
  font-weight: 600;
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 16px;
  color: var(--g806-secondary);
  line-height: 1.3;
}

h2 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--g806-accent);
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--g806-text-light);
}

p {
  margin-bottom: 12px;
  line-height: 1.6;
}

a {
  color: var(--g806-accent);
  text-decoration: none;
  transition: var(--g806-transition);
}

a:hover {
  color: var(--g806-secondary);
}

/* Utility Classes */
.g806-text-center {
  text-align: center;
}

.g806-text-right {
  text-align: right;
}

.g806-mb-1 {
  margin-bottom: 8px;
}

.g806-mb-2 {
  margin-bottom: 16px;
}

.g806-mb-3 {
  margin-bottom: 24px;
}

.g806-mt-1 {
  margin-top: 8px;
}

.g806-mt-2 {
  margin-top: 16px;
}

.g806-mt-3 {
  margin-top: 24px;
}

.g806-hidden {
  display: none !important;
}

.g806-flex {
  display: flex;
}

.g806-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.g806-grid {
  display: grid;
  gap: 16px;
}

/* Responsive Design */
@media (max-width: 430px) {
  .g806-container {
    padding: 0 12px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .g806-section {
    padding: 16px;
  }

  .g806-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
  }
}

@media (min-width: 769px) {
  .g806-container {
    max-width: 960px;
  }

  body {
    padding-bottom: 0;
  }

  .g806-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
  }

  .g806-feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Loading and Animation States */
@keyframes xb480fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes xb480pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.g806-fade-in {
  animation: xb480fadeIn 0.6s ease-out;
}

.g806-pulse {
  animation: xb480pulse 2s ease-in-out infinite;
}

/* Print Styles */
@media print {
  .g806-header,
  .g806-bottom-nav,
  .g806-menu-toggle {
    display: none;
  }

  body {
    padding-top: 0;
    padding-bottom: 0;
  }
}
