/**
 * Service Selector Modal Styles
 * Shown on first visit to let users choose their service
 */

/* Overlay */
.service-selector-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.service-selector-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Modal Container */
.service-selector-modal {
  background: var(--card-bg, #1a1a2e);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 24px;
  padding: 40px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header */
.service-selector-header {
  text-align: center;
  margin-bottom: 32px;
}

.service-selector-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0 0 8px 0;
}

.service-selector-title .gradient-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-selector-subtitle {
  font-size: 1rem;
  color: var(--text-secondary, rgba(255, 255, 255, 0.6));
  margin: 0;
}

/* Service Grid */
.service-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

/* Service Card */
.service-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover:not(.disabled) {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.service-card.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.5);
}

.service-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.service-card.disabled:hover {
  transform: none;
}

/* Service Icon */
.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  border-radius: 12px;
  flex-shrink: 0;
}

.service-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent, #8b5cf6);
}

/* Service Info */
.service-info {
  flex: 1;
  min-width: 0;
}

.service-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin: 0 0 4px 0;
}

.service-info p {
  font-size: 0.8rem;
  color: var(--text-secondary, rgba(255, 255, 255, 0.5));
  margin: 0;
  line-height: 1.4;
}

/* Service Arrow */
.service-arrow {
  font-size: 1.2rem;
  color: var(--text-secondary, rgba(255, 255, 255, 0.4));
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover:not(.disabled) .service-arrow {
  transform: translateX(4px);
  color: var(--accent, #8b5cf6);
}

/* Service Badge */
.service-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.2);
  color: #8b5cf6;
}

.service-badge.coming-soon {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

/* Continue Button */
.service-selector-continue {
  width: 100%;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-selector-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.service-selector-continue:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 640px) {
  .service-selector-modal {
    padding: 24px;
    margin: 16px;
  }
  
  .service-selector-grid {
    grid-template-columns: 1fr;
  }
  
  .service-selector-title {
    font-size: 1.5rem;
  }
  
  .service-card {
    padding: 16px;
  }
  
  .service-icon {
    width: 40px;
    height: 40px;
  }
  
  .service-icon img,
  .service-icon svg {
    width: 24px;
    height: 24px;
  }
}
