/* EMERGENCY CSS - FORÇAR ESTILOS QUANDO OUTROS FALHAM */

/* Container principal */
.journalscope-container {
  min-height: 100vh !important;
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f0ff 100%) !important;
  padding: 1rem !important;
}

/* Hero section */
.hero-section {
  text-align: center !important;
  margin-bottom: 2rem !important;
  position: relative !important;
}

.hero-title {
  font-size: 2.1rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  margin-bottom: 1rem !important;
  display: block !important;
}

.hero-subtitle {
  font-size: 1.25rem !important;
  color: #374151 !important;
  font-weight: 500 !important;
  margin-bottom: 0.75rem !important;
}

.hero-description {
  color: #6b7280 !important;
  max-width: 48rem !important;
  margin: 0 auto 2rem !important;
  line-height: 1.7 !important;
}

/* Stats grid */
.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
  gap: 1rem !important;
  max-width: 80rem !important;
  margin: 0 auto 2rem !important;
}

.stat-card {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 0.75rem !important;
  padding: 1rem !important;
  text-align: center !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s ease-in-out !important;
}

.stat-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.stat-number {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.25rem !important;
}

.stat-label {
  font-size: 0.75rem !important;
  color: #6b7280 !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* Cards */
.card {
  background: white !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
  margin-bottom: 1.5rem !important;
  overflow: hidden !important;
}

.card-header {
  padding: 1.5rem !important;
  border-bottom: 1px solid #e5e7eb !important;
  background: #f9fafb !important;
}

.card-content {
  padding: 1.5rem !important;
}

/* Filtros rápidos */
.quick-filters {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  justify-content: center !important;
  padding: 1rem !important;
}

.quick-filter-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  border-radius: 0.5rem !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease-in-out !important;
}

.quick-filter-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* Tabela */
.results-table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: white !important;
}

.table-header {
  background: #f9fafb !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.table-header th {
  padding: 0.75rem 1rem !important;
  text-align: left !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #374151 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease-in-out !important;
}

.table-header th:hover {
  background: #f3f4f6 !important;
}

.table-row {
  border-bottom: 1px solid #f3f4f6 !important;
  transition: background-color 0.2s ease-in-out !important;
}

.table-row:hover {
  background: #f9fafb !important;
}

.table-cell {
  padding: 1rem !important;
  vertical-align: top !important;
}

/* Badges */
.badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.25rem 0.5rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  text-transform: uppercase !important;
}

.badge-abdc-a-star { background: #dcfce7 !important; color: #166534 !important; }
.badge-abdc-a { background: #dbeafe !important; color: #1e40af !important; }
.badge-abdc-b { background: #dbeafe !important; color: #1e40af !important; }
.badge-abdc-c { background: #fee2e2 !important; color: #991b1b !important; }

.badge-abs-4-star { background: #dcfce7 !important; color: #166534 !important; }
.badge-abs-4 { background: #dbeafe !important; color: #1e40af !important; }
.badge-abs-3 { background: #dbeafe !important; color: #1e40af !important; }
.badge-abs-2 { background: #bfdbfe !important; color: #2563eb !important; }
.badge-abs-1 { background: #fee2e2 !important; color: #991b1b !important; }

.badge-q1 { background: #dcfce7 !important; color: #166534 !important; }
.badge-q2 { background: #dbeafe !important; color: #1e40af !important; }
.badge-q3 { background: #dbeafe !important; color: #1e40af !important; }
.badge-q4 { background: #fee2e2 !important; color: #991b1b !important; }

/* Botões de ação */
.action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.375rem !important;
  border: none !important;
  border-radius: 0.375rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease-in-out !important;
  margin-right: 0.25rem !important;
}

.action-btn:hover {
  transform: translateY(-1px) !important;
}

.action-btn-google { color: #4285f4 !important; background: #f8faff !important; }
.action-btn-google:hover { background: #e3f2fd !important; }

.action-btn-scholar { color: #34a853 !important; background: #f0f9f0 !important; }
.action-btn-scholar:hover { background: #e8f5e8 !important; }

.action-btn-scope { color: #3b82f6 !important; background: #eff6ff !important; }
.action-btn-scope:hover { background: #dbeafe !important; }

.action-btn-length { color: #9c27b0 !important; background: #fce4ec !important; }
.action-btn-length:hover { background: #f8bbd9 !important; }

/* Language toggle */
.language-toggle {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 0.5rem !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease-in-out !important;
}

.language-toggle:hover {
  background: white !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* Search highlight */
.search-highlight {
  background: #dbeafe !important;
  color: #1e40af !important;
  padding: 0.125rem 0.25rem !important;
  border-radius: 0.25rem !important;
  font-weight: 500 !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.4rem !important;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .quick-filters {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding-bottom: 0.5rem !important;
  }
  
  .quick-filter-btn {
    flex-shrink: 0 !important;
  }
  
  .table-cell {
    padding: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.2rem !important;
  }
  
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
  
  .card-content,
  .card-header {
    padding: 1rem !important;
  }
}