/**
 * KATTI.NET Critical CSS
 * Extracted from index.html for better maintainability
 * Version: 3.6.0
 */

/* Critical mobile styles - inline for faster rendering */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero {
  text-align: center;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, #00ffb3, #00cc8f, #00ffb3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(0, 255, 179, 0.3);
  filter: drop-shadow(0 0 10px rgba(0, 255, 179, 0.2));
}

.service-section {
  padding: 2rem 0;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-card:hover {
  background: #1a1a1a;
  border-color: #00ffb3;
}

.form-section {
  padding: 2rem 0;
  max-width: 500px;
  margin: 0 auto;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #333;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 1rem;
}

.submit-btn {
  background: #00ffb3;
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  box-shadow: 0 0 15px rgba(0, 255, 179, 0.3);
}

.submit-btn:hover {
  background: #00cc8f;
  box-shadow: 0 0 20px rgba(0, 255, 179, 0.4);
}

.url-copy-container {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.copy-btn {
  width: auto;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

.rainbow-emoji {
  display: inline-block;
  animation: rainbow 2s linear infinite;
}

@keyframes rainbow {
  0% { color: #ff0000; }
  16% { color: #ff8000; }
  33% { color: #ffff00; }
  50% { color: #00ff00; }
  66% { color: #0080ff; }
  83% { color: #8000ff; }
  100% { color: #ff0000; }
}

.floating-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Utility classes for common inline styles */
.text-muted {
  color: var(--text-muted);
}

.primary-link {
  color: var(--primary);
  text-decoration: underline;
}

.margin-top-4 {
  margin-top: var(--space-4);
}

.margin-top-6 {
  margin-top: var(--space-6);
}

.padding-left-6 {
  padding-left: var(--space-6);
}

.hidden {
  display: none;
}

/* Search functionality styling */
.service-search-wrapper {
  margin-bottom: var(--space-6);
}

.search-input-group {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  transition: all 0.2s ease;
  position: relative;
}

.search-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 255, 179, 0.1);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: var(--font-size-base);
  color: var(--text);
  padding: 0;
  margin: 0;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  margin-right: var(--space-3);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.search-input-group:focus-within .search-icon {
  color: var(--primary);
}

.search-clear {
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

.search-clear:hover {
  background: var(--surface-light);
  color: var(--text);
}

.search-clear svg {
  width: 16px;
  height: 16px;
}

/* Search box critical styles */
.service-search-wrapper {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}

.service-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f3f4f6;
  font-size: 1rem;
  padding: 0.25rem 0;
}

.search-icon {
  width: 20px;
  height: 20px;
  color: #a1a1aa;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.search-clear-btn {
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-left: 0.5rem;
}

.search-clear-btn svg {
  width: 18px;
  height: 18px;
  color: #a1a1aa;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .hero {
    padding: 1rem 0;
    min-height: 40vh;
  }
  
  .service-list {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .service-card {
    padding: 0.75rem;
  }
  
  /* Mobile performance optimizations */
  .slow-connection .floating-effects {
    display: none !important;
  }
  
  .mobile-device .service-card {
    will-change: auto;
  }
  
  .mobile-device .service-card:hover {
    transform: none;
  }
  
  .touch-device .service-card:active {
    transform: none;
  }
  
  .reduced-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .service-card {
    padding: 0.5rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
  
  .form-input {
    padding: 0.6rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
  
  .submit-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
  
  /* Better touch targets */
  .service-card, .btn, .form-input, .submit-btn {
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(16, 185, 129, 0.2);
  }
  
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
  
  /* Better text wrapping */
  .service-card .service-name,
  .service-card .service-desc {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Service section mobile improvements */
  .service-section {
    margin: 0 0.5rem 2rem;
    padding: 1rem 0.75rem;
    border-radius: 0.5rem;
  }

  .service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .service-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }

  .service-list {
    gap: 0.5rem;
    padding: 0;
  }

  .service-card {
    flex-direction: column;
    text-align: center;
    padding: 0.75rem;
    min-height: 70px;
    position: relative;
    gap: 0.5rem;
  }

  .service-card .service-icon {
    width: 36px;
    height: 36px;
    margin: 0;
  }

  .service-card .service-content {
    flex: 1;
    width: 100%;
    align-items: center;
    gap: 0.25rem;
  }

  .service-card .service-name {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.2;
  }

  .service-card .service-desc {
    font-size: 0.75rem;
    line-height: 1.3;
    margin: 0;
  }

  .service-card .service-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.6rem;
    padding: 2px 4px;
    height: 18px;
  }

  /* Search improvements */
  .service-search-wrapper {
    padding: 0;
    margin-bottom: 1rem;
  }

  .service-search-box {
    padding: 0.75rem;
  }
}

/* Mobile scrolling optimizations */
.scrolling .service-card {
  will-change: auto;
}

.scrolling .floating-effects {
  opacity: 0.5;
}

.mobile-device .service-card {
  transform: none;
}

.mobile-device .service-card:hover {
  transform: none;
}

/* Touch optimizations */
.touch-device .service-card {
  -webkit-tap-highlight-color: rgba(16, 185, 129, 0.2);
}

.touch-device .submit-btn {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* NO ANIMATIONS - Service Selection Override */
.service-card,
.service-card,
.service-icon,
.service-name,
.service-desc,
.service-badge,
.service-action,
.filter-tab,
.filter-btn,
.search-input,
.search-clear,
.service-status-badge,
.service-icon-container,
.status-icon,
.service-content,
.service-header,
.service-footer,
.service-actions,
.service-badge .badge-icon,
.service-card::before,
.service-card::after,
.service-card::before,
.service-card::after,
.service-card.loading::after,
.service-card.selected,
.service-card.selected::before,
.service-card.selected,
.service-card:hover,
.service-card:hover,
.service-card:active,
.service-card:active,
.filter-tab:hover,
.filter-tab:active,
.filter-btn:hover,
.filter-btn:active,
.search-clear:hover,
.search-clear:active,
.service-action:hover,
.service-action:active,
.service-badge:hover,
.service-badge:active,
.service-icon:hover,
.service-icon:active,
.service-card:hover .service-icon,
.service-card:hover .service-badge,
.service-card:hover .service-name,
.service-card:hover .service-desc,
.service-card:hover .service-icon-container,
.service-card:hover .status-icon,
.service-card:hover .service-badge,
.service-card:hover .service-name,
.service-card:hover .service-desc,
.service-card:hover .service-action,
.service-card:hover .service-badge .badge-icon,
.service-card:hover .service-badge .badge-icon {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  will-change: auto !important;
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0s !important;
  transition-delay: 0s !important;
}

/* Remove all keyframe animations */
@keyframes fadeInUp {
  from, to { opacity: 1; transform: none; }
}

@keyframes slideInLeft {
  from, to { opacity: 1; transform: none; }
}

@keyframes pulseGlow {
  from, to { opacity: 1; transform: none; }
}

@keyframes shimmer {
  from, to { opacity: 1; transform: none; }
}

@keyframes cardEntrance {
  from, to { opacity: 1; transform: none; }
}

@keyframes titleSlideIn {
  from, to { opacity: 1; transform: none; }
}

@keyframes gridFadeIn {
  from, to { opacity: 1; transform: none; }
}

@keyframes subtleShimmer {
  from, to { opacity: 1; transform: none; }
}

@keyframes float-up {
  from, to { opacity: 1; transform: none; }
}

@keyframes float-globe {
  from, to { opacity: 1; transform: none; }
}

@keyframes gradient-shift {
  from, to { opacity: 1; transform: none; }
}

@keyframes sparkle {
  from, to { opacity: 1; transform: none; }
}

@keyframes emoji-drift {
  from, to { opacity: 1; transform: none; }
}

@keyframes rainbow-shift {
  from, to { opacity: 1; transform: none; }
}

@keyframes pulse {
  from, to { opacity: 1; transform: none; }
}

/* Force static positioning for all service elements */
.service-card,
.service-card {
  position: static !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Remove staggered delays */
.service-card:nth-child(n),
.service-card:nth-child(n) {
  animation-delay: 0s !important;
}

/* Disable all JavaScript animations for services */
.service-card,
.service-card,
.service-icon,
.service-name,
.service-desc,
.service-badge,
.service-action,
.filter-tab,
.filter-btn,
.search-input,
.search-clear,
.service-status-badge,
.service-icon-container,
.status-icon,
.service-content,
.service-header,
.service-footer,
.service-actions,
.service-badge .badge-icon {
  will-change: auto !important;
  contain: none !important;
}
