/*
 * WAWT Membership — Public Stylesheet
 * Brand: Black (#000) · Gold (#FBC363) · White (#fff)
 * Sharp edges (no border-radius). Clean, editorial aesthetic.
 */

/* ── Reset ───────────────────────────────────────────────────────────────── */
.wawt-directory *, .wawt-dash *, .wawt-profile-form-wrap * { box-sizing: border-box; }

/* ── Shared buttons ──────────────────────────────────────────────────────── */
.wawt-btn,.wawt-dir-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; font-size: 14px; font-weight: 700;
  border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: background .15s, color .15s, border-color .15s;
  line-height: 1; font-family: inherit;
}
.wawt-btn-primary,.wawt-dir-btn--primary { background: #FBC363; color: #000; border-color: #FBC363; }
.wawt-btn-primary:hover,.wawt-dir-btn--primary:hover { background: #f0b040; border-color: #f0b040; color: #000; }
.wawt-btn-secondary,.wawt-dir-btn--outline { background: #fff; color: #000; border-color: #000; }
.wawt-btn-secondary:hover,.wawt-dir-btn--outline:hover { background: #000; color: #fff; }
.wawt-dir-btn--ghost { background: transparent; color: #666; border-color: transparent; font-weight: 600; }
.wawt-dir-btn--ghost:hover { color: #000; }

/* ── Shared inputs ───────────────────────────────────────────────────────── */
.wawt-input,.wawt-select,.wawt-textarea,.wawt-dir-input,.wawt-dir-select {
  width: 100%; padding: 10px 14px; font-size: 14px;
  border: 1.5px solid #ccc; background: #fff; color: #111;
  transition: border-color .15s; font-family: inherit; outline: none;
}
.wawt-input:focus,.wawt-select:focus,.wawt-textarea:focus,
.wawt-dir-input:focus,.wawt-dir-select:focus { border-color: #FBC363; box-shadow: 0 0 0 3px rgba(251,195,99,.2); }
.wawt-dir-input--sm { max-width: 200px; }
.wawt-dir-input--xs { padding: 7px 10px; font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════════════════
   DIRECTORY
═══════════════════════════════════════════════════════════════════════════ */
.wawt-directory { max-width: 1200px; margin: 0 auto; padding: 0 16px 40px; }

/* ── Filter bar ──────────────────────────────────────────────────────────── */
.wawt-dir-filters {
  background: #fff; border: 1.5px solid #e5e5e5;
  padding: 20px 24px; margin-bottom: 32px;
}
.wawt-dir-filter-top {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.wawt-dir-search-wrap {
  position: relative; flex: 1; min-width: 240px;
}
.wawt-dir-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #999; width: 16px; height: 16px; pointer-events: none;
}
.wawt-dir-search-wrap .wawt-dir-input { padding-left: 38px; }
.wawt-dir-inline-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wawt-dir-inline-filters .wawt-dir-input--sm,
.wawt-dir-inline-filters .wawt-dir-select { min-width: 160px; max-width: 200px; }

/* Advanced panel */
.wawt-dir-advanced {
  border-top: 1.5px solid #e5e5e5; margin-top: 16px; padding-top: 20px;
}
.wawt-dir-advanced-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px;
}
.wawt-dir-filter-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: #666; margin: 0 0 10px;
}
.wawt-dir-advanced-actions { margin-top: 16px; border-top: 1px solid #eee; padding-top: 12px; }

/* Expertise dropdown */
.wawt-dir-dropdown { position: relative; }
.wawt-dir-dropdown-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 10px 14px; font-size: 14px; font-family: inherit;
  border: 1.5px solid #ccc; background: #fff; color: #111; cursor: pointer;
  text-align: left; font-weight: 600;
}
.wawt-dir-dropdown-trigger:focus { border-color: #FBC363; outline: none; }
.wawt-dir-dropdown-panel {
  position: absolute; top: calc(100% + 2px); left: 0; right: 0;
  background: #fff; border: 1.5px solid #ccc; z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,.1); display: none;
}
.wawt-dir-dropdown-panel.is-open { display: block; }
.wawt-dir-dropdown-search { padding: 8px; border-bottom: 1px solid #eee; }
.wawt-dir-dropdown-search .wawt-dir-input { width: 100%; }
.wawt-dir-dropdown-list { max-height: 220px; overflow-y: auto; padding: 4px; }

/* Check items (shared for dropdown + collab) */
.wawt-dir-check-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  font-size: 13px; cursor: pointer; color: #333;
}
.wawt-dir-check-item:hover { background: #fffbf0; }
.wawt-dir-check-item input { accent-color: #FBC363; width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
.wawt-dir-check-group { display: flex; flex-direction: column; gap: 2px; }

/* Active filter chips */
.wawt-dir-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.wawt-filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #000; color: #FBC363; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border: none; cursor: pointer;
}
.wawt-filter-chip svg { flex-shrink: 0; }

/* ── Results ─────────────────────────────────────────────────────────────── */
.wawt-dir-results {}
.wawt-dir-meta { margin-bottom: 16px; }
.wawt-result-count { font-size: 13px; color: #888; font-weight: 600; }

/* Loading spinner */
.wawt-dir-spinner { display: flex; flex-direction: column; align-items: center; padding: 60px 0; gap: 16px; color: #888; }
.wawt-spinner {
  width: 32px; height: 32px; border: 3px solid #eee;
  border-top-color: #FBC363; border-radius: 50%;
  animation: wawt-spin .7s linear infinite;
}
@keyframes wawt-spin { to { transform: rotate(360deg); } }

/* ── Member card grid ────────────────────────────────────────────────────── */
.wawt-directory-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.wawt-directory-grid.wawt-loading { opacity: .5; pointer-events: none; }

/* ── Member card ─────────────────────────────────────────────────────────── */
.wawt-member-card {
  background: #fff; border: 1.5px solid #e5e5e5;
  display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.wawt-member-card:hover { border-color: #FBC363; box-shadow: 0 2px 16px rgba(251,195,99,.2); }

.wawt-card-top {
  position: relative; background: #000; padding: 24px 20px 0;
  display: flex; justify-content: center;
}
.wawt-card-badges {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-end;
}
.wawt-card-avatar {
  width: 80px; height: 80px; object-fit: cover;
  border: 3px solid #FBC363; margin-bottom: -24px; position: relative; z-index: 1;
}
.wawt-card-avatar--initials {
  width: 80px; height: 80px; background: #FBC363;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid #FBC363; margin-bottom: -24px; position: relative; z-index: 1;
}
.wawt-card-avatar--initials span { font-size: 26px; font-weight: 900; color: #000; line-height: 1; }

.wawt-card-body { padding: 32px 20px 16px; flex: 1; }
.wawt-card-name { font-size: 17px; font-weight: 800; color: #000; margin: 0 0 4px; line-height: 1.3; }
.wawt-card-pronouns { font-size: 12px; font-weight: 400; color: #888; }
.wawt-card-role { font-size: 13px; color: #555; margin: 0 0 4px; }
.wawt-card-loc { font-size: 12px; color: #888; display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.wawt-card-bio { font-size: 13px; color: #444; line-height: 1.6; margin: 0 0 12px; }
.wawt-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wawt-card-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; background: #fff8e6; color: #000; border: 1px solid #FBC363; text-transform: uppercase; letter-spacing: .04em; }
.wawt-card-tag--more { background: #f5f5f5; color: #666; border-color: #ccc; }

.wawt-card-badge { font-size: 10px; font-weight: 800; padding: 3px 8px; text-transform: uppercase; letter-spacing: .06em; }
.wawt-card-badge--tier { background: #FBC363; color: #000; }
.wawt-card-badge--mentor { background: #000; color: #FBC363; }

.wawt-card-footer { padding: 12px 20px; border-top: 1px solid #f0f0f0; }
.wawt-card-socials { display: flex; gap: 8px; }
.wawt-card-social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 1.5px solid #e5e5e5;
  color: #555; text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.wawt-card-social-btn:hover { background: #FBC363; color: #000; border-color: #FBC363; }

/* No results */
.wawt-no-results { grid-column: 1/-1; text-align: center; padding: 60px 24px; color: #888; }
.wawt-no-results p { margin: 8px 0 0; font-size: 16px; }
.wawt-no-results-sub { font-size: 13px; color: #aaa; }

/* Pagination */
.wawt-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1.5px solid #e5e5e5; }
.wawt-page-info { font-size: 13px; color: #888; }

/* Directory gate */
.wawt-directory-gate { text-align: center; padding: 60px 24px; border: 2px dashed #e5e5e5; }
.wawt-directory-gate p { font-size: 16px; color: #555; margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════════════════════════════
   MEMBER DASHBOARD
═══════════════════════════════════════════════════════════════════════════ */
.wawt-dash { max-width: 1000px; margin: 0 auto; padding: 0 16px 60px; font-family: inherit; }
.wawt-dash-gate { padding: 40px; border: 2px dashed #e5e5e5; text-align: center; }

/* Hero */
.wawt-dash-hero {
  position: relative; background: #000; padding: 40px 36px 32px; margin-bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.wawt-dash-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #FBC363; }
.wawt-dash-hero-content { display: flex; align-items: flex-end; gap: 24px; }
.wawt-dash-avatar-wrap { position: relative; flex-shrink: 0; }
.wawt-dash-avatar { width: 96px; height: 96px; object-fit: cover; border: 3px solid #FBC363; display: block; }
.wawt-dash-avatar--initials { width: 96px; height: 96px; background: #FBC363; display: flex; align-items: center; justify-content: center; border: 3px solid #FBC363; }
.wawt-dash-avatar--initials span { font-size: 32px; font-weight: 900; color: #000; }
.wawt-dash-status-dot { position: absolute; bottom: 4px; right: 4px; width: 14px; height: 14px; background: #22c55e; border: 2px solid #000; border-radius: 50%; }
.wawt-dash-hero-info { color: #fff; }
.wawt-dash-name { font-size: 24px; font-weight: 900; color: #fff; margin: 0 0 6px; }
.wawt-dash-pronouns { font-size: 14px; font-weight: 400; color: #aaa; }
.wawt-dash-role { font-size: 14px; color: #FBC363; margin: 0 0 4px; }
.wawt-dash-location { font-size: 13px; color: #888; display: flex; align-items: center; gap: 4px; margin: 0; }
.wawt-dash-edit-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: transparent; color: #FBC363;
  border: 1.5px solid #FBC363; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: background .15s, color .15s; flex-shrink: 0; align-self: flex-start;
}
.wawt-dash-edit-btn:hover { background: #FBC363; color: #000; }

/* Stats row */
.wawt-dash-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
  border: 1.5px solid #e5e5e5; border-top: none; margin-bottom: 28px;
  background: #fff;
}
.wawt-dash-stat {
  padding: 20px 24px; display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid #e5e5e5;
}
.wawt-dash-stat:last-child { border-right: none; }
.wawt-dash-stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #888; }
.wawt-dash-stat-value { font-size: 16px; font-weight: 800; color: #000; }
.wawt-dash-stat-value--active { color: #16a34a; }
.wawt-dash-stat-value--inactive { color: #dc2626; }

/* Grid */
.wawt-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Cards */
.wawt-dash-card { background: #fff; border: 1.5px solid #e5e5e5; }
.wawt-dash-card-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #000; margin: 0; padding: 16px 20px; border-bottom: 1.5px solid #e5e5e5; background: #000; color: #FBC363; }

/* Nav items */
.wawt-dash-nav { display: flex; flex-direction: column; }
.wawt-dash-nav-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  text-decoration: none; color: #111; border-bottom: 1px solid #f0f0f0;
  transition: background .1s;
}
.wawt-dash-nav-item:last-child { border-bottom: none; }
.wawt-dash-nav-item:hover { background: #fffbf0; }
.wawt-dash-nav-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.wawt-dash-nav-text { flex: 1; }
.wawt-dash-nav-text strong { display: block; font-size: 14px; font-weight: 700; }
.wawt-dash-nav-text small { font-size: 12px; color: #888; }
.wawt-dash-nav-item--logout { color: #dc2626; }
.wawt-dash-nav-item--logout:hover { background: #fff5f5; }
.wawt-dash-empty { padding: 24px 20px; color: #888; font-size: 14px; margin: 0; }

/* Order list */
/* ── Order History table ──────────────────────────────────────── */
.wawt-order-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wawt-order-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wawt-order-table thead th { background: #000; color: #FBC363; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 10px 14px; text-align: left; white-space: nowrap; }
.wawt-order-table tbody tr { border-bottom: 1px solid #f0f0f0; transition: background .15s; }
.wawt-order-table tbody tr:last-child { border-bottom: none; }
.wawt-order-table tbody tr:hover { background: #fafafa; }
.wawt-order-table td { padding: 11px 14px; vertical-align: middle; color: #1a1a1a; }
.wawt-order-code { font-family: monospace; font-weight: 700; color: #000; font-size: 13px; }
.wawt-order-status { display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 9px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.wawt-order-status--success { background: #dcfce7; color: #166534; }
.wawt-order-status--pending { background: #fef9c3; color: #854d0e; }

/* ═══════════════════════════════════════════════════════════════════════════
   MEMBER PROFILE FORM
═══════════════════════════════════════════════════════════════════════════ */
.wawt-profile-form-wrap { max-width: 800px; margin: 0 auto; padding: 24px 16px; }
.wawt-profile-title { font-size: 26px; font-weight: 900; color: #000; margin: 0 0 8px; }
.wawt-profile-subtitle { font-size: 14px; color: #666; margin: 0 0 28px; }

.wawt-profile-messages { display: none; padding: 14px 18px; margin-bottom: 20px; font-size: 14px; line-height: 1.5; border-left: 4px solid; }
.wawt-profile-messages.wawt-message--success { background: #f0fdf4; border-color: #22c55e; color: #166534; }
.wawt-profile-messages.wawt-message--error { background: #fef2f2; border-color: #ef4444; color: #991b1b; }

.wawt-profile-section { background: #fff; border: 1.5px solid #e5e5e5; padding: 24px 28px; margin-bottom: 20px; }
.wawt-section-title { font-size: 11px; font-weight: 800; color: #FBC363; background: #000; text-transform: uppercase; letter-spacing: .1em; margin: -24px -28px 20px; padding: 12px 20px; }
.wawt-section-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.wawt-field--textarea,.wawt-field--expertise_multiselect,.wawt-field--collab_checkboxes,.wawt-field--image_upload { grid-column: 1/-1; }
.wawt-field { display: flex; flex-direction: column; gap: 6px; }
.wawt-field label { font-size: 12px; font-weight: 700; color: #333; text-transform: uppercase; letter-spacing: .05em; }
.wawt-word-count { font-size: 12px; color: #888; text-align: right; }
.wawt-word-count.wawt-over-limit,.wawt-textarea.wawt-over-limit { color: #dc2626; border-color: #dc2626; }
.wawt-multiselect,.wawt-checkboxes { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 6px 16px; padding: 14px; border: 1.5px solid #e5e5e5; max-height: 220px; overflow-y: auto; }
.wawt-checkbox-label,.wawt-radio-label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.wawt-checkbox-label input,.wawt-radio-label input { accent-color: #FBC363; width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
.wawt-radio-group { display: flex; gap: 20px; }
.wawt-image-upload-wrap { display: flex; flex-direction: column; gap: 12px; }
.wawt-profile-picture-preview { width: 100px; height: 100px; object-fit: cover; border: 3px solid #FBC363; }
.wawt-field-help { font-size: 12px; color: #888; margin: 4px 0 0; }
.wawt-field--email-readonly { grid-column: 1/-1; }
.wawt-field--email-readonly .wawt-input[disabled] {
  background: #f5f5f5; color: #888; border-color: #e0e0e0; cursor: not-allowed; opacity: 1;
}
.wawt-profile-submit { display: flex; align-items: center; gap: 16px; padding-top: 20px; border-top: 2px solid #e5e5e5; margin-top: 4px; }
.wawt-saving-indicator { font-size: 13px; color: #888; font-style: italic; display: none; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .wawt-dir-advanced-inner { grid-template-columns: 1fr; }
  .wawt-dir-filter-top { flex-direction: column; }
  .wawt-dir-inline-filters { width: 100%; }
  .wawt-dir-inline-filters .wawt-dir-input--sm,
  .wawt-dir-inline-filters .wawt-dir-select { max-width: 100%; flex: 1; min-width: 0; }
  .wawt-directory-grid { grid-template-columns: 1fr; }
  .wawt-dash-grid { grid-template-columns: 1fr; }
  .wawt-dash-stats { grid-template-columns: 1fr 1fr; }
  .wawt-dash-stat { border-right: none; border-bottom: 1px solid #e5e5e5; }
  .wawt-dash-hero { padding: 24px 20px 28px; }
  .wawt-section-fields { grid-template-columns: 1fr; }
  .wawt-field--textarea,.wawt-field--expertise_multiselect,.wawt-field--collab_checkboxes,.wawt-field--image_upload { grid-column: 1; }
}
@media (max-width: 480px) {
  .wawt-dash-hero-content { flex-direction: column; align-items: flex-start; }
  .wawt-dash-stats { grid-template-columns: 1fr; }
  .wawt-radio-group { flex-direction: column; gap: 10px; }

  /* Order table: collapse to labelled cards on small screens */
  .wawt-order-table thead { display: none; }
  .wawt-order-table,
  .wawt-order-table tbody,
  .wawt-order-table tr,
  .wawt-order-table td { display: block; width: 100%; }
  .wawt-order-table tbody tr { border: 1px solid #e5e5e5; margin-bottom: 10px; }
  .wawt-order-table tbody tr:last-child { border-bottom: 1px solid #e5e5e5; }
  .wawt-order-table td { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-bottom: 1px solid #f5f5f5; }
  .wawt-order-table td:last-child { border-bottom: none; }
  .wawt-order-table td::before { content: attr(data-label); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #888; flex-shrink: 0; margin-right: 8px; }
}
