@charset "UTF-8";

.hvm-member-wrapper {
    --hvm-font-sans: "Inter", "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
    --hvm-font-heading: "Inter", "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}

.hvm-member-wrapper,
.hvm-member-wrapper button,
.hvm-member-wrapper input,
.hvm-member-wrapper select,
.hvm-member-wrapper textarea,
.hvm-member-wrapper table,
.hvm-member-wrapper .button,
.hvm-member-wrapper a {
    font-family: var(--hvm-font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.hvm-member-wrapper h1,
.hvm-member-wrapper h2,
.hvm-member-wrapper h3,
.hvm-member-wrapper h4,
.hvm-member-wrapper h5,
.hvm-member-wrapper h6,
.hvm-member-name,
.hvm-member-detail-name {
    font-family: var(--hvm-font-heading);
}

.hvm-member-wrapper {
    width: 100%;
    --hvm-grid-columns: 4;
    --hvm-card-shadow: 0 16px 24px rgba(15, 95, 126, 0.12), 0 4px 10px rgba(17, 24, 39, 0.06);
    --hvm-card-shadow-hover: 0 20px 30px rgba(15, 95, 126, 0.16), 0 4px 12px rgba(17, 24, 39, 0.08);
    --hvm-image-height: 220px;
    --hvm-detail-avatar-width: 300px;
}

.hvm-filter-shell {
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid #d5e2e8;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 196, 94, 0.18), transparent 28%),
        linear-gradient(135deg, #f9fcff, #eef7fb);
    box-shadow: 0 12px 26px rgba(10, 56, 72, 0.08);
}

.hvm-filter-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.hvm-filter-heading {
    display: grid;
    gap: 4px;
}

.hvm-filter-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.hvm-filter-eyebrow {
    display: inline-block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0f5f7e;
    font-weight: 700;
}

.hvm-filter-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    gap: 10px;
    align-items: stretch;
}

.hvm-filter-count,
.hvm-filter-toggle,
.hvm-member-filter button,
.hvm-filter-reset {
    min-height: 46px;
    border-radius: 16px;
    padding: 0 18px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.hvm-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #c9dbe4;
    color: #0f3b52;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hvm-filter-count strong {
    font-size: 1rem;
    line-height: 1;
}

.hvm-filter-count small {
    font-size: 0.86rem;
    color: #496170;
}

.hvm-filter-toggle,
.hvm-filter-reset {
    border: 1px solid #c8d9e2;
    background: #fff;
    color: #0f3b52;
    cursor: pointer;
    text-decoration: none;
    justify-content: center;
}

.hvm-member-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.hvm-member-filter[hidden] {
    display: none;
}

.hvm-filter-field {
    display: grid;
    gap: 8px;
}

.hvm-filter-field span {
    font-size: 0.9rem;
    color: #3c5a68;
    font-weight: 600;
}

.hvm-member-filter input,
.hvm-member-filter select {
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #c7d7df;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: #173342;
}

.hvm-member-filter input:focus,
.hvm-member-filter select:focus {
    outline: none;
    border-color: #0f5f7e;
    box-shadow: 0 0 0 3px rgba(15, 95, 126, 0.14);
}

.hvm-member-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.hvm-member-filter button {
    border: 0;
    background: linear-gradient(135deg, #0f5f7e, #1380a6);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(15, 95, 126, 0.2);
}

.hvm-filter-toggle:hover,
.hvm-member-filter button:hover,
.hvm-filter-reset:hover,
.hvm-member-detail-link:hover {
    transform: translateY(-1px);
}

.hvm-member-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.hvm-member-grid {
    display: grid;
    grid-template-columns: repeat(var(--hvm-grid-columns), minmax(0, 1fr));
    gap: 18px;
}

.hvm-member-card {
    position: relative;
    border: 1px solid #d9e5ea;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #f7fbfd);
    box-shadow: var(--hvm-card-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.hvm-member-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hvm-card-shadow-hover);
}

.hvm-member-card--birthday {
    border-color: #f0d5a0;
    background:
        radial-gradient(circle at top right, rgba(255, 213, 138, 0.18), transparent 30%),
        linear-gradient(180deg, #ffffff, #fffaf4);
    box-shadow: 0 20px 34px rgba(245, 158, 11, 0.1), var(--hvm-card-shadow);
}

.hvm-member-card-id {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 95, 126, 0.16);
    color: #0f3b52;
    font-size: 0.85rem;
    font-weight: 700;
}

.hvm-member-avatar {
    position: relative;
    width: 100%;
    height: var(--hvm-image-height);
    background: linear-gradient(145deg, #eaf4f8, #f6fbfd);
}

.hvm-member-avatar--birthday::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 183, 77, 0.7);
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.hvm-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hvm-member-content {
    padding: 16px;
}

.hvm-birthday-highlight,
.hvm-member-birthday-celebrate {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 52px;
    margin-bottom: 14px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    background: linear-gradient(135deg, rgba(255, 247, 232, 0.98), rgba(255, 240, 211, 0.96));
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.12);
    isolation: isolate;
}

.hvm-birthday-highlight::before,
.hvm-member-birthday-celebrate::before {
    content: "";
    position: absolute;
    inset: -26px auto auto 62%;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0));
    opacity: 0.9;
    z-index: -1;
}

.hvm-birthday-highlight::after,
.hvm-member-birthday-celebrate::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
    z-index: -1;
}

