/* =====================================================
   ARF — Workshop Directory  (prefix: wd-*)
   ===================================================== */

/* ── Hero ────────────────────────────────────────────── */
.wd-hero {
    background: linear-gradient(135deg, #21252f 0%, #171a21 100%);
    padding: 56px 0 52px;
    position: relative;
    overflow: hidden;
}

.wd-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138,26,31,0.22) 0%, transparent 68%);
    pointer-events: none;
}

.wd-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138,26,31,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.wd-hero-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.wd-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(138,26,31,0.2);
    border: 1px solid rgba(138,26,31,0.35);
    border-radius: 100px;
    padding: 0.25rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    margin-bottom: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wd-hero-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 2.125rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.wd-hero-sub {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
    max-width: 480px;
    line-height: 1.6;
}

/* Hero stat counters */
.wd-hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1rem 1.5rem;
    flex-shrink: 0;
    align-self: center;
}

.wd-hero-stat {
    text-align: center;
    padding: 0 1.25rem;
}

.wd-hero-stat + .wd-hero-stat {
    border-left: 1px solid rgba(255,255,255,0.12);
}

.wd-hero-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    display: block;
}

.wd-hero-stat-label {
    font-size: 0.625rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-top: 4px;
}

/* Search bar in hero */
.wd-search-wrap {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.625rem;
    max-width: 680px;
}

.wd-search-field {
    position: relative;
}

.wd-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 1rem;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.wd-search-input {
    width: 100%;
    height: 44px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
    padding: 0 0.875rem 0 2.5rem;
    transition: border-color 0.14s, background-color 0.14s;
}

.wd-search-input::placeholder { color: rgba(255,255,255,0.35); }

.wd-search-input:focus {
    outline: none;
    border-color: rgba(138,26,31,0.55);
    background-color: rgba(255,255,255,0.13);
    box-shadow: 0 0 0 3px rgba(138,26,31,0.15);
}

.wd-state-select {
    height: 44px;
    min-width: 160px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    padding: 0 2rem 0 0.875rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' fill='%23ffffff50' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    transition: border-color 0.14s, background-color 0.14s;
}

.wd-state-select option { background: #21252f; color: #fff; }

.wd-state-select:focus {
    outline: none;
    border-color: rgba(138,26,31,0.55);
    background-color: rgba(255,255,255,0.13);
    box-shadow: 0 0 0 3px rgba(138,26,31,0.15);
}

.wd-state-select.has-value {
    border-color: rgba(138,26,31,0.4);
    background-color: rgba(138,26,31,0.12);
}

.wd-search-clear-btn {
    height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.13s, color 0.13s;
}

.wd-search-clear-btn:hover {
    background: rgba(255,255,255,0.16);
    color: #fff;
}

/* ── Main results section ────────────────────────────── */
.wd-section {
    background: #f8f8f9;
    padding: 2rem 0 3.5rem;
}

.wd-section-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.wd-results-info {
    font-size: 0.875rem;
    color: #696665;
    margin: 0;
}

.wd-results-info strong { color: #24272c; }

/* Active filter chips */
.wd-chips {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-bottom: 1.125rem;
}

.wd-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(138,26,31,0.06);
    border: 1px solid rgba(138,26,31,0.2);
    border-radius: 100px;
    padding: 0.2rem 0.375rem 0.2rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #8a1a1f;
}

.wd-chip-x {
    background: rgba(138,26,31,0.1);
    border: none;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #8a1a1f;
    padding: 0;
    font-size: 0.625rem;
    transition: background 0.1s;
}
.wd-chip-x:hover { background: rgba(138,26,31,0.2); }

/* ── Grid ────────────────────────────────────────────── */
.wd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.125rem;
}

/* ── Workshop card ───────────────────────────────────── */
.wd-card {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    height: 100%;
}

.wd-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(36,39,44,0.1);
    border-color: transparent;
}

/* SIGNATURE: dark gradient card header — consistent with ARF workshop module */
.wd-card-head {
    background: linear-gradient(135deg, #21252f 0%, #171a21 100%);
    padding: 1.125rem 1.125rem 1rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.wd-card-head::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138,26,31,0.28) 0%, transparent 70%);
    pointer-events: none;
}

/* Initials avatar — dark gradient circle, white text */
.wd-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.wd-card-meta {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.wd-card-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.wd-card-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.wd-card-location i { font-size: 0.75rem; color: rgba(138,26,31,0.7); flex-shrink: 0; }

/* Verified badge on card head */
.wd-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(20,160,119,0.2);
    border: 1px solid rgba(20,160,119,0.35);
    border-radius: 100px;
    padding: 0.175rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: #5de8c5;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

/* Card body */
.wd-card-body {
    padding: 1rem 1.125rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

.wd-card-divider {
    height: 1px;
    background: #f2f2f2;
    margin-bottom: 0.875rem;
    margin-top: 0;
}

.wd-card-desc {
    font-size: 0.8125rem;
    color: #696665;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.wd-card-desc.is-placeholder {
    color: #b0b0b5;
    font-style: italic;
}

/* Request service CTA */
.wd-request-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #8a1a1f 0%, #24272c 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.14s;
    margin-top: auto;
}

.wd-request-btn:hover { opacity: 0.88; color: #fff; }

/* ── Empty state ─────────────────────────────────────── */
.wd-empty {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px dashed #e4e4e4;
    border-radius: 16px;
    padding: 64px 24px;
    text-align: center;
}

.wd-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(138,26,31,0.07);
    color: #8a1a1f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
}

.wd-empty-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #24272c;
    margin-bottom: 0.375rem;
}

.wd-empty-sub {
    font-size: 0.875rem;
    color: #696665;
    margin-bottom: 1.25rem;
}

.wd-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    background: #8a1a1f;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.12s;
    text-decoration: none;
}
.wd-empty-btn:hover { opacity: 0.87; color: #fff; }

/* ── Pagination ──────────────────────────────────────── */
.wd-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2.25rem;
}

/* ── Loading ─────────────────────────────────────────── */
.wd-grid-wrap { transition: opacity 0.22s; }
.wd-grid-wrap.is-loading { opacity: 0.4; pointer-events: none; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1199px) {
    .wd-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    .wd-hero-stats { align-self: flex-start; }
    .wd-search-wrap { max-width: 100%; }
}

@media (max-width: 767px) {
    .wd-hero { padding: 40px 0 44px; }
    .wd-hero-title { font-size: 1.625rem; }
    .wd-hero-inner { flex-direction: column; gap: 1.25rem; }
    .wd-hero-stats { align-self: stretch; justify-content: center; }
    .wd-search-wrap { grid-template-columns: 1fr; }
    .wd-state-select { min-width: auto; }
}

@media (max-width: 575px) {
    .wd-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .wd-card,
    .wd-grid-wrap,
    .wd-search-input,
    .wd-state-select { transition: none; }
}
