/* PhoneJoy Design System */

/* CSS Variables */
:root {
  /* Brand Colors */
  --fd192-primary: #FF1493;
  --fd192-secondary: #FDF5E6;
  --fd192-accent: #FFFFBA;
  --fd192-dark: #0D1117;
  --fd192-light: #E0F2F1;
  --fd192-gray: #808080;
  --fd192-cyan: #00B8D4;

  /* Typography */
  --fd192-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fd192-font-size-base: 1.6rem;
  --fd192-line-height: 1.5;

  /* Spacing */
  --fd192-spacing-xs: 0.4rem;
  --fd192-spacing-sm: 0.8rem;
  --fd192-spacing-md: 1.6rem;
  --fd192-spacing-lg: 2.4rem;
  --fd192-spacing-xl: 3.2rem;

  /* Components */
  --fd192-border-radius: 0.8rem;
  --fd192-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  --fd192-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.2);

  /* Mobile Specific */
  --fd192-header-height: 6rem;
  --fd192-bottom-nav-height: 6.4rem;
  --fd192-max-width: 430px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--fd192-font-primary);
  font-size: var(--fd192-font-size-base);
  line-height: var(--fd192-line-height);
  color: var(--fd192-secondary);
  background: linear-gradient(135deg, var(--fd192-dark) 0%, #1a1d23 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Layout Components */
.fd192-container {
  max-width: var(--fd192-max-width);
  margin: 0 auto;
  padding: 0 var(--fd192-spacing-md);
}

.fd192-wrapper {
  min-height: 100vh;
  padding-bottom: var(--fd192-bottom-nav-height);
}

.fd192-main {
  padding-top: var(--fd192-header-height);
  padding-bottom: var(--fd192-spacing-xl);
}

/* Header */
.fd192-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--fd192-header-height);
  background: linear-gradient(90deg, var(--fd192-primary) 0%, #ff3d8b 100%);
  z-index: 1000;
  box-shadow: var(--fd192-shadow);
}

.fd192-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--fd192-max-width);
  margin: 0 auto;
  padding: 0 var(--fd192-spacing-md);
}

.fd192-logo {
  display: flex;
  align-items: center;
  gap: var(--fd192-spacing-sm);
  font-weight: 700;
  font-size: 2rem;
  color: white;
  text-decoration: none;
}

.fd192-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
}

.fd192-header-actions {
  display: flex;
  align-items: center;
  gap: var(--fd192-spacing-sm);
}

.fd192-btn {
  padding: var(--fd192-spacing-sm) var(--fd192-spacing-md);
  border: none;
  border-radius: var(--fd192-border-radius);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8rem;
  min-height: 4.4rem;
}

.fd192-btn-primary {
  background: var(--fd192-secondary);
  color: var(--fd192-primary);
  box-shadow: var(--fd192-shadow);
}

.fd192-btn-primary:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: var(--fd192-shadow-lg);
}

.fd192-btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.fd192-btn-outline:hover {
  background: white;
  color: var(--fd192-primary);
}

.fd192-menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 2.4rem;
  cursor: pointer;
  padding: var(--fd192-spacing-sm);
  border-radius: var(--fd192-border-radius);
  min-width: 4.4rem;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.fd192-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, var(--fd192-dark) 0%, #1a1d23 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.3);
}

.fd192-mobile-menu.active {
  right: 0;
}

.fd192-menu-header {
  padding: var(--fd192-spacing-lg);
  background: var(--fd192-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fd192-menu-close {
  background: none;
  border: none;
  color: white;
  font-size: 2.4rem;
  cursor: pointer;
  padding: var(--fd192-spacing-sm);
  border-radius: var(--fd192-border-radius);
}

.fd192-menu-nav {
  padding: var(--fd192-spacing-md);
}

.fd192-menu-nav a {
  display: block;
  padding: var(--fd192-spacing-md);
  color: var(--fd192-secondary);
  text-decoration: none;
  border-radius: var(--fd192-border-radius);
  transition: all 0.3s ease;
  margin-bottom: var(--fd192-spacing-xs);
}

.fd192-menu-nav a:hover {
  background: rgba(255, 20, 147, 0.1);
  color: var(--fd192-primary);
}

.fd192-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.fd192-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Carousel */
.fd192-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--fd192-border-radius);
  margin: var(--fd192-spacing-lg) 0;
  box-shadow: var(--fd192-shadow-lg);
}

.fd192-carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.fd192-carousel-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.fd192-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.fd192-carousel-indicators {
  position: absolute;
  bottom: var(--fd192-spacing-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--fd192-spacing-xs);
}

.fd192-carousel-indicator {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.fd192-carousel-indicator.active {
  background: var(--fd192-primary);
  transform: scale(1.2);
}

/* Typography */
.fd192-h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--fd192-primary);
  margin-bottom: var(--fd192-spacing-md);
  line-height: 1.2;
}

