/* OKTT CSS with gaaf- prefix */
/* All classes use gaaf- prefix to avoid conflicts */

/* CSS Variables for theme colors */
:root {
  /* Theme colors from 6-color scheme */
  --gaaf-primary: #CD853F; /* Peru - Main brand color */
  --gaaf-secondary: #48D1CC; /* Medium Turquoise - Secondary accent */
  --gaaf-accent: #FFE4B5; /* Moccasin - Light accent */
  --gaaf-dark: #1E1E1E; /* Very dark gray - Background */
  --gaaf-light: #87CEFA; /* Light Sky Blue - Light elements */
  --gaaf-neutral: #E0E0E0; /* Light gray - Neutral elements */

  /* Functional colors */
  --gaaf-bg: #0A0A0A;
  --gaaf-surface: #1A1A1A;
  --gaaf-text: #FFFFFF;
  --gaaf-text-secondary: #B0B0B0;
  --gaaf-border: #2A2A2A;
  --gaaf-success: #4CAF50;
  --gaaf-warning: #FF9800;
  --gaaf-error: #F44336;

  /* Typography */
  --gaaf-font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --gaaf-font-size-base: 1.4rem;
  --gaaf-line-height: 1.5;

  /* Spacing */
  --gaaf-spacing-xs: 0.4rem;
  --gaaf-spacing-sm: 0.8rem;
  --gaaf-spacing-md: 1.6rem;
  --gaaf-spacing-lg: 2.4rem;
  --gaaf-spacing-xl: 3.2rem;

  /* Layout */
  --gaaf-max-width: 430px;
  --gaaf-header-height: 56px;
  --gaaf-bottom-nav-height: 64px;
  --gaaf-border-radius: 8px;
  --gaaf-border-radius-lg: 16px;

  /* Transitions */
  --gaaf-transition: all 0.3s ease;
  --gaaf-transition-fast: all 0.15s ease;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--gaaf-font-primary);
  font-size: var(--gaaf-font-size-base);
  line-height: var(--gaaf-line-height);
  color: var(--gaaf-text);
  background-color: var(--gaaf-bg);
  max-width: var(--gaaf-max-width);
  margin: 0 auto;
  overflow-x: hidden;
}

/* Typography */
.gaaf-h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--gaaf-spacing-md);
  color: var(--gaaf-primary);
}

.gaaf-h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--gaaf-spacing-sm);
  color: var(--gaaf-secondary);
}

.gaaf-h3 {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--gaaf-spacing-sm);
  color: var(--gaaf-text);
}

.gaaf-p {
  font-size: 1.4rem;
  line-height: var(--gaaf-line-height);
  margin-bottom: var(--gaaf-spacing-sm);
  color: var(--gaaf-text-secondary);
}

/* Layout components */
.gaaf-container {
  width: 100%;
  padding: 0 var(--gaaf-spacing-md);
}

.gaaf-wrapper {
  min-height: 100vh;
  padding-bottom: calc(var(--gaaf-bottom-nav-height) + var(--gaaf-spacing-md));
}

.gaaf-grid {
  display: grid;
  gap: var(--gaaf-spacing-md);
}

.gaaf-flex {
  display: flex;
}

.gaaf-flex-col {
  flex-direction: column;
}

.gaaf-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gaaf-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header */
.gaaf-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--gaaf-max-width);
  height: var(--gaaf-header-height);
  background: linear-gradient(135deg, var(--gaaf-surface) 0%, #2A2A2A 100%);
  border-bottom: 1px solid var(--gaaf-border);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.gaaf-header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gaaf-spacing-md);
}

.gaaf-logo {
  display: flex;
  align-items: center;
  gap: var(--gaaf-spacing-sm);
  text-decoration: none;
  color: var(--gaaf-text);
}

.gaaf-logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--gaaf-primary) 0%, var(--gaaf-secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
}

.gaaf-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gaaf-primary);
}

.gaaf-header-actions {
  display: flex;
  align-items: center;
  gap: var(--gaaf-spacing-sm);
}

