/* Enhanced Mobile-First CSS with Categories & Infinite Scroll */

/* Base mobile styles */
body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
}

.app-launcher {
  max-width: 1200px;
  margin: 0 auto;
}

.launcher-title {
  color: white;
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Category Section */
.category-section {
  margin-bottom: 40px;
}

.category-header {
  background: rgb(107, 107, 107);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.2);
}

.category-title {
  color: white;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.category-count {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 400;
  margin-left: 8px;
}

/* Button Grid */
.app-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

/* App Button */
.app-button {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  min-height: 48px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.app-emoji {
  font-size: 24px;
  flex-shrink: 0;
}

.app-name {
  flex-grow: 1;
  text-align: left;
}

.app-button:hover {
  background: rgba(255,255,255,1);
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,123,255,0.2);
}

.app-button:active {
  transform: translateY(0);
  transition: all 0.1s ease;
}

/* Load More Section */
.load-more {
  text-align: center;
  padding: 30px;
  color: white;
}

.load-spinner {
  font-size: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design - Progressive Enhancement */
@media (min-width: 480px) {
  .app-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 768px) {
  body {
    padding: 40px;
  }
  
  .launcher-title {
    font-size: 36px;
  }
  
  .app-buttons {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .app-button {
    padding: 20px 24px;
    font-size: 18px;
  }
  
  .app-emoji {
    font-size: 28px;
  }
}

@media (min-width: 1024px) {
  .app-buttons {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1200px) {
  .app-buttons {
    grid-template-columns: repeat(5, 1fr);
  }
}
