/* Non-critical CSS - loaded asynchronously */

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.telegram-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.telegram-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.menu-toggle:hover {
  background: var(--bg-accent);
}

/* Navigation */
.nav-menu {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  overflow-x: auto;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background: var(--bg-primary);
}

/* Games Section */
.games-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.tabs-container {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.tabs-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 12px 12px 0 0;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn.active {
  color: var(--primary-color);
  background: var(--bg-secondary);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px 3px 0 0;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Game Cards */
.game-card {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.game-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.game-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
}

.game-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.game-meta {
  margin-bottom: 1.5rem;
}

.game-bonus,
.game-withdraw {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.game-bonus svg,
.game-withdraw svg {
  color: var(--success-color);
  flex-shrink: 0;
}

.game-keywords {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.game-keywords small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.game-actions {
  display: flex;
  gap: 1rem;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 1;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* SEO Content */
.seo-content {
  padding: 4rem 0;
  background: var(--bg-primary);
}

.content-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.content-card h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.lead-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.content-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.feature-item svg {
  color: var(--success-color);
  flex-shrink: 0;
}

/* Notice Section */
.notice-section {
  padding: 3rem 0;
  background: var(--bg-secondary);
}

.notice-alert {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid var(--warning-color);
  border-radius: 20px;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.alert-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.alert-header svg {
  color: var(--warning-color);
  flex-shrink: 0;
}

.alert-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.alert-content p {
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.alert-content p:last-child {
  margin-bottom: 0;
}

/* Guide Section */
.guide-section {
  padding: 4rem 0;
  background: var(--bg-primary);
}

.guide-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.guide-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  background: var(--gradient-primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content p:first-child {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-content p:last-child {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.categories-section {
  margin-top: 3rem;
}

.categories-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category-card {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-card p:first-of-type {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.category-card p:last-of-type {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

/* Social Section */
.social-section {
  padding: 3rem 0;
  background: var(--bg-secondary);
}

.social-cards {
  max-width: 600px;
  margin: 0 auto;
}

.social-card {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.social-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.social-icon {
  background: var(--gradient-primary);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.social-text p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 0 2rem;
}

.tags-section {
  margin-bottom: 2rem;
}

.tags-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.tag:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
}

.copyright a {
  color: white;
  text-decoration: none;
}

/* Install Banner */
.install-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: white;
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  padding: 1rem;
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  max-width: 400px;
  margin: 0 auto;
}

.install-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.install-text p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.install-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.install-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.install-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.dismiss-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.dismiss-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }

  .menu-toggle {
    display: block;
  }

  .telegram-btn span {
    display: none;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
    padding: 1rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tabs-header {
    flex-direction: column;
    gap: 0;
  }

  .tab-btn {
    border-radius: 0;
    padding: 1rem;
  }

  .social-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .social-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .install-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .install-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .install-actions {
    width: 100%;
    justify-content: center;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
  }

  .section-header h2 {
    font-size: 1.875rem;
  }

  .tabs-container {
    padding: 1rem;
  }

  .game-card {
    padding: 1rem;
  }

  .content-card h2 {
    font-size: 1.5rem;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.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;
}

/* Focus styles */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}