/* avvokado-listing-claim - Frontend-Styles v1.2.0 */

/* ================================================================
 * Container
 * ============================================================== */

.alc-container {
  margin: 24px 0;
}

/* ================================================================
 * Claim-Banner
 * ============================================================== */

.alc-claim-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fdf8f7;
  border: 1px solid #e8d5d1;
  border-left: 4px solid #73281d;
  border-radius: 6px;
  padding: 16px 20px;
  flex-wrap: wrap;
}

.alc-claim-banner-icon {
  font-size: 1.6em;
  flex-shrink: 0;
  line-height: 1;
}

.alc-claim-banner-body {
  flex: 1;
  min-width: 200px;
}

.alc-claim-banner-headline {
  margin: 0 0 3px;
  font-size: 0.97em;
  font-weight: 600;
  color: #2a1108;
}

.alc-claim-banner-sub {
  margin: 0;
  font-size: 0.87em;
  color: #666;
}

.alc-btn-claim {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Slide-Down Panel */
.alc-claim-panel {
  background: #fff;
  border: 1px solid #e0d6d3;
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 20px 24px 24px;
  animation: alc-slide-down 0.2s ease;
}

@keyframes alc-slide-down {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.alc-claim-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.alc-claim-panel-title {
  font-weight: 600;
  font-size: 1em;
  color: #2a1108;
}

.alc-claim-panel-close {
  background: none;
  border: none;
  font-size: 1.1em;
  cursor: pointer;
  color: #888;
  padding: 2px 6px;
  line-height: 1;
}

.alc-claim-panel-close:hover {
  color: #73281d;
}

.alc-claim-panel-info {
  margin: 0 0 16px;
  font-size: 0.9em;
  color: #555;
}

/* ================================================================
 * Form Fields (Claim-Formular)
 * ============================================================== */

.alc-form .alc-field {
  margin-bottom: 14px;
}

.alc-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.9em;
  color: #333;
}

.alc-form input[type="text"],
.alc-form input[type="email"],
.alc-form input[type="url"],
.alc-form input[type="tel"],
.alc-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
  box-sizing: border-box;
  transition: border-color 0.15s;
  font-family: inherit;
}

.alc-form input:focus,
.alc-form textarea:focus {
  outline: none;
  border-color: #73281d;
  box-shadow: 0 0 0 2px rgba(115,40,29,0.12);
}

/* ================================================================
 * Buttons
 * ============================================================== */

.alc-btn {
  display: inline-block;
  padding: 9px 18px;
  border: none;
  border-radius: 4px;
  font-size: 0.93em;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  font-family: inherit;
  line-height: 1.4;
}

.alc-btn-primary {
  background: #73281d;
  color: #fff;
}

.alc-btn-primary:hover {
  background: #5a1e15;
}

.alc-btn-secondary {
  background: #f0ece9;
  color: #444;
}

.alc-btn-secondary:hover {
  background: #e4dedb;
}

.alc-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

/* ================================================================
 * Notices
 * ============================================================== */

.alc-notice {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.9em;
}

.alc-notice-info {
  background: #eef3ff;
  border-left: 4px solid #4a6fa5;
  color: #2c3e70;
}

.alc-notice-success {
  background: #edfdf2;
  border-left: 4px solid #28a745;
  color: #155724;
}

.alc-notice-error {
  background: #fdf0ef;
  border-left: 4px solid #c0392b;
  color: #7b1c14;
}

/* ================================================================
 * Welcome-Banner
 * ============================================================== */

#alc-welcome-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #edfdf2;
  border: 1px solid #7dd3a8;
  border-radius: 6px;
  padding: 12px 18px;
  margin-bottom: 16px;
  font-size: 0.95em;
  color: #155724;
  transition: opacity 0.6s ease;
}

#alc-welcome-banner.alc-welcome-fade {
  opacity: 0;
}

.alc-welcome-icon {
  font-size: 1.3em;
  flex-shrink: 0;
}

/* ================================================================
 * Edit-Box (Staged Editor)
 * ============================================================== */

.alc-edit-box {
  background: #fff;
  border: 1px solid #e0d6d3;
  border-radius: 6px;
  overflow: hidden;
}

.alc-edit-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid #f0e8e6;
}

.alc-edit-title {
  margin: 0 0 3px;
  font-size: 1.05em;
  font-weight: 600;
  color: #73281d;
}

.alc-edit-hint {
  margin: 0;
  font-size: 0.85em;
  color: #888;
}

/* ================================================================
 * Feld-Row
 * ============================================================== */

