/**
 * 🎨 CATEGORY MODALS - Estilos dos Modais de Categoria
 * @version 1.0.0
 */

/* Container do Modal */
.category-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-modal-container.active {
  display: flex;
  opacity: 1;
}

/* Backdrop */
.category-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-modal-backdrop.active {
  opacity: 1;
}

/* Conteúdo do Modal */
.category-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  margin: auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.category-modal-content.active {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Botão Fechar */
.category-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #1e293b;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-modal-close:hover {
  background: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Header do Modal */
.category-modal-header {
  padding: 40px;
  text-align: center;
  color: white;
  position: relative;
}

.category-modal-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-modal-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.category-modal-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.category-modal-header p {
  font-size: 18px;
  opacity: 0.95;
  line-height: 1.6;
}

/* Body do Modal */
.category-modal-body {
  padding: 40px;
  overflow-y: auto;
  flex: 1;
}

/* Stats */
.category-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 15px;
}

.category-stat {
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sections */
.category-section {
  margin-bottom: 40px;
}

.category-section h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-section h3 i {
  color: var(--primary-color, #2563eb);
}

/* Services Grid */
.category-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.category-service-card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid;
}

.category-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}

.service-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.service-header h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #1e293b;
}

.service-header p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.service-details {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.service-details li {
  font-size: 14px;
  color: #475569;
  margin-bottom: 8px;
  padding-left: 5px;
}

.service-time {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 10px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 14px;
  color: #475569;
  font-weight: 600;
}

.service-time i {
  color: var(--primary-color, #2563eb);
}

/* Products */
.category-products {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.category-product-badge {
  padding: 12px 20px;
  background: #f1f5f9;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.category-product-badge:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

/* Testimonials */
.category-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.category-testimonial {
  background: #f9fafb;
  padding: 20px;
  border-radius: 15px;
  border-left: 4px solid var(--accent-color, #f59e0b);
}

.testimonial-rating {
  font-size: 18px;
  margin-bottom: 10px;
}

.category-testimonial p {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 10px;
  font-style: italic;
}

.category-testimonial small {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

/* CTA Buttons */
.category-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #e2e8f0;
}

.category-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.category-cta-whatsapp {
  background: #25d366;
  color: white;
}

.category-cta-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.category-cta-page {
  background: #f1f5f9;
  color: #1e293b;
  border: 2px solid #e2e8f0;
}

.category-cta-page:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .category-modal-content {
    width: 95%;
    max-height: 95vh;
    border-radius: 15px;
  }

  .category-modal-header {
    padding: 30px 20px;
  }

  .category-modal-icon {
    font-size: 60px;
  }

  .category-modal-header h2 {
    font-size: 24px;
  }

  .category-modal-header p {
    font-size: 16px;
  }

  .category-modal-body {
    padding: 20px;
  }

  .category-services-grid {
    grid-template-columns: 1fr;
  }

  .category-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
  }

  .stat-value {
    font-size: 24px;
  }

  .category-modal-actions {
    flex-direction: column;
  }

  .category-cta-btn {
    width: 100%;
  }
}

/* Acessibilidade */
.category-modal-content:focus {
  outline: none;
}

.category-modal-close:focus {
  outline: 2px solid var(--primary-color, #2563eb);
  outline-offset: 2px;
}

/* Animações de entrada */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Scrollbar personalizada */
.category-modal-body::-webkit-scrollbar {
  width: 8px;
}

.category-modal-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.category-modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.category-modal-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
