/* ============================================================
   UVLIS — Feedback & Novedades (changelog). Premium UI with an
   amber accent, tabbed layout and a vertical update timeline.
   ============================================================ */

:root {
  --fb-amber: #f59e0b;
  --fb-amber-2: #fbbf24;
  --fb-soft: rgba(245, 158, 11, 0.14);
  --fb-border: rgba(245, 158, 11, 0.32);
  --fb-card: #14161d;
  --fb-card-2: #181b23;
  --fb-line: rgba(255, 255, 255, 0.08);
  --fb-text: #e9ecf3;
  --fb-muted: #8b92a4;
  /* category accents */
  --c-nuevo: #22c55e;
  --c-mejora: #8b5cf6;
  --c-arreglo: #f59e0b;
  --c-aviso: #22d3ee;
}

.fb-content { max-width: 1000px; margin: 0 auto; padding: 18px 20px 64px; width: 100%; }

/* ── Buttons ── */
.fb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.86rem; font-weight: 700; padding: 10px 18px; border-radius: 11px;
  border: 1px solid var(--fb-line); background: rgba(255, 255, 255, 0.05); color: var(--fb-text);
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.fb-btn:hover:not(:disabled) { transform: translateY(-1px); background: rgba(255, 255, 255, 0.08); }
.fb-btn:disabled { opacity: 0.55; cursor: default; }
.fb-btn-primary { background: linear-gradient(135deg, var(--fb-amber-2), #e08c00); border-color: transparent; color: #2a1a00; box-shadow: 0 8px 22px rgba(245, 158, 11, 0.26); }
.fb-btn-primary:hover:not(:disabled) { box-shadow: 0 12px 28px rgba(245, 158, 11, 0.4); }
.fb-btn-ghost { background: transparent; }
.fb-btn-sm { padding: 7px 13px; font-size: 0.8rem; }

/* ── Header ── */
.fb-head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; margin-bottom: 20px; }
.fb-head-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: #fcd06a; background: var(--fb-soft); border: 1px solid var(--fb-border); padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
}
.fb-head-titles h1 {
  margin: 0; font-size: 1.95rem; font-weight: 900; letter-spacing: -0.01em;
  background: linear-gradient(120deg, #fff, #ffe2a6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.fb-head-titles p { margin: 5px 0 0; color: var(--fb-muted); font-size: 0.92rem; max-width: 520px; }

.fb-stats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.fb-stat { min-width: 104px; padding: 10px 16px; border-radius: 14px; background: var(--fb-card); border: 1px solid var(--fb-line); display: flex; flex-direction: column; gap: 2px; }
.fb-stat-num { font-size: 1.15rem; font-weight: 800; color: #fff; line-height: 1.1; }
.fb-stat-label { font-size: 0.64rem; color: var(--fb-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

/* ── Tabs ── */
.fb-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--fb-line); margin-bottom: 22px; }
.fb-tab {
  padding: 11px 16px; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--fb-muted); font-weight: 700; font-size: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.fb-tab:hover { color: var(--fb-text); }
.fb-tab.active { color: var(--fb-amber-2); border-bottom-color: var(--fb-amber); }
.fb-tab-count { font-size: 0.72rem; font-weight: 800; background: var(--fb-soft); color: var(--fb-amber-2); padding: 1px 8px; border-radius: 999px; }

.fb-pane { display: none; }
.fb-pane.active { display: block; animation: fbFade .25s ease both; }
@keyframes fbFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.fb-empty { text-align: center; padding: 50px 20px; color: var(--fb-muted); font-size: 0.92rem; }
.fb-empty-ic { display: block; font-size: 2.3rem; margin-bottom: 10px; }

/* ── Novedades timeline ── */
.fb-timeline { position: relative; padding-left: 26px; }
.fb-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--fb-border), rgba(255, 255, 255, 0.04)); }
.fb-update { position: relative; margin-bottom: 16px; }
.fb-update-dot {
  position: absolute; left: -26px; top: 16px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-nuevo); box-shadow: 0 0 0 4px #0c0d13, 0 0 12px color-mix(in srgb, var(--c-nuevo) 60%, transparent); z-index: 1;
}
.fb-update.cat-mejora .fb-update-dot { background: var(--c-mejora); box-shadow: 0 0 0 4px #0c0d13, 0 0 12px color-mix(in srgb, var(--c-mejora) 60%, transparent); }
.fb-update.cat-arreglo .fb-update-dot { background: var(--c-arreglo); box-shadow: 0 0 0 4px #0c0d13, 0 0 12px color-mix(in srgb, var(--c-arreglo) 60%, transparent); }
.fb-update.cat-aviso .fb-update-dot { background: var(--c-aviso); box-shadow: 0 0 0 4px #0c0d13, 0 0 12px color-mix(in srgb, var(--c-aviso) 60%, transparent); }

.fb-update-card {
  background: var(--fb-card); border: 1px solid var(--fb-line); border-radius: 14px; padding: 16px 18px;
  transition: border-color .15s ease, transform .15s ease;
}
.fb-update:hover .fb-update-card { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.16); }
.fb-update.is-pinned .fb-update-card { border-color: var(--fb-border); background: linear-gradient(180deg, var(--fb-soft), var(--fb-card) 60%); }

.fb-update-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.fb-cat { font-size: 0.7rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.fb-cat.cat-nuevo  { background: rgba(34, 197, 94, 0.16);  color: #74e69a; border: 1px solid rgba(34, 197, 94, 0.35); }
.fb-cat.cat-mejora { background: rgba(139, 92, 246, 0.16); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.35); }
.fb-cat.cat-arreglo { background: rgba(245, 158, 11, 0.16); color: #fcd06a; border: 1px solid rgba(245, 158, 11, 0.35); }
.fb-cat.cat-aviso  { background: rgba(34, 211, 238, 0.16); color: #7fe3f1; border: 1px solid rgba(34, 211, 238, 0.35); }
.fb-version { font-family: ui-monospace, monospace; font-size: 0.72rem; font-weight: 700; color: #c4ccdb; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--fb-line); padding: 2px 8px; border-radius: 7px; }
.fb-pinned { font-size: 0.7rem; font-weight: 700; color: var(--fb-amber-2); }
.fb-update-date { margin-left: auto; font-size: 0.74rem; color: var(--fb-muted); }
.fb-update-title { margin: 0 0 6px; font-size: 1.08rem; font-weight: 800; color: #f3f5ff; line-height: 1.25; }
.fb-update-body { margin: 0; color: #c3cad8; font-size: 0.9rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.fb-update-author { margin-top: 10px; font-size: 0.76rem; color: var(--fb-muted); font-style: italic; }

/* ── Feedback pane ── */
.fb-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
.fb-card { background: var(--fb-card); border: 1px solid var(--fb-line); border-radius: 16px; padding: 20px; }
.fb-card h2 { margin: 0 0 16px; font-size: 1.05rem; font-weight: 800; color: #fff; }
.feedback-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.feedback-card-head h2 { margin: 0; }

.feedback-form { display: flex; flex-direction: column; gap: 14px; }
.feedback-field { display: flex; flex-direction: column; gap: 6px; }
.feedback-field label { font-size: 0.82rem; font-weight: 700; color: #cfd5e2; }
.feedback-field .form-input { width: 100%; }
.feedback-field textarea.form-input { resize: vertical; min-height: 110px; }
.feedback-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.feedback-hint { font-size: 0.76rem; color: var(--fb-muted); flex: 1; min-width: 140px; }

/* Your submissions list */
.feedback-list { display: flex; flex-direction: column; gap: 12px; }
.feedback-item { border: 1px solid var(--fb-line); border-radius: 13px; padding: 14px; background: var(--fb-card-2); }
.feedback-item-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.feedback-type { font-size: 0.7rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #cfd5e2; }
.feedback-type.type-idea { background: rgba(245, 158, 11, 0.16); color: #fcd06a; }
.feedback-type.type-bug { background: rgba(239, 68, 68, 0.16); color: #f9a8a8; }
.feedback-status { font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-left: auto; background: rgba(255, 255, 255, 0.06); color: var(--fb-muted); }
.feedback-status.status-planned { background: rgba(34, 197, 94, 0.16); color: #74e69a; }
.feedback-status.status-reviewing { background: rgba(34, 211, 238, 0.16); color: #7fe3f1; }
.feedback-status.status-closed { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; }
.feedback-item h3 { margin: 0 0 5px; font-size: 0.96rem; font-weight: 700; color: #f3f5ff; }
.feedback-item p { margin: 0; font-size: 0.86rem; color: #c3cad8; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.feedback-item-date { margin-top: 9px; font-size: 0.72rem; color: var(--fb-muted); }

/* ── Responsive ── */
@media (max-width: 760px) {
  .fb-head { grid-template-columns: 1fr; gap: 14px; }
  .fb-stats { justify-content: flex-start; }
  .fb-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .fb-content { padding: 14px 14px 56px; }
}
