/* ── WiTG Connect — Members Directory ── */

/* ── Hero Banner ── */
.hero-banner {
    position: relative;
    padding: 180px 2rem 100px;
    text-align: center;
    overflow: hidden;
    background: #000;
}

/* Background image layer — grayscale */
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/meet-1/web/DSC_0058.jpg') center 50% / cover no-repeat;
    filter: grayscale(100%);
    opacity: 0.32;
}

/* Red accent gradient overlay */
.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(252, 0, 0, 0.18) 0%, transparent 50%);
}

/* Network art SVG overlay */
.hero-network-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-banner-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--red);
    border: none;
    padding: 0.35rem 1.1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: 4.5rem;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto;
}

.hero-banner-compact {
    padding: 150px 2rem 70px;
}

.hero-banner-compact .hero-title {
    font-size: 3.6rem;
    margin-bottom: 0.6rem;
}

.hero-tagline-red {
    color: var(--red) !important;
    font-weight: 600;
    opacity: 1;
}

/* ── Guest Landing ── */
.guest-landing {
    max-width: 520px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    text-align: center;
}

.guest-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.guest-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.guest-stat-card .stat-number {
    font-family: 'DM Serif Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #000;
    height: auto;
    line-height: 1.2;
}

.guest-stat-card .stat-label {
    font-size: 0.7rem;
    color: #888;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 0.2rem;
    font-weight: 600;
}

.guest-cta {
    text-align: center;
}

.guest-headline {
    color: #111;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* ── How It Works Steps ── */
.guest-steps {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
    text-align: left;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.guest-step {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
}

.guest-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.guest-sign-in-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    border: none;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.02em;
    border-radius: 8px;
}

.guest-sign-in-btn:hover {
    background: var(--red);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(252, 0, 0, 0.25);
}

.guest-note {
    font-size: 0.8rem !important;
    color: var(--text-muted);
    margin-top: 1rem !important;
}

/* ── Authenticated — Dashboard ── */

/* ── Community Stats — Clean Inline ── */
.community-stats {
    max-width: 900px;
    margin: 2.5rem auto 2rem;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: opacity 0.2s;
}

.stat-number {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    height: 2.4rem;
    line-height: 2.4rem;
}

.stat-label {
    font-size: 0.65rem;
    color: #888;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 0.15rem;
    line-height: 1.3;
    text-align: center;
    font-weight: 600;
}

.stat-card-clickable {
    cursor: pointer;
    transition: opacity 0.2s;
}

.stat-card-clickable:hover {
    opacity: 0.6;
}

.stat-card-active .stat-number {
    color: var(--red);
}

.stat-card-active .stat-label {
    color: var(--red);
}

.stat-card-link {
    cursor: pointer;
    transition: opacity 0.2s;
}

.stat-card-link:hover {
    opacity: 0.6;
}

.stat-card-link .stat-number {
    font-size: 1.2rem;
    height: 2.4rem;
    line-height: 2.4rem;
    color: #000;
}

.stat-card-link .stat-label {
    color: var(--red);
    font-weight: 600;
}

/* ── Search & Filter Bar ── */
.search-bar {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    padding: 0 2rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.7rem 1rem;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.search-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.search-select {
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    min-width: 160px;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.search-select:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

/* ── Smart Matches Section ── */
.matches-section {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.matches-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.matches-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.matches-row::-webkit-scrollbar {
    height: 4px;
}

.matches-row::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.match-card {
    flex-shrink: 0;
    width: 240px;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    scroll-snap-align: start;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.match-card:hover {
    border-color: #000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.match-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.match-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.match-card-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.match-card-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.match-card-location {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.match-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.match-card-tags .tag-pill {
    font-size: 0.7rem;
}

.matches-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 1rem 0;
}

.matches-divider {
    margin: 1.5rem 0;
}

/* ── Member Grid ── */
.member-grid {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.member-card {
    background: #fff;
    border: 1.5px solid #d0d0d0;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.25s;
    position: relative;
}

.member-card:hover {
    border-color: #000;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.member-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 2px solid #f0f0f0;
}

.member-card-initial {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.member-card-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: #000;
    font-weight: 700;
}

.member-card-pronoun {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: #888;
}

.member-card-tagline {
    font-size: 0.8rem;
    color: #444;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.member-card-location {
    font-size: 0.75rem;
    color: #555;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.member-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.member-card-tags .tag-pill {
    font-size: 0.7rem;
}

/* ── Empty & Auth States ── */
.members-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.members-empty h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.members-empty p {
    color: var(--text-muted);
}

.auth-required {
    text-align: center;
    padding: 120px 2rem 4rem;
    max-width: 500px;
    margin: 0 auto;
}

.auth-required h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.auth-required p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.result-count {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Community Insights Section ── */
.insights-section {
    max-width: 900px;
    margin: 1.5rem auto 0;
    padding: 0 2rem 4rem;
}

.insights-section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.insights-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.insights-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.insight-card {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.insight-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.chart-wrapper {
    position: relative;
    height: 350px;
}

/* ── Unmatched Help Needs ── */
.unmatched-section {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.unmatched-section h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.unmatched-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.unmatched-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.unmatched-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: #f8f8f8;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.unmatched-tag:hover {
    border-color: #000;
    color: #000;
    background: #f0f0f0;
}

.unmatched-tag .unmatched-count {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-left: 0.3rem;
}

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

    .community-stats {
        gap: 1.5rem;
    }

    .insights-container {
        grid-template-columns: 1fr;
    }

    .chart-wrapper {
        height: 300px;
    }
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .hero-banner {
        padding: 130px 1.5rem 60px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .hero-badge {
        font-size: 0.55rem;
        margin-bottom: 1rem;
    }

    .hero-banner-compact {
        padding: 100px 1.5rem 30px;
    }

    .hero-banner-compact .hero-title {
        font-size: 2rem;
    }

    .guest-landing {
        padding: 2rem 1.5rem 3rem;
    }

    .guest-stats {
        gap: 2rem;
    }

    .guest-stat-card .stat-number {
        font-size: 2.2rem;
    }

    .guest-sign-in-btn {
        width: 100%;
        padding: 0.85rem 1.5rem;
    }

    .member-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        padding: 0 1rem 2rem;
    }

    .member-card {
        padding: 1rem;
        border-radius: 10px;
    }

    .member-card-avatar {
        width: 42px;
        height: 42px;
        margin-bottom: 0.5rem;
    }

    .member-card-initial {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .member-card-name {
        font-size: 0.9rem;
    }

    .member-card-tagline {
        font-size: 0.7rem;
        -webkit-line-clamp: 1;
    }

    .member-card-location {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
    }

    .member-card-tags .tag-pill {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }

    .community-stats {
        gap: 1rem;
        padding: 0 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
        height: 1.8rem;
        line-height: 1.8rem;
    }

    .stat-label {
        font-size: 0.5rem;
        text-align: center;
    }

    .search-bar {
        flex-direction: column;
        padding: 0 1rem 1rem;
    }

    .search-select {
        min-width: auto;
    }

    .insights-section {
        padding: 0 1rem 2rem;
    }

    .insights-section h2 {
        font-size: 1.4rem;
    }
}
