/* Estilos específicos para cards dos modelos */

/* Summary section */
.models-summary {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.summary-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #0369a1;
  font-weight: 500;
  font-size: 0.9rem;
}

.summary-text i {
  font-size: 1.125rem;
  color: #0284c7;
}

.visible-count,
.total-count {
  font-weight: 700;
  color: #1e40af;
}

.expand-hint {
  color: #6b7280;
  font-weight: 400;
  margin-left: 0.5rem;
}

@media (max-width: 640px) {
  .expand-hint {
    display: block;
    margin-left: 0;
    margin-top: 0.25rem;
  }
  
  .summary-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* Card grid melhorado */
.models-grid,
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 0;
  margin: 2rem 0;
}

/* Card base styling */
.model-card,
.tool-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e5e7eb;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

/* Card header (icon + title) */
.tool-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hover effects */
.model-card:hover,
.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(111, 12, 99, 0.15);
  border-color: #d8b4fe;
  text-decoration: none;
}

/* Top border gradient */
.model-card::before,
.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #6F0C63 0%, #1E3A8A 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.model-card:hover::before,
.tool-card:hover::before {
  transform: scaleX(1);
}

/* Icon styling */
.model-icon,
.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  color: #6F0C63;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.model-icon::after,
.tool-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #6F0C63 0%, #1E3A8A 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.model-card:hover .model-icon::after,
.tool-card:hover .tool-icon::after {
  opacity: 1;
}

.model-card:hover .model-icon i,
.tool-card:hover .tool-icon i {
  color: white;
  position: relative;
  z-index: 1;
  transform: scale(1.1);
}

/* Title styling */
.model-title,
.tool-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.model-card:hover .model-title,
.tool-card:hover .tool-title {
  color: #6F0C63;
}

/* Area/Category tag */
.model-area,
.tool-area {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  background: #f3f4f6;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
  margin: 0;
  transition: all 0.3s ease;
}

.model-card:hover .model-area,
.tool-card:hover .tool-area {
  background: linear-gradient(135deg, #6F0C63 0%, #1E3A8A 100%);
  color: white;
}

/* Area sections com collapse */
.area-section {
  margin-bottom: 2rem;
}

.area-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 3px solid transparent;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  user-select: none;
}

.area-title:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.area-title i:first-child {
  background: linear-gradient(135deg, #6F0C63 0%, #1E3A8A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.75rem;
}

.area-title .area-toggle {
  margin-left: auto;
  font-size: 1.25rem;
  color: #6b7280;
  transition: transform 0.3s ease, color 0.3s ease;
}

.area-title:hover .area-toggle {
  color: #6F0C63;
}

.area-count {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 400;
  background: #e5e7eb;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  -webkit-text-fill-color: #6b7280;
}

/* Estados de collapse/expand */
.area-expanded {
  max-height: none;
  opacity: 1;
  overflow: visible;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 2rem;
}

.area-collapsed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0;
}

/* Animação do ícone toggle */
.area-title .ph-caret-up {
  transform: rotate(180deg);
}

.area-title .ph-caret-down {
  transform: rotate(0deg);
}

/* ==============================================
   TABS SYSTEM - Substitui acordeões
   ============================================== */

.tabs-container {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.tabs-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.tabs-navigation::-webkit-scrollbar {
  height: 6px;
}

.tabs-navigation::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.tabs-navigation::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.tab-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.tab-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #6F0C63 0%, #1E3A8A 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.tab-button > * {
  position: relative;
  z-index: 1;
}

.tab-button:hover {
  border-color: #6F0C63;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(111, 12, 99, 0.15);
}

.tab-button.active {
  background: linear-gradient(135deg, #6F0C63 0%, #1E3A8A 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(111, 12, 99, 0.3);
}

.tab-button.active::before {
  opacity: 1;
}

.tab-button i {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.tab-button:hover i {
  transform: scale(1.1);
}

.tab-button.active i {
  color: white;
}

.tab-label {
  font-weight: 600;
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.5rem;
  background: #e2e8f0;
  color: #64748b;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.tab-button.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.tabs-content {
  padding: 2rem;
  background: white;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* No results styling */
.no-results {
  text-align: center;
  padding: 3rem 2rem;
  background: #f8fafc;
  border-radius: 16px;
  border: 2px dashed #e2e8f0;
  margin: 2rem 0;
}

.no-results i {
  font-size: 3rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  display: block;
}

.no-results h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.no-results p {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .models-grid,
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .area-title {
    font-size: 1.25rem;
    padding: 0.875rem 1rem;
  }
  
  .area-title i:first-child {
    font-size: 1.5rem;
  }
  
  .area-title .area-toggle {
    font-size: 1.125rem;
  }
  
  /* Tabs responsivo */
  .tabs-navigation {
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .tab-button {
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
    gap: 0.375rem;
  }
  
  .tab-button i {
    font-size: 1.125rem;
  }
  
  .tab-label {
    font-size: 0.85rem;
  }
  
  .tab-count {
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
    padding: 0 0.375rem;
  }
  
  .tabs-content {
    padding: 1.25rem;
  }
  
  .model-card,
  .tool-card {
    padding: 1.25rem;
  }
  
  .model-icon,
  .tool-icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .model-card,
  .tool-card {
    padding: 1rem;
  }
  
  .model-icon,
  .tool-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
  
  .model-title,
  .tool-title {
    font-size: 1rem;
  }
  
  /* Tabs em telas pequenas */
  .tabs-navigation {
    padding: 0.5rem;
    gap: 0.375rem;
  }
  
  .tab-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    flex-shrink: 0;
  }
  
  .tab-button i {
    font-size: 1rem;
  }
  
  .tab-label {
    font-size: 0.8rem;
  }
  
  .tab-count {
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }
  
  .tabs-content {
    padding: 1rem;
  }
}

/* Loading animation */
@keyframes cardLoad {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.model-card,
.tool-card {
  animation: cardLoad 0.6s ease-out;
}

/* Stagger animation */
.model-card:nth-child(1),
.tool-card:nth-child(1) { animation-delay: 0.1s; }
.model-card:nth-child(2),
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.model-card:nth-child(3),
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.model-card:nth-child(4),
.tool-card:nth-child(4) { animation-delay: 0.4s; }
.model-card:nth-child(5),
.tool-card:nth-child(5) { animation-delay: 0.5s; }
.model-card:nth-child(6),
.tool-card:nth-child(6) { animation-delay: 0.6s; }

/* Notification System */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #6F0C63;
  padding: 1rem 1.5rem;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 350px;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notification-content i {
  font-size: 1.25rem;
  color: #6F0C63;
}

.notification-content span {
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
}

.notification-info {
  border-left-color: #6F0C63;
}

.notification-success {
  border-left-color: #10b981;
}

.notification-success .notification-content i {
  color: #10b981;
}

/* Hover effect enhancement for clickable cards */
.tool-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s ease;
}

.tool-card:active {
  transform: scale(0.95);
}