/* ============================================================================
   DCA Suite 2.0 – Gemeinsames Frontend-CSS
   Alle Shortcode-Seiten benutzen diese Klassen für konsistentes Design
   ============================================================================ */

:root {
  --dca:        #e67e22;
  --dca-dark:   color-mix(in srgb, var(--dca) 80%, black);
  --dca-light:  color-mix(in srgb, var(--dca) 12%, white);
  --bg:         #f6f7f9;
  --surface:    #ffffff;
  --border:     #e5e7eb;
  --text-1:     #111827;
  --text-2:     #4b5563;
  --text-3:     #9ca3af;
  --radius:     10px;
  --radius-lg:  14px;
  --shadow:     0 1px 4px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
}

/* ── Reset ── */
.dca-page * { box-sizing: border-box; }
.dca-page { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
             font-size: 15px; line-height: 1.6; color: var(--text-1); }

/* ── Page Wrapper ── */
.dca-page { padding: 24px 20px 60px; max-width: 1000px; margin: 0 auto; }

/* ── Page Header ── */
.dca-page-header {
  background: var(--dca);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  color: #fff;
}
.dca-page-header h1 { font-size: 24px; font-weight: 800; margin: 0 0 4px; color: #fff; }
.dca-page-header .sub { font-size: 14px; opacity: .8; margin: 0; }

/* ── Card ── */
.dca-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
}
.dca-card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--bg);
  font-size: 11px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .8px;
  background: #fafbfc;
}
.dca-card-body { padding: 20px; }

/* ── List Item ── */
.dca-list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text-1);
  transition: background .12s;
}
.dca-list-item:last-child { border-bottom: none; }
.dca-list-item:hover { background: var(--bg); }
.dca-list-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--dca-light); color: var(--dca); flex-shrink: 0;
}
.dca-list-body { flex: 1; min-width: 0; }
.dca-list-title { font-size: 14px; font-weight: 700; color: var(--text-1); }
.dca-list-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.dca-list-arrow { color: var(--text-3); }

/* ── Grid ── */
.dca-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dca-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
@media (max-width: 640px) { .dca-grid-2, .dca-grid-3 { grid-template-columns: 1fr; } }

/* ── Stat Kacheln ── */
.dca-stat {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px; text-align: center;
  box-shadow: var(--shadow);
}
.dca-stat-num { font-size: 32px; font-weight: 800; color: var(--dca); line-height: 1; }
.dca-stat-label { font-size: 12px; color: var(--text-3); margin-top: 6px;
                  font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* ── Buttons ── */
.dca-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; font-family: inherit;
  text-decoration: none; transition: all .14s;
}
.dca-btn-primary { background: var(--dca); color: #fff; border-color: var(--dca); }
.dca-btn-primary:hover { filter: brightness(.9); }
.dca-btn-ghost { background: var(--surface); color: var(--text-1); border-color: var(--border); }
.dca-btn-ghost:hover { border-color: var(--text-3); }

/* ── Badge ── */
.dca-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
  background: var(--dca-light); color: var(--dca);
}

/* ── Form ── */
.dca-field { margin-bottom: 16px; }
.dca-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.dca-input, .dca-select, .dca-textarea {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 14px; color: var(--text-1); background: var(--surface);
  font-family: inherit; appearance: none;
  transition: border-color .14s, box-shadow .14s;
}
.dca-input:focus, .dca-select:focus, .dca-textarea:focus {
  outline: none; border-color: var(--dca);
  box-shadow: 0 0 0 3px var(--dca-light);
}

/* ── Search Bar ── */
.dca-search {
  position: relative; margin-bottom: 20px;
}
.dca-search input {
  width: 100%; padding: 11px 14px 11px 42px;
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  font-size: 14px; background: var(--surface); color: var(--text-1);
  font-family: inherit;
}
.dca-search input:focus { outline: none; border-color: var(--dca); }
.dca-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none;
}

/* ── Filter Chips ── */
.dca-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.dca-chip {
  padding: 6px 14px; border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-2);
  cursor: pointer; background: var(--surface); text-decoration: none;
  transition: all .12s;
}
.dca-chip:hover, .dca-chip.active {
  background: var(--dca); border-color: var(--dca); color: #fff;
}

/* ── Alert ── */
.dca-alert {
  padding: 12px 16px; border-radius: var(--radius);
  border: 1.5px solid; font-size: 14px; margin-bottom: 16px;
}
.dca-alert-success { background: #f0fdf4; border-color: #86efac; color: #166534; }
.dca-alert-error   { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.dca-alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* ── Empty State ── */
.dca-empty { text-align: center; padding: 48px 24px; color: var(--text-3); }
.dca-empty svg { opacity: .35; margin-bottom: 12px; }
.dca-empty-text { font-size: 15px; }

/* ── Pagination ── */
.dca-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.dca-pagination a, .dca-pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--border); color: var(--text-2); background: var(--surface);
  transition: all .12s;
}
.dca-pagination a:hover { border-color: var(--dca); color: var(--dca); }
.dca-pagination .current { background: var(--dca); border-color: var(--dca); color: #fff; }

/* ── Status Dot ── */
.dca-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.dca-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.dca-status-yes::before { background: #22c55e; }
.dca-status-no::before  { background: #ef4444; }
.dca-status-wait::before{ background: #f59e0b; }

/* ── Difficulty Bars ── */
.dca-diff { display: flex; gap: 3px; align-items: center; }
.dca-diff-bar { width: 18px; height: 7px; border-radius: 4px; background: var(--border); }
.dca-diff-bar.on { background: var(--dca); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .dca-page { padding: 16px 14px 48px; }
  .dca-page-header { padding: 18px 18px; }
  .dca-page-header h1 { font-size: 20px; }
}