.gaaf-btn {
  padding: var(--gaaf-spacing-xs) var(--gaaf-spacing-md);
  border: none;
  border-radius: var(--gaaf-border-radius);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--gaaf-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  white-space: nowrap;
}

.gaaf-btn-primary {
  background: linear-gradient(135deg, var(--gaaf-primary) 0%, #D2691E 100%);
  color: white;
}

.gaaf-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(205, 133, 63, 0.4);
}

.gaaf-btn-secondary {
  background: transparent;
  color: var(--gaaf-secondary);
  border: 2px solid var(--gaaf-secondary);
}

.gaaf-btn-secondary:hover {
  background: var(--gaaf-secondary);
  color: var(--gaaf-dark);
}

.gaaf-menu-toggle {
  background: none;
  border: none;
  color: var(--gaaf-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: var(--gaaf-spacing-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

/* Mobile Menu */
.gaaf-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--gaaf-surface);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.gaaf-mobile-menu.active {
  right: 0;
}

.gaaf-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--gaaf-transition);
}

.gaaf-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.gaaf-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gaaf-spacing-md);
  border-bottom: 1px solid var(--gaaf-border);
}

.gaaf-menu-close {
  background: none;
  border: none;
  color: var(--gaaf-text);
  font-size: 2.4rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gaaf-menu-nav {
  padding: var(--gaaf-spacing-md);
}

.gaaf-menu-item {
  display: block;
  padding: var(--gaaf-spacing-sm) 0;
  color: var(--gaaf-text);
  text-decoration: none;
  font-size: 1.6rem;
  transition: var(--gaaf-transition-fast);
  border-bottom: 1px solid var(--gaaf-border);
}

.gaaf-menu-item:hover {
  color: var(--gaaf-primary);
  padding-left: var(--gaaf-spacing-sm);
}

.gaaf-menu-item:last-child {
  border-bottom: none;
}

/* Main content */
.gaaf-main {
  padding-top: var(--gaaf-header-height);
  min-height: 100vh;
}

/* Hero carousel */
.gaaf-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--gaaf-border-radius-lg);
  margin-bottom: var(--gaaf-spacing-lg);
}

.gaaf-carousel-container {
  position: relative;
  width: 100%;
  height: 200px;
}

.gaaf-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.gaaf-carousel-slide.active {
  opacity: 1;
}

.gaaf-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gaaf-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: var(--gaaf-transition-fast);
}

.gaaf-carousel-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.gaaf-carousel-prev {
  left: var(--gaaf-spacing-sm);
}

.gaaf-carousel-next {
  right: var(--gaaf-spacing-sm);
}

.gaaf-carousel-dots {
  position: absolute;
  bottom: var(--gaaf-spacing-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--gaaf-spacing-xs);
}

.gaaf-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--gaaf-transition-fast);
}

.gaaf-carousel-dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

/* Game grid */
.gaaf-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--gaaf-spacing-sm);
  margin-bottom: var(--gaaf-spacing-lg);
}

.gaaf-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--gaaf-transition);
}

.gaaf-game-item:hover {
  transform: translateY(-4px);
}

.gaaf-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--gaaf-border-radius);
  overflow: hidden;
  margin-bottom: var(--gaaf-spacing-xs);
  background: var(--gaaf-surface);
  border: 1px solid var(--gaaf-border);
}

.gaaf-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gaaf-game-name {
  font-size: 1.2rem;
  color: var(--gaaf-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cards */
.gaaf-card {
  background: var(--gaaf-surface);
  border-radius: var(--gaaf-border-radius-lg);
  padding: var(--gaaf-spacing-md);
  margin-bottom: var(--gaaf-spacing-md);
  border: 1px solid var(--gaaf-border);
  transition: var(--gaaf-transition);
}

.gaaf-card:hover {
  border-color: var(--gaaf-primary);
  box-shadow: 0 4px 20px rgba(205, 133, 63, 0.2);
}

.gaaf-card-header {
  display: flex;
  align-items: center;
  gap: var(--gaaf-spacing-sm);
  margin-bottom: var(--gaaf-spacing-sm);
}

.gaaf-card-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--gaaf-primary) 0%, var(--gaaf-secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
}

/* Bottom navigation */
.gaaf-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--gaaf-max-width);
  height: var(--gaaf-bottom-nav-height);
  background: linear-gradient(135deg, var(--gaaf-surface) 0%, #2A2A2A 100%);
  border-top: 1px solid var(--gaaf-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: var(--gaaf-spacing-xs) 0;
}

.gaaf-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  transition: var(--gaaf-transition-fast);
  text-decoration: none;
  color: var(--gaaf-text-secondary);
  border: none;
  background: none;
}