.alc-field-row {
  position: relative;
  padding: 13px 20px;
  border-bottom: 1px solid #f5efed;
  transition: background 0.12s;
}

.alc-field-row:last-child {
  border-bottom: none;
}

.alc-field-row:hover {
  background: #fdf9f8;
}

.alc-field-row:hover .alc-btn-edit {
  opacity: 1;
}

/* Pending-Zustand: leichte Hervorhebung */
.alc-field-row.has-pending {
  background: #fffdf5;
  border-left: 3px solid #f0a000;
}

.alc-field-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.alc-field-label {
  font-size: 0.82em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #888;
}

.alc-lock-badge {
  font-size: 0.8em;
  cursor: help;
  opacity: 0.7;
}

.alc-field-current {
  font-size: 0.97em;
  color: #222;
  cursor: pointer;
  word-break: break-word;
}

.alc-field-current:hover {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: #73281d;
}

.alc-field-empty {
  color: #bbb;
  font-style: italic;
}

/* ================================================================
 * Diff-Ansicht
 * ============================================================== */

.alc-field-diff {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.95em;
  margin: 2px 0 8px;
}

.alc-diff-old {
  text-decoration: line-through;
  color: #b0a0a0;
}

.alc-diff-arrow {
  color: #999;
  font-size: 0.9em;
}

.alc-diff-new {
  color: #1a7a3c;
  font-weight: 600;
}

/* ================================================================
 * Feld-Aktionen (Übernehmen / Zurücksetzen)
 * ============================================================== */

.alc-field-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.alc-btn-accept {
  padding: 6px 14px;
  background: #1a7a3c;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.88em;
  cursor: pointer;
  transition: background 0.15s;
}

.alc-btn-accept:hover {
  background: #155d2e;
}

.alc-btn-accept:disabled {
  opacity: 0.55;
  cursor: default;
}

.alc-btn-reset {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid #c0392b;
  color: #c0392b;
  border-radius: 4px;
  font-size: 0.88em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.alc-btn-reset:hover {
  background: #fdf0ef;
}

.alc-btn-reset:disabled {
  opacity: 0.55;
  cursor: default;
}

/* ================================================================
 * Edit-Button (Stift-Icon)
 * ============================================================== */

.alc-btn-edit {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 1px solid #e0d6d3;
  border-radius: 4px;
  color: #73281d;
  font-size: 1em;
  padding: 3px 8px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}

.alc-btn-edit:hover {
  background: #fdf8f7;
  border-color: #73281d;
}

/* ================================================================
 * Feld-Status-Indikator
 * ============================================================== */

.alc-field-status {
  font-size: 0.85em;
  margin-left: auto;
  padding-left: 4px;
}

.alc-field-status.is-saving {
  color: #888;
  animation: alc-spin 1s linear infinite;
  display: inline-block;
}

@keyframes alc-spin {
  to { transform: rotate(360deg); }
}

.alc-field-status.is-saved {
  color: #1a7a3c;
  font-weight: 600;
}

.alc-field-status.is-error {
  color: #c0392b;
  font-weight: 600;
  cursor: help;
}

/* ================================================================
 * Modal Overlay
 * ============================================================== */

.alc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: alc-fade-in 0.15s ease;
}

@keyframes alc-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.alc-modal-box {
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  animation: alc-modal-in 0.18s ease;
}

@keyframes alc-modal-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.alc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.alc-modal-title {
  font-size: 1.05em;
  font-weight: 600;
  color: #73281d;
}

.alc-modal-close {
  background: none;
  border: none;
  font-size: 1.1em;
  cursor: pointer;
  color: #888;
  padding: 2px 6px;
  line-height: 1;
}

.alc-modal-close:hover { color: #73281d; }

.alc-modal-current-label,
.alc-modal-new-label {
  font-size: 0.82em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  display: block;
  margin-bottom: 4px;
}

.alc-modal-current-value {
  font-size: 0.95em;
  color: #555;
  padding: 8px 0;
  word-break: break-word;
}

.alc-modal-current-value em {
  color: #bbb;
}

.alc-modal-sep {
  border-bottom: 1px solid #f0e8e6;
  margin: 12px 0;
}

.alc-modal-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.15s;
  resize: vertical;
}

.alc-modal-input:focus {
  outline: none;
  border-color: #73281d;
  box-shadow: 0 0 0 2px rgba(115,40,29,0.12);
}

.alc-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ================================================================
 * aDirectory nativen Claim-Button verstecken (Fallback)
 * ============================================================== */

.adqs-claim-listing-btn-wrapper {
  display: none !important;
}
