/* WordPress-MyHome-Style Overrides für ADAM-Immoep
 * Aus Memory: project_adam_immoep_ui_target (schwarze Sidebar, gelbe Akzente)
 * Wird in base.html nach Tailwind geladen — überschreibt selektiv.
 */

:root {
  --adam-black: #0d1117;
  --adam-dark: #161b22;
  --adam-border: #30363d;
  --adam-text: #c9d1d9;
  --adam-yellow: #FBBF24;
  --adam-yellow-dark: #F59E0B;
  --adam-yellow-light: #FCD34D;
  --adam-bg: #f5f7fa;
  --adam-surface: #ffffff;
}

body {
  background-color: var(--adam-bg);
  color: #1f2937;
}

/* ===== Sidebar im WP-MyHome-Style ===== */
.wp-sidebar {
  background: linear-gradient(180deg, #0d1117 0%, #1a1f29 100%);
  box-shadow: 4px 0 12px rgba(0,0,0,0.08);
}

.wp-sidebar a, .wp-sidebar button {
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}

.wp-sidebar a:hover, .wp-sidebar a.active {
  background: rgba(251, 191, 36, 0.08);
  border-left-color: var(--adam-yellow);
  color: var(--adam-yellow) !important;
}

.wp-sidebar a.active {
  background: rgba(251, 191, 36, 0.12);
  border-left-width: 4px;
}

/* ===== Topbar wie WP-Admin ===== */
.wp-topbar {
  background: var(--adam-surface);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* ===== Cards wie WP-Postboxen ===== */
.wp-card {
  background: var(--adam-surface);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.wp-card:hover {
  border-color: var(--adam-yellow);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.12);
}

.wp-card-header {
  border-bottom: 2px solid #f3f4f6;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wp-card-title {
  font-weight: 600;
  color: var(--adam-black);
  font-size: 1.05rem;
}

/* ===== Tabellen wie WP-Listen ===== */
.wp-table {
  width: 100%;
  border-collapse: collapse;
}

.wp-table thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

.wp-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.wp-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.1s;
}

.wp-table tbody tr:hover {
  background: #fefce8;  /* sehr leichter gelber Hover */
}

.wp-table td {
  padding: 0.875rem 1rem;
}

/* ===== Buttons wie WP-Admin ===== */
.wp-btn-primary {
  background: var(--adam-yellow);
  color: var(--adam-black);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s;
}

.wp-btn-primary:hover {
  background: var(--adam-yellow-dark);
}

.wp-btn-secondary {
  background: var(--adam-surface);
  color: var(--adam-black);
  border: 1px solid var(--adam-border);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s;
}

.wp-btn-secondary:hover {
  background: #f3f4f6;
  border-color: var(--adam-yellow);
}

.wp-btn-danger {
  background: #ef4444;
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* ===== Badges ===== */
.wp-badge {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.wp-badge-success { background: #d1fae5; color: #065f46; }
.wp-badge-warning { background: #fef3c7; color: #92400e; }
.wp-badge-danger { background: #fee2e2; color: #991b1b; }
.wp-badge-info { background: #dbeafe; color: #1e40af; }
.wp-badge-yellow {
  background: var(--adam-yellow);
  color: var(--adam-black);
}

/* ===== Form-Elemente im WP-Style ===== */
.wp-input, .wp-select, .wp-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: var(--adam-surface);
  font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wp-input:focus, .wp-select:focus, .wp-textarea:focus {
  outline: none;
  border-color: var(--adam-yellow-dark);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

/* ===== Notices ===== */
.wp-notice {
  padding: 0.875rem 1rem;
  border-left: 4px solid;
  margin-bottom: 1rem;
  border-radius: 0 4px 4px 0;
}

.wp-notice-success {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #14532d;
}

.wp-notice-warning {
  background: #fefce8;
  border-color: var(--adam-yellow);
  color: #713f12;
}

.wp-notice-error {
  background: #fef2f2;
  border-color: #dc2626;
  color: #7f1d1d;
}

/* ===== Match-Score-Pill (Immoep-spezifisch) ===== */
.match-score-pill {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--adam-yellow) 0%, var(--adam-yellow-dark) 100%);
  color: var(--adam-black);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  box-shadow: 0 1px 3px rgba(251, 191, 36, 0.3);
}

/* ===== WP-Admin-Style Section-Header ===== */
.wp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.wp-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--adam-black);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== Loading-Skeleton ===== */
.wp-skeleton {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Print-Styles für Reports ===== */
@media print {
  .wp-sidebar, .wp-topbar, .no-print { display: none !important; }
  body { background: white; }
}