.gaaf-bottom-nav-item:hover {
  color: var(--gaaf-primary);
  transform: scale(1.1);
}

.gaaf-bottom-nav-item.active {
  color: var(--gaaf-primary);
}

.gaaf-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

.gaaf-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Footer */
.gaaf-footer {
  background: var(--gaaf-surface);
  border-top: 1px solid var(--gaaf-border);
  padding: var(--gaaf-spacing-lg) 0 var(--gaaf-spacing-xl);
  margin-top: var(--gaaf-spacing-lg);
}

.gaaf-footer-content {
  margin-bottom: var(--gaaf-spacing-md);
}

.gaaf-footer-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gaaf-primary);
  margin-bottom: var(--gaaf-spacing-sm);
}

.gaaf-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gaaf-spacing-sm);
  margin-bottom: var(--gaaf-spacing-md);
}

.gaaf-footer-link {
  color: var(--gaaf-text-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--gaaf-transition-fast);
}

.gaaf-footer-link:hover {
  color: var(--gaaf-primary);
}

.gaaf-partners {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gaaf-spacing-sm);
  justify-content: center;
  margin: var(--gaaf-spacing-md) 0;
}

.gaaf-partner {
  width: 48px;
  height: 48px;
  background: var(--gaaf-bg);
  border-radius: var(--gaaf-border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gaaf-spacing-xs);
  border: 1px solid var(--gaaf-border);
  transition: var(--gaaf-transition);
}

.gaaf-partner:hover {
  border-color: var(--gaaf-primary);
  transform: scale(1.1);
}

.gaaf-partner img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gaaf-footer-bottom {
  text-align: center;
  padding-top: var(--gaaf-spacing-md);
  border-top: 1px solid var(--gaaf-border);
  color: var(--gaaf-text-secondary);
  font-size: 1.2rem;
}

/* Utility classes */
.gaaf-text-center {
  text-align: center;
}

.gaaf-text-primary {
  color: var(--gaaf-primary);
}

.gaaf-text-secondary {
  color: var(--gaaf-secondary);
}

.gaaf-bg-primary {
  background-color: var(--gaaf-primary);
}

.gaaf-bg-surface {
  background-color: var(--gaaf-surface);
}

.gaaf-mb-sm {
  margin-bottom: var(--gaaf-spacing-sm);
}

.gaaf-mb-md {
  margin-bottom: var(--gaaf-spacing-md);
}

.gaaf-mb-lg {
  margin-bottom: var(--gaaf-spacing-lg);
}

.gaaf-mt-sm {
  margin-top: var(--gaaf-spacing-sm);
}

.gaaf-mt-md {
  margin-top: var(--gaaf-spacing-md);
}

.gaaf-mt-lg {
  margin-top: var(--gaaf-spacing-lg);
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .gaaf-bottom-nav {
    display: none;
  }

  .gaaf-wrapper {
    padding-bottom: var(--gaaf-spacing-md);
  }
}

@media (max-width: 768px) {
  .gaaf-main {
    padding-bottom: var(--gaaf-bottom-nav-height);
  }
}

/* Animations */
@keyframes gaaf-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.gaaf-pulse {
  animation: gaaf-pulse 2s infinite;
}

@keyframes gaaf-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gaaf-fade-in {
  animation: gaaf-fadeIn 0.5s ease forwards;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gaaf-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gaaf-primary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #D2691E;
}