/* ==========================================================================
   MÓDULO DE INSPIRACIÓN Y FRASES MOTIVACIONALES - ESTILOS
   ========================================================================== */

/* Estilos de Botones Globales del Sitio */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.6rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background-color: #1D4ED8;
  border-color: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background-color: #F8FAFC;
  color: #475569;
  border-color: #CBD5E1;
}

.btn-secondary:hover {
  background-color: #E2E8F0;
  color: #0F172A;
}

/* Tabs de Navegación */
.inspiracion-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #E2E8F0;
  margin-bottom: 1.5rem;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -2px;
  font-family: inherit;
}

.tab-btn:hover {
  color: #1D4ED8;
  background-color: #F8FAFC;
  border-radius: 8px 8px 0 0;
}

.tab-btn.active {
  color: #1D4ED8;
  border-bottom-color: #1D4ED8;
  font-weight: 800;
}

.tab-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.tab-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  background-color: #E2E8F0;
  color: #475569;
}

.tab-btn.active .tab-badge {
  background-color: #DBEAFE;
  color: #1D4ED8;
}

/* Secciones Tab Content */
.tab-content {
  display: none;
}

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

/* Toolbar de Filtros */
.toolbar-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.25rem;
  background-color: #FFFFFF;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.search-box {
  flex: 1;
  min-width: 260px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-box .search-icon {
  position: absolute;
  left: 12px;
  font-size: 0.9rem;
  color: #94A3B8;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 2.2rem;
  font-size: 0.88rem;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.search-box input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.form-control-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  background-color: #FFFFFF;
  color: #334155;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

/* Grid de Frases (Quote Cards) */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

/* Tarjeta de Cita Inspiradora */
.quote-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.22s ease;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.02);
}

.quote-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  border-color: #BFDBFE;
}

.quote-card.inactive {
  opacity: 0.6;
  background-color: #F8FAFC;
}

.quote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.85rem;
}

.quote-grad-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background-color: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  text-transform: uppercase;
}

.quote-body {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1E293B;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.quote-body::before {
  content: '“';
  font-size: 2.2rem;
  font-family: Georgia, serif;
  color: #93C5FD;
  position: absolute;
  top: -12px;
  left: -10px;
  line-height: 1;
  opacity: 0.5;
}

.quote-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #F1F5F9;
  padding-top: 0.85rem;
  gap: 8px;
  flex-wrap: wrap;
}

.quote-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.quote-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: #F1F5F9;
  color: #475569;
}

.quote-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon-action {
  background: transparent;
  border: 1px solid #E2E8F0;
  color: #475569;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-icon-action:hover {
  background-color: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

.btn-icon-action.btn-danger:hover {
  background-color: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
}

/* Modales */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1rem 1.25rem;
  background-color: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748B;
  cursor: pointer;
  padding: 0 4px;
}

.modal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-footer {
  padding: 0.85rem 1.25rem;
  background-color: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.form-control {
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
}

.form-control:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.category-checkboxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.cat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-chip:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
}

.cat-chip input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: #64748B;
  font-weight: 600;
}
