/* ── Detail postavy: Zdroje, Únava, Jizvy ─────────────────────────────────── */

.char-resources-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.resource-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.resource-row:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(167, 139, 250, 0.12);
}

.resource-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.resource-name-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.resource-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: capitalize;
}

/* Statusy podsvícení Hranice */
.limit-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: var(--transition);
  text-shadow: none;
}

/* Žluté podsvícení (> hranice/2) */
.limit-badge.status-warning {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

/* Oranžové podsvícení (== hranice) */
.limit-badge.status-critical {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.5);
  color: #f97316;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.3);
}

/* Červené podsvícení (> hranice) */
.limit-badge.status-danger {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
  animation: limitPulse 2s infinite ease-in-out;
}

@keyframes limitPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.6); }
}

.resource-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.control-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.control-item span {
  font-weight: 500;
}

.counter-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.counter-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.counter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.counter-val {
  width: 32px;
  border: none;
  background: none;
  color: var(--text);
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  -moz-appearance: textfield;
  outline: none;
}

.counter-val::-webkit-inner-spin-button,
.counter-val::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Jizvy */
.scars-section {
  border-top: 1px dashed var(--border);
  padding-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scars-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.15rem;
}

.scars-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.scar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  transition: var(--transition);
  gap: 0.5rem;
}

.scar-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.scar-item-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.scar-severity {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent2);
  background: rgba(251, 191, 36, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.scar-desc {
  color: var(--text);
  word-break: break-all;
}

.btn-delete-scar {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.2rem;
  transition: var(--transition);
}

.btn-delete-scar:hover {
  color: #ef4444;
}

.scar-empty {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Formulář přidání jizvy */
.add-scar-btn {
  background: none;
  border: 1px dashed var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  display: block;
  width: 100%;
}

.add-scar-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.add-scar-form {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  animation: fadeIn 0.2s ease;
}

.add-scar-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.add-scar-row input {
  flex: 1;
  background: rgba(10, 10, 16, 0.6);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
  outline: none;
}

.add-scar-row input:focus {
  border-color: var(--accent);
}

.add-scar-row select {
  background: rgba(10, 10, 16, 0.6);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.add-scar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.btn-scar-submit, .btn-scar-cancel {
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-scar-submit {
  background: var(--accent-grad);
  color: #fff;
}
.btn-scar-submit:hover {
  filter: brightness(1.1);
}

.btn-scar-cancel {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.btn-scar-cancel:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

/* Povolání */
.professions-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.professions-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.profession-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  transition: var(--transition);
  gap: 0.5rem;
}

.profession-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.profession-item-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.profession-level {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(167, 139, 250, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.profession-name {
  color: var(--text);
}

.btn-delete-profession {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.2rem;
  transition: var(--transition);
}

.btn-delete-profession:hover {
  color: #ef4444;
}

.profession-empty {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Formulář přidání povolání */
.add-profession-btn {
  background: none;
  border: 1px dashed var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  display: block;
  width: 100%;
}

.add-profession-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.add-profession-form {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  animation: fadeIn 0.2s ease;
}

.add-profession-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.add-profession-row select {
  background: rgba(10, 10, 16, 0.6);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

