/* Labaround Design Tokens — Plugin CSS'lerine ekle */
/* Bu blok her plugin CSS dosyasının EN BAŞINA gelecek */

:root {
  /* Tokens zaten Customizer'da tanımlı, burada sadece
     plugin scope'unda erişilebilir kılmak için referans */
  --lb-navy-900:  #0a1a32;
  --lb-navy-700:  #16325e;
  --lb-navy-600:  #1e4280;
  --lb-accent:    #00c2a8;
  --lb-accent-h:  #00dbbe;
  --lb-gold:      #f0b429;
  --lb-white:     #ffffff;
  --lb-off:       #f6f8fb;
  --lb-gray-200:  #dde3ed;
  --lb-gray-400:  #8fa0bb;
  --lb-gray-600:  #4d637f;
  --lb-text:      #0f1c2e;
  --lb-font-head: 'Syne', sans-serif;
  --lb-font-body: 'IBM Plex Sans', sans-serif;
  --lb-font-mono: 'IBM Plex Mono', monospace;
  --lb-radius:    10px;
  --lb-radius-lg: 18px;
  --lb-shadow:    0 4px 20px rgba(10,26,50,.12);
  --lb-transition:.22s cubic-bezier(.4,0,.2,1);
}


/* ── Labaround Catalog — Shared Styles ─────────────────────────── */

/* Admin wrap */
.lbc-admin-wrap { max-width: 1100px; }
.lbc-admin-cards { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 20px; }
.lbc-admin-card { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 20px 24px; min-width: 260px; }
.lbc-admin-card h3 { margin-top: 0; }
.lbc-admin-card ul { padding-left: 16px; }

/* Meta box */
.lbc-meta-box .lbc-section { margin-bottom: 16px; }
.lbc-meta-box h3 { margin: 0 0 4px; font-size: 13px; }
.lbc-repeater-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.lbc-repeater-row input { flex: 1; }

/* Status badges */
.lbc-status { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.lbc-status--active  { background: #d1fae5; color: #065f46; }
.lbc-status--pending { background: #fef3c7; color: #92400e; }

/* Table */
.lbc-table { border-collapse: collapse; width: 100%; }
.lbc-table th, .lbc-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #eee; font-size: 13px; }
.lbc-table thead th { background: #f9f9f9; font-weight: 600; }
.lbc-actions { display: flex; gap: 6px; }

/* ── Vendor Dashboard ───────────────────────────────────────────── */
.lbc-vendor-dashboard { padding: 20px 0; }
.lbc-vendor-dashboard h2 { font-size: 20px; margin-bottom: 4px; }
#lbc-vendor-form-wrap { background: #f8f9fa; border: 1px solid #ddd; border-radius: 8px; padding: 20px 24px; margin: 20px 0; }
#lbc-vendor-form .form-table th { width: 180px; padding: 12px 0; }
#lbc-vendor-form .form-table td { padding: 8px 0; }
.lbc-form-actions { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.lbc-save-notice { font-size: 13px; }
.lbc-save-notice.success { color: #065f46; }
.lbc-save-notice.error   { color: #991b1b; }

/* Country grid */
.lbc-country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px 16px; max-height: 240px; overflow-y: auto; border: 1px solid #ddd; border-radius: 4px; padding: 10px 12px; background: #fff; }
.lbc-country-item { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.lbc-country-item input { margin: 0; }

.lbc-brand-shortcut { margin-left: 6px; font-size: 12px; }

/* Product search */
#lbc-product-search { width: 300px; }
#lbc-product-results { position: absolute; background: #fff; border: 1px solid #ddd; border-radius: 4px; max-height: 200px; overflow-y: auto; z-index: 999; min-width: 300px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.lbc-product-result { padding: 8px 12px; cursor: pointer; font-size: 13px; }
.lbc-product-result:hover { background: #f0f0f0; }

/* ── Product Page Section ───────────────────────────────────────── */
.lbc-product-section { margin: 32px 0; }
.lbc-section-title { font-size: 18px; font-weight: 600; margin: 24px 0 12px; border-bottom: 2px solid #e5e7eb; padding-bottom: 8px; }

/* Highlights */
.lbc-highlight-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.lbc-highlight-pill { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; border-radius: 20px; padding: 4px 14px; font-size: 13px; font-weight: 500; }

/* Pending notice */
.lbc-pending-notice { background: #fef3c7; border-left: 4px solid #f59e0b; border-radius: 4px; padding: 12px 16px; margin-bottom: 20px; font-size: 14px; color: #92400e; }
.lbc-pending-notice strong { display: block; margin-bottom: 2px; }

/* Attributes table */
.lbc-attributes-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 16px; }
.lbc-attributes-table th { width: 200px; padding: 8px 12px; text-align: left; font-weight: 500; color: var(--color-text-secondary, #6b7280); background: #f9fafb; border-bottom: 1px solid #f0f0f0; }
.lbc-attributes-table td { padding: 8px 12px; border-bottom: 1px solid #f0f0f0; }
.lbc-attributes-table tr:last-child th,
.lbc-attributes-table tr:last-child td { border-bottom: none; }

/* Test methods (legacy) */
.lbc-method-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.lbc-method-list li { background: #f3f4f6; border: 1px solid #d1d5db; border-radius: 4px; padding: 3px 10px; font-size: 13px; font-family: monospace; }

/* Distributor table */
.lbc-dist-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 16px; }
.lbc-dist-table th { background: #f9fafb; padding: 10px 14px; text-align: left; font-weight: 600; border-bottom: 2px solid #e5e7eb; }
.lbc-dist-table td { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.lbc-dist-table tr:last-child td { border-bottom: none; }
.lbc-brand-ref { color: #6b7280; }
.lbc-vendor-note-label { color: #9ca3af; font-size: 11px; }

/* Relation badges */
.lbc-relation-badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 500; }
.lbc-relation--official_distributor { background: #d1fae5; color: #065f46; }
.lbc-relation--local_dealer         { background: #e0f2fe; color: #0369a1; }
.lbc-relation--service_partner      { background: #fef3c7; color: #92400e; }

/* Linked labs */
.lbc-labs-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lbc-labs-list li a { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; border-radius: 6px; padding: 6px 14px; text-decoration: none; font-size: 13px; display: inline-block; }
.lbc-labs-list li a:hover { background: #ede9fe; }

/* Leaflet map override */
#lbc-map .leaflet-popup-content { font-size: 13px; line-height: 1.5; }
