/* Povratne informacije (feedback.js): kartica na Učni poti, vprašalnik, pogovor, zbrana mnenja. */

/* kartica na Učni poti */
.fb-card { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: start; border: 1.5px solid var(--accent); }
.fb-card-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.fb-card-ic svg.i { width: 22px; height: 22px; }
.fb-card-text p { margin: 2px 0 0; font-size: 0.92rem; }
.fb-card-x { align-self: start; color: var(--muted); }
.fb-card-go { grid-column: 1 / -1; margin-top: 8px; }

.fb-intro { margin-top: -4px; }
.fb-tabs { margin: 4px 0 14px; }
.fb-hint { margin: 0 0 12px; font-size: 0.92rem; }
.fb-form h2, .fb-admin-card h2 { margin: 0 0 4px; font-size: 1.15rem; }
.fb-form textarea, .fb-chat-form textarea {
  font-weight: 600; padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--bg); min-height: 44px; resize: vertical;
}
.fb-form textarea:focus, .fb-chat-form textarea:focus { border-color: var(--accent); outline: none; }

/* tabela ocen: področje levo, obrazi 1–5 desno */
.fb-table { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 6px; }
.fb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; }
.fb-row + .fb-row { border-top: 1px solid var(--border); }
.fb-area { font-weight: 700; }
.fb-faces { display: flex; gap: 4px; flex: none; }
.fb-faces button {
  min-width: 44px; min-height: 44px; padding: 0 !important; border-radius: var(--radius-sm); font-size: 1.35rem; line-height: 1;
  background: transparent; border: 1.5px solid transparent; filter: grayscale(0.7); opacity: 0.7; box-shadow: none;
}
.fb-faces button:hover { opacity: 0.9; filter: none; background: var(--surface-2); }
.fb-faces button.on, .fb-faces button.on:hover { filter: none; opacity: 1; border-color: var(--accent); background: var(--accent-soft); }
.fb-rec { display: flex; flex-direction: column; gap: 6px; }

/* pogovor */
.fb-chat { display: flex; flex-direction: column; gap: 12px; max-height: 55vh; overflow-y: auto; padding: 4px 2px 8px; }
.fb-chat .msg { max-width: 100%; }
.fb-chat-card .fb-done { margin-top: 12px; }
.fb-chat-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.fb-chat-form textarea { flex: 1; resize: none; }
.fb-chat-form .send { min-width: 48px; min-height: 48px; }
.fb-typing { display: flex; gap: 5px; padding: 14px 16px; }
.fb-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: fb-dot 1s infinite ease-in-out; }
.fb-typing span:nth-child(2) { animation-delay: 0.15s; }
.fb-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes fb-dot { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

/* zahvala */
.fb-thanks { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 20px; }
.fb-thanks h2 { margin: 8px 0 0; }
.fb-thanks p { margin: 0 0 12px; }
.fb-thanks-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); }
.fb-thanks-ic svg.i { width: 30px; height: 30px; }

/* zbrana mnenja */
.fb-admin-card { margin-top: 18px; }
.fb-admin-card h2 { display: flex; align-items: center; gap: 8px; }
.fb-file code { font-size: 0.85rem; overflow-wrap: anywhere; }
.fb-summary { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 6px; overflow-x: auto; }
.fb-summary h1 { font-size: 1.2rem; }
.fb-summary h2 { font-size: 1.05rem; margin-top: 18px; }
.fb-summary .md-table { font-size: 0.92rem; }

@media (max-width: 760px) {
  .fb-row { flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 10px 6px; }
  .fb-faces { justify-content: space-between; }
  .fb-faces button { flex: 1; }
}

/* Namestitev aplikacije (install.js): kartica uporablja .fb-card, navodila so spodnji list. */
.install-card .inst-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.install-sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 480px; background: transparent; color: var(--text); }
.install-sheet.is-top { margin: 0 auto auto; }
.install-sheet::backdrop { background: rgba(15, 23, 42, 0.45); }
.is-box { background: var(--surface); border-radius: 20px 20px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.2); }
.is-top .is-box { border-radius: 0 0 20px 20px; }
@media (min-width: 700px) { .install-sheet, .install-sheet.is-top { margin: auto; } .is-box, .is-top .is-box { border-radius: 20px; } }
.is-head { display: flex; align-items: center; gap: 12px; }
.is-head img { border-radius: 12px; flex-shrink: 0; }
.is-head h2 { flex: 1; margin: 0; font-size: 1.15rem; }
.is-steps { list-style: none; counter-reset: st; margin: 16px 0 8px; padding: 0; display: grid; gap: 12px; }
.is-steps li { counter-increment: st; display: grid; grid-template-columns: 28px 40px 1fr; align-items: center; gap: 10px; line-height: 1.35; }
.is-steps li::before { content: counter(st); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 800; }
.is-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.is-ic svg.i { width: 22px; height: 22px; }
.is-note { margin: 8px 0 0; font-size: 0.92rem; }
.is-ok { width: 100%; margin-top: 16px; }
.is-get { width: 100%; margin-top: 16px; box-sizing: border-box; }
.is-web.is-ok { margin-top: 8px; justify-content: center; text-align: center; }
.install-mini { display: flex; align-items: center; padding: 0 4px 0 0; }
.install-mini .list-row { flex: 1; min-width: 0; }
.install-mini .fb-card-x { color: var(--muted); }
.install-mini .fb-card-x { align-self: center; }
