/* Tamabet Click Theme CSS - All classes use ga75- prefix */

/* CSS Variables for consistent theming */
:root {
  --ga75-primary: #7B68EE;
  --ga75-primary-light: #8470FF;
  --ga75-secondary: #2D2D2D;
  --ga75-text: #FFFFFF;
  --ga75-text-secondary: #CCCCCC;
  --ga75-bg: #1A1A1A;
  --ga75-bg-light: #2D2D2D;
  --ga75-accent: #FFD700;
  --ga75-success: #28A745;
  --ga75-warning: #FFC107;
  --ga75-danger: #DC3545;
  --ga75-border: #444444;
  --ga75-shadow: rgba(123, 104, 238, 0.3);
  --ga75-gradient: linear-gradient(135deg, #7B68EE 0%, #8470FF 100%);
  --ga75-radius: 8px;
  --ga75-spacing: 1rem;
}

/* 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, Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--ga75-text);
  background: var(--ga75-bg);
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
}

/* Container and layout */
.ga75-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ga75-wrapper {
  min-height: 100vh;
  padding-bottom: 8rem;
}

/* Header */
.ga75-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--ga75-gradient);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ga75-border);
}

.ga75-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 430px;
  margin: 0 auto;
}

.ga75-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ga75-text);
}

.ga75-logo-icon {
  width: 2.4rem;
  height: 2.4rem;
  background: var(--ga75-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--ga75-secondary);
}

.ga75-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ga75-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.ga75-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--ga75-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  min-width: 4.4rem;
  touch-action: manipulation;
}

.ga75-btn-primary {
  background: var(--ga75-accent);
  color: var(--ga75-secondary);
}

.ga75-btn-primary:hover {
  background: #FFE55C;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.ga75-btn-secondary {
  background: transparent;
  color: var(--ga75-text);
  border: 2px solid var(--ga75-text);
}

.ga75-btn-secondary:hover {
  background: var(--ga75-text);
  color: var(--ga75-secondary);
}

.ga75-btn-loading {
  position: relative;
  pointer-events: none;
}

.ga75-btn-loading::after {
  content: '';
  position: absolute;
  width: 1.6rem;
  height: 1.6rem;
  top: 50%;
  left: 50%;
  margin-left: -0.8rem;
  margin-top: -0.8rem;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: ga75-spin 1s linear infinite;
}

/* Menu toggle */
.ga75-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

.ga75-menu-bar {
  width: 2.2rem;
  height: 0.2rem;
  background: var(--ga75-text);
  border-radius: 0.1rem;
  transition: all 0.3s ease;
}

.ga75-menu-toggle.ga75-active .ga75-menu-bar:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.ga75-menu-toggle.ga75-active .ga75-menu-bar:nth-child(2) {
  opacity: 0;
}

.ga75-menu-toggle.ga75-active .ga75-menu-bar:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Mobile menu */
.ga75-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--ga75-bg-light);
  backdrop-filter: blur(20px);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.ga75-mobile-menu.ga75-menu-open {
  right: 0;
}

.ga75-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.ga75-menu-overlay.ga75-overlay-active {
  opacity: 1;
  visibility: visible;
}

.ga75-menu-header {
  padding: 2rem 1.5rem;
  background: var(--ga75-gradient);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ga75-menu-nav {
  padding: 1.5rem;
}

.ga75-menu-item {
  display: block;
  padding: 1.2rem 0;
  color: var(--ga75-text);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 500;
  border-bottom: 1px solid var(--ga75-border);
  transition: color 0.3s ease;
}

.ga75-menu-item:hover {
  color: var(--ga75-primary-light);
}

/* Main content */
.ga75-main {
  padding-top: 7rem;
  min-height: 100vh;
}

/* Carousel */
.ga75-carousel-container {
  position: relative;
  width: 100%;
  height: 18rem;
  overflow: hidden;
  border-radius: var(--ga75-radius);
  margin-bottom: 2rem;
}

.ga75-carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.ga75-carousel-slide.ga75-slide-active {
  opacity: 1;
}

.ga75-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.ga75-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.ga75-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.ga75-carousel-dot.ga75-dot-active {
  background: var(--ga75-accent);
}

/* Grid layouts */
.ga75-grid {
  display: grid;
  gap: 1rem;
}

.ga75-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.ga75-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.ga75-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Cards */
.ga75-card {
  background: var(--ga75-bg-light);
  border-radius: var(--ga75-radius);
  padding: 1.5rem;
  border: 1px solid var(--ga75-border);
  transition: all 0.3s ease;
}

.ga75-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--ga75-shadow);
}