.hvm-birthday-highlight strong,
.hvm-member-birthday-celebrate strong {
    position: relative;
    color: #96530d;
    font-size: 0.92rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.hvm-birthday-highlight--soft,
.hvm-member-birthday-celebrate.hvm-birthday-highlight--soft {
    border-color: rgba(242, 181, 94, 0.28);
    background: linear-gradient(135deg, rgba(255, 248, 236, 0.98), rgba(255, 238, 206, 0.95));
}

.hvm-birthday-highlight--glow,
.hvm-member-birthday-celebrate.hvm-birthday-highlight--glow {
    border-color: rgba(253, 186, 116, 0.24);
    background: linear-gradient(135deg, #fff7ed, #ffe8d4 72%);
    box-shadow: 0 12px 28px rgba(251, 146, 60, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

.hvm-birthday-highlight--glow::before,
.hvm-member-birthday-celebrate.hvm-birthday-highlight--glow::before {
    inset: auto auto -34px -10px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(254, 215, 170, 0.72), rgba(255, 255, 255, 0));
}

.hvm-birthday-highlight--outline,
.hvm-member-birthday-celebrate.hvm-birthday-highlight--outline {
    border-color: rgba(244, 160, 81, 0.42);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 241, 0.98)),
        linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(251, 146, 60, 0.12));
    box-shadow: 0 10px 18px rgba(245, 158, 11, 0.09);
}

.hvm-birthday-highlight--outline::after,
.hvm-member-birthday-celebrate.hvm-birthday-highlight--outline::after {
    background: linear-gradient(90deg, rgba(255, 223, 173, 0.26), rgba(255, 255, 255, 0));
}

.hvm-member-role-chip {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 95, 126, 0.08);
    color: #0f5f7e;
    font-size: 0.82rem;
    font-weight: 700;
}

.hvm-member-content h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    line-height: 1.4;
    color: #102633;
}

.hvm-member-position {
    margin: 0 0 14px;
    color: #516674;
}

.hvm-member-join-meta {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #314c5b;
}

.hvm-member-join-meta span {
    color: #0f5f7e;
    font-weight: 600;
}

.hvm-member-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0f5f7e;
    font-weight: 700;
    text-decoration: none;
}

.hvm-member-detail {
    border: 1px solid #dde5eb;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(14, 50, 67, 0.1);
    overflow: hidden;
    --hvm-detail-avatar-width: 300px;
}

.hvm-member-detail--birthday .hvm-member-detail-head {
    background:
        radial-gradient(circle at top right, rgba(255, 223, 156, 0.3), transparent 24%),
        linear-gradient(135deg, #fff9ef, #f5fbff);
}

.hvm-member-detail-head {
    display: grid;
    grid-template-columns: minmax(220px, var(--hvm-detail-avatar-width)) 1fr;
    gap: 22px;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 196, 94, 0.18), transparent 24%),
        linear-gradient(135deg, #f7fbfd, #eef4f8);
}

.hvm-member-detail-avatar img {
    width: 100%;
    border-radius: 18px;
    display: block;
}

.hvm-member-detail-avatar--birthday img {
    border: 3px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 18px 28px rgba(245, 158, 11, 0.18);
}

.hvm-member-detail-meta h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.hvm-member-birthday-celebrate {
    width: fit-content;
    min-width: min(100%, 280px);
}

.hvm-member-birthday-row {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hvm-member-birthday-row.is-birthday {
    padding: 8px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 245, 230, 0.96), rgba(255, 236, 209, 0.88));
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.hvm-birthday-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #7a3f00;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.hvm-member-join-row {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.hvm-member-join-duration {
    color: #0f5f7e;
    font-weight: 600;
}

.hvm-member-detail-content {
    padding: 22px;
}

.hvm-pagination {
    margin-top: 22px;
}

.hvm-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 6px 6px 0;
    min-width: 42px;
    min-height: 42px;
    text-align: center;
    padding: 0 12px;
    border: 1px solid #c8d1d8;
    border-radius: 12px;
    text-decoration: none;
    background: #fff;
    color: #163443;
}

.hvm-pagination .page-numbers.current {
    color: #fff;
    border-color: #0f5f7e;
    background: #0f5f7e;
}

.hvm-empty,
.hvm-empty-state {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f4f8fa, #edf4f7);
    border: 1px solid #d6e3e8;
}

.hvm-empty-state strong {
    display: block;
    margin-bottom: 6px;
    color: #0f3b52;
}

.hvm-empty-state p {
    margin: 0;
    color: #516674;
}

@media (max-width: 1180px) {
    .hvm-member-grid {
        grid-template-columns: repeat(min(3, var(--hvm-grid-columns)), minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .hvm-member-filter {
        grid-template-columns: 1fr;
    }

    .hvm-member-filter-actions {
        justify-content: flex-start;
    }

    .hvm-member-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hvm-filter-header {
        flex-direction: column;
        align-items: stretch;
    }

    .hvm-filter-meta {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .hvm-member-detail-head {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .hvm-member-detail-content {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .hvm-filter-shell {
        padding: 14px;
        border-radius: 18px;
    }

    .hvm-filter-meta {
        grid-template-columns: 1fr;
    }

    .hvm-member-grid {
        grid-template-columns: 1fr;
    }

    .hvm-member-card-id {
        top: 10px;
        right: 10px;
    }
}