.fd192-h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--fd192-secondary);
  margin-bottom: var(--fd192-spacing-md);
}

.fd192-h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--fd192-secondary);
  margin-bottom: var(--fd192-spacing-sm);
}

.fd192-text {
  color: var(--fd192-secondary);
  line-height: var(--fd192-line-height);
  margin-bottom: var(--fd192-spacing-md);
}

.fd192-text-center {
  text-align: center;
}

/* Cards */
.fd192-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--fd192-border-radius);
  padding: var(--fd192-spacing-lg);
  margin-bottom: var(--fd192-spacing-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.fd192-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--fd192-spacing-md);
  margin-bottom: var(--fd192-spacing-md);
}

/* Game Grid */
.fd192-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--fd192-spacing-sm);
  margin: var(--fd192-spacing-lg) 0;
}

.fd192-game-item {
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.fd192-game-item:hover {
  transform: translateY(-4px);
}

.fd192-game-icon {
  width: 6rem;
  height: 6rem;
  border-radius: var(--fd192-border-radius);
  object-fit: cover;
  margin-bottom: var(--fd192-spacing-xs);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.fd192-game-item:hover .fd192-game-icon {
  border-color: var(--fd192-primary);
  box-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
}

.fd192-game-name {
  font-size: 1rem;
  color: var(--fd192-secondary);
  line-height: 1.2;
  font-weight: 500;
}

/* Bottom Navigation */
.fd192-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--fd192-bottom-nav-height);
  background: linear-gradient(90deg, var(--fd192-primary) 0%, #ff3d8b 100%);
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

.fd192-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  max-width: var(--fd192-max-width);
  margin: 0 auto;
}

.fd192-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 6rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
}

.fd192-bottom-nav-item:hover,
.fd192-bottom-nav-item.active {
  color: white;
  transform: scale(1.1);
}

.fd192-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

.fd192-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.fd192-footer {
  background: var(--fd192-dark);
  padding: var(--fd192-spacing-xl) 0 var(--fd192-spacing-lg);
  margin-top: var(--fd192-spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fd192-footer-content {
  max-width: var(--fd192-max-width);
  margin: 0 auto;
  padding: 0 var(--fd192-spacing-md);
}

.fd192-footer-section {
  margin-bottom: var(--fd192-spacing-lg);
}

.fd192-footer-title {
  color: var(--fd192-primary);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: var(--fd192-spacing-md);
}

.fd192-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fd192-spacing-md);
  margin-bottom: var(--fd192-spacing-lg);
}

.fd192-footer-links a {
  color: var(--fd192-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.fd192-footer-links a:hover {
  color: var(--fd192-primary);
}

.fd192-partners {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fd192-spacing-md);
  justify-content: center;
  margin: var(--fd192-spacing-lg) 0;
}

.fd192-partner-icon {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.fd192-partner-icon:hover {
  opacity: 1;
}

.fd192-footer-bottom {
  text-align: center;
  padding-top: var(--fd192-spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--fd192-gray);
  font-size: 1.2rem;
}

/* Utility Classes */
.fd192-text-primary {
  color: var(--fd192-primary);
}

.fd192-text-secondary {
  color: var(--fd192-secondary);
}

.fd192-text-accent {
  color: var(--fd192-accent);
}

.fd192-bg-primary {
  background-color: var(--fd192-primary);
}

.fd192-bg-secondary {
  background-color: var(--fd192-secondary);
}

.fd192-text-center {
  text-align: center;
}

.fd192-mb-sm {
  margin-bottom: var(--fd192-spacing-sm);
}

.fd192-mb-md {
  margin-bottom: var(--fd192-spacing-md);
}

.fd192-mb-lg {
  margin-bottom: var(--fd192-spacing-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
  .fd192-main {
    padding-bottom: calc(var(--fd192-bottom-nav-height) + var(--fd192-spacing-lg));
  }
}

@media (min-width: 769px) {
  .fd192-bottom-nav {
    display: none;
  }

  .fd192-wrapper {
    padding-bottom: 0;
  }
}

/* Animations */
@keyframes fd192-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fd192-fade-in {
  animation: fd192-fadeIn 0.6s ease forwards;
}

/* Tooltip */
.fd192-tooltip {
  position: absolute;
  background: var(--fd192-dark);
  color: white;
  padding: var(--fd192-spacing-sm) var(--fd192-spacing-md);
  border-radius: var(--fd192-border-radius);
  font-size: 1.2rem;
  white-space: nowrap;
  z-index: 10000;
  box-shadow: var(--fd192-shadow);
}

/* Loading States */
.fd192-loading {
  position: relative;
  pointer-events: none;
}

.fd192-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border: 2px solid transparent;
  border-top-color: var(--fd192-primary);
  border-radius: 50%;
  animation: fd192-spin 1s linear infinite;
}

@keyframes fd192-spin {
  to {
    transform: rotate(360deg);
  }
}