/* Game items */
.ga75-game-item {
  background: var(--ga75-bg-light);
  border-radius: var(--ga75-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--ga75-border);
}

.ga75-game-item:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px var(--ga75-shadow);
}

.ga75-game-image {
  width: 100%;
  height: 8rem;
  object-fit: cover;
  background: var(--ga75-gradient);
}

.ga75-game-name {
  padding: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  color: var(--ga75-text);
  background: var(--ga75-bg-light);
}

/* Typography */
.ga75-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--ga75-text);
}

.ga75-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--ga75-primary-light);
}

.ga75-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--ga75-text-secondary);
  margin-bottom: 1rem;
}

/* Sections */
.ga75-section {
  margin-bottom: 3rem;
}

.ga75-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

/* Bottom navigation */
.ga75-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--ga75-bg-light);
  border-top: 1px solid var(--ga75-border);
  padding: 0.5rem 0;
  display: none;
}

.ga75-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.ga75-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem;
  min-width: 6rem;
  min-height: 5.6rem;
  background: none;
  border: none;
  color: var(--ga75-text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: var(--ga75-radius);
}

.ga75-bottom-nav-btn:hover {
  color: var(--ga75-primary-light);
  transform: scale(1.05);
}

.ga75-bottom-nav-btn.ga75-nav-active {
  color: var(--ga75-accent);
  background: rgba(255, 215, 0, 0.1);
}

.ga75-nav-icon {
  font-size: 2.4rem;
}

.ga75-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.ga75-footer {
  background: var(--ga75-bg-light);
  border-top: 1px solid var(--ga75-border);
  padding: 2rem 0 8rem;
  margin-top: 3rem;
}

.ga75-footer-content {
  text-align: center;
}

.ga75-partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.ga75-partner-icon {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.ga75-partner-icon:hover {
  opacity: 1;
}

.ga75-footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.ga75-footer-link {
  color: var(--ga75-text-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.ga75-footer-link:hover {
  color: var(--ga75-primary-light);
}

.ga75-copyright {
  font-size: 1.1rem;
  color: var(--ga75-text-secondary);
  opacity: 0.7;
}

/* Loading animations */
@keyframes ga75-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ga75-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.ga75-loading {
  animation: ga75-pulse 1.5s ease-in-out infinite;
}

/* Utility classes */
.ga75-text-center { text-align: center; }
.ga75-text-left { text-align: left; }
.ga75-text-right { text-align: right; }

.ga75-mb-1 { margin-bottom: 1rem; }
.ga75-mb-2 { margin-bottom: 2rem; }
.ga75-mb-3 { margin-bottom: 3rem; }

.ga75-mt-1 { margin-top: 1rem; }
.ga75-mt-2 { margin-top: 2rem; }
.ga75-mt-3 { margin-top: 3rem; }

/* Responsive design */
@media (max-width: 768px) {
  .ga75-bottom-nav {
    display: block;
  }

  .ga75-main {
    padding-bottom: 8rem;
  }

  .ga75-container {
    padding: 0 1rem;
  }

  .ga75-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
  }

  .ga75-game-image {
    height: 6rem;
  }

  .ga75-carousel-container {
    height: 14rem;
  }
}

@media (min-width: 769px) {
  .ga75-bottom-nav {
    display: none !important;
  }

  body {
    max-width: 430px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  }

  .ga75-header {
    max-width: 430px;
    left: 50%;
    transform: translateX(-50%);
  }

  .ga75-bottom-nav {
    max-width: 430px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --ga75-border: #666666;
    --ga75-text-secondary: #DDDDDD;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}