/* Feedname Explorer Page */

/* Info Banner */
.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: #EAF4FB;
  border: 1px solid #D4E8F6;
  border-radius: var(--radius);
  margin-bottom: 20px;
  color: #0B4A71;
}
.info-banner svg { flex-shrink: 0; margin-top: 2px; color: #3498DB; }
.info-banner p { margin: 0; font-size: 14px; line-height: 1.5; }
.info-banner code { background: rgba(255,255,255,0.6); padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 13px; }

/* Feed Grid */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feed-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.feed-card:hover {
  border-color: var(--primary-soft);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.07);
  transform: translateY(-2px);
}

.feed-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.feed-icon {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px;
  background: #F4F6F5; color: var(--text);
}
.feed-badge {
  font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 99px;
  background: #EAF7EF; color: var(--primary-dark);
}

.feed-name { font-size: 15px; font-weight: 600; color: var(--text); margin: 0 0 4px; line-height: 1.4; }
.feed-desc { font-size: 13px; color: var(--muted); margin: 0 0 16px; }

.feed-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-secondary); margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.feed-meta span { display: inline-flex; align-items: center; gap: 4px; }
.feed-meta svg { color: var(--muted); }
.page-actions { display: flex; align-items: center; gap: 10px; }
#processProductsDialog { border: 0; padding: 0; background: transparent; max-width: min(480px, calc(100vw - 32px)); width: 100%; }
#processProductsDialog::backdrop { background: rgba(16, 24, 40, 0.42); backdrop-filter: blur(2px); }
#processProductsDialog .modal-card { width: 100%; padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(16, 24, 40, 0.2); }
#processProductsDialog .modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
#processProductsDialog .modal-head h2 { margin: 0 0 5px; font-size: 19px; }
#processProductsDialog .modal-head p { margin: 0; color: var(--muted); font-size: 13px; }
#processProductsDialog .modal-close { border: 0; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }
#processProductsDialog .form-field { display: grid; gap: 8px; font-size: 13px; font-weight: 600; }
#processProductsDialog select { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
#processProductsDialog .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
#processProductsDialog .modal-actions button { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 540px) { .page-actions { flex-wrap: wrap; } }

/* Loading state */
.feed-skeleton {
  height: 200px; border-radius: var(--radius); background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (max-width: 1024px) {
  .feed-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .feed-grid { grid-template-columns: 1fr; }
}

/* ---------- Pagination ---------- */
#pagination { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
#pagination .pager { display: flex; gap: 6px; }
#pagination .pager button {
  min-width: 32px; height: 32px; padding: 0 8px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer;
  transition: background 0.15s;
}
#pagination .pager button:hover:not(:disabled) { background: #F4F6F5; }
#pagination .pager button:disabled { opacity: 0.4; cursor: default; }
#pagination .pager button.active { background: var(--dark); border-color: var(--dark); color: #fff; }
