/* Toca Boca World Mod - Styles */

body {
  font-family: 'Quicksand', sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Custom scrollbar - thinner on mobile */
::-webkit-scrollbar {
  width: 6px;
}

@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 10px;
  }
}

::-webkit-scrollbar-track {
  background: #F0F9FF;
}

::-webkit-scrollbar-thumb {
  background: #80CAFF;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #60A5FA;
}

.mask-image-b-fade {
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Mobile-specific optimizations */
@media (max-width: 767px) {
  /* Smoother scrolling on mobile */
  * {
    -webkit-overflow-scrolling: touch;
  }

  /* Larger tap targets for mobile */
  button,
  a {
    min-height: 44px;
    min-width: 44px;
  }

  /* Prevent text size adjustment on mobile */
  html {
    -webkit-text-size-adjust: 100%;
  }

  /* Better spacing for mobile */
  .mobile-compact {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Touch-friendly hover states */
@media (hover: none) and (pointer: coarse) {
  .hover\:scale-110:hover {
    transform: scale(1.05);
  }

  .hover\:scale-\[1\.02\]:hover {
    transform: scale(1.01);
  }
}

/* In-App Browser Popup Styles */
.inapp-browser-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.inapp-browser-popup {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 24px;
  padding: 32px 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: slideUp 0.4s ease-out;
  position: relative;
}

.inapp-browser-popup::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  border-radius: 24px;
  z-index: -1;
  opacity: 0.5;
  filter: blur(10px);
}

.inapp-browser-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: bounce 2s infinite;
}

.inapp-browser-title {
  color: white;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.inapp-browser-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.inapp-browser-steps {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.inapp-browser-step {
  color: white;
  font-size: 14px;
  text-align: left;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.inapp-browser-step-icon {
  background: rgba(255, 255, 255, 0.2);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.inapp-browser-close {
  background: white;
  color: #667eea;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.inapp-browser-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
