/* ─────────────────────────────────────────────────────────────────────────────
   interests-panel.css
   Panel "Me interesa" + botón en sidebar
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Botón en sidebar footer ── */
.msb-interests-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: color 0.12s;
  margin-bottom: 0;
}
.msb-interests-btn:hover {
  color: #b45309;
}
.msb-interests-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #374151;
  transition: color 0.12s;
}
.msb-interests-btn:hover svg {
  color: #f59e0b;
}

.msb-interests-count {
  margin-left: auto;
  background: #f59e0b;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  min-width: 1.2rem;
  text-align: center;
  line-height: 1.4;
}

/* ── Panel layout ── */
.interests-panel {
  /* reutiliza .admin-panel — display:none / display:flex por .is-visible */
}

.interests-panel__content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

/* ── Grid de cards ── */
.ip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* ── Card ── */
.ip-card {
  display: flex;
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.ip-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.ip-card--past { opacity: 0.6; }

.ip-card__stripe {
  width: 5px;
  flex-shrink: 0;
}

.ip-card__body {
  flex: 1;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.ip-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.ip-card__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ip-card__days {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.ip-card__days.is-soon {
  background: #fef3c7;
  color: #b45309;
}

.ip-card__date {
  font-size: 0.76rem;
  color: var(--color-gray-500);
}

.ip-card__meta {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  color: var(--color-gray-400);
}

.ip-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  align-items: center;
  margin-top: 0.5rem;
}
.ip-card__actions .button {
  border-radius: 999px !important;
  font-size: 0.72rem;
  font-weight: 400;
  padding: 0.28rem 0.65rem;
  height: auto;
  line-height: normal;
}
.ip-card__actions .ip-confirm-btn {
  font-weight: 500;
}

/* ── Loading skeleton ── */
.ip-loading {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ip-skeleton {
  display: flex;
  background: white;
  border: 1px solid var(--color-gray-300);
  border-radius: 10px;
  overflow: hidden;
  height: 90px;
}
.ip-skeleton__stripe {
  width: 5px;
  background: #e5e7eb;
  flex-shrink: 0;
}
.ip-skeleton__body {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}
.ip-skeleton__line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: ip-shimmer 1.4s infinite;
}
@keyframes ip-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Empty state ── */
.ip-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--color-gray-400);
  font-size: 0.85rem;
  line-height: 1.5;
}
.ip-empty svg { opacity: 0.3; }
.ip-empty p { margin: 0; }
