/**
 * Influencer discovery page — filters, member cards + grid.
 *
 * @package Influencers Place
 */

.ip-discovery-filters {
    margin-bottom: 1.25rem;
}

/* Stick below the public site header (min-h 72px, z-50). */
.ip-discovery-filters--sticky {
    position: sticky;
    top: 72px;
    z-index: 40;
    background: #fff;
    box-shadow: 0 8px 24px rgba(29, 36, 51, 0.06);
}

.ip-discovery-filters__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .ip-discovery-filters__form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .ip-discovery-filters__form {
        grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    }
}

/* Visual style comes from .ip-field; keep layout + active state here. */
.ip-discovery-filters__select {
    min-width: 0;
    padding-right: 2.25rem;
}

.ip-discovery-filters__select.is-active {
    border-color: #fda4af;
    background-color: #fff1f2;
    color: #1f2937;
    font-weight: 600;
}

.ip-discovery-filters__clear {
    width: 100%;
    white-space: nowrap;
}

@media (min-width: 1100px) {
    .ip-discovery-filters__clear {
        width: auto;
        min-width: 5.5rem;
    }
}

@media (max-width: 1099px) {
    .ip-discovery-filters__clear {
        grid-column: 1 / -1;
        justify-self: end;
        width: auto;
        min-width: 5.5rem;
    }
}

.ip-discovery-filters__clear.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.ip-btn-gradient {
    background: linear-gradient(90deg, #f2276e, #fa6431);
    background-position: 100% 100%;
    background-size: 200% auto;
}

a.ip-btn-gradient:hover {
    filter: brightness(0.95);
}

.ip-discovery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .ip-discovery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .ip-discovery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ip-member-card {
    position: relative;
    border: 1px solid rgba(29, 36, 51, 0.06);
    border-radius: 16px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ip-member-card:hover {
    box-shadow: 0 16px 40px rgba(29, 36, 51, 0.12);
    transform: translateY(-2px);
}

.ip-member-card__avatar {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.ip-member-card__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9999px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1.5px #dfe3ea;
}

.ip-member-card__verified {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 9999px;
    background: #f2276e;
    border: 2px solid #fff;
    color: #fff;
    line-height: 0;
}

.ip-member-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    background: #fde8f0;
    color: #e01e62;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.ip-member-card__location {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #8b95a5;
    font-size: 0.8125rem;
    line-height: 1.2;
}

.ip-member-card__location svg {
    flex-shrink: 0;
}

a.ip-member-card__tag,
a.ip-member-card__location {
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

a.ip-member-card__tag:hover {
    background: #fbd0e0;
    color: #c0144f;
}

a.ip-member-card__location:hover {
    color: #e01e62;
}

.ip-member-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 14px;
    background: #f5f7fa;
}

.ip-member-card__stat {
    padding: 0.7rem 0.4rem;
    text-align: center;
}

.ip-member-card__stat + .ip-member-card__stat {
    border-left: 1px solid #e6eaef;
}

.ip-member-card__stat-label {
    margin: 0;
    color: #8b95a5;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.2;
}

.ip-member-card__stat-value {
    margin: 0.35rem 0 0;
    color: #1d2433;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.ip-member-card__stat-value .ip-star {
    color: #f5a623;
    margin-right: 0.1rem;
}

.ip-member-card__footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ip-member-card__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f5f7fa;
    border: 1px solid #e8ecf1;
    flex-shrink: 0;
    line-height: 0;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

a.ip-member-card__social {
    cursor: pointer;
}

a.ip-member-card__social:hover {
    border-color: #f9a8c0;
    background: #fff7f9;
    transform: translateY(-1px);
}

.ip-member-card__social .ip-platform-icon {
    width: 18px !important;
    height: 18px !important;
}

/* Public /discovery/{username}/ — guest: only identity card + About skeleton. */
.ip-public-profile.is-locked > .flex > *:not(:first-child) {
    display: none !important;
}

.ip-public-profile__guest {
    position: relative;
}

.ip-public-profile__skeleton {
    position: relative;
    overflow: hidden;
    filter: blur(2px);
    pointer-events: none;
    user-select: none;
}

.ip-skel {
    display: block;
    border-radius: 8px;
    background: linear-gradient(90deg, #f1f3f6 25%, #e8ebf0 37%, #f1f3f6 63%);
    background-size: 400% 100%;
    animation: ip-skel 1.2s ease infinite;
}

.ip-skel--title {
    height: 1.25rem;
    width: 7rem;
}

.ip-skel--desc {
    height: 0.85rem;
    width: 14rem;
    max-width: 70%;
}

.ip-skel--line {
    height: 0.85rem;
}

.ip-skel--label {
    height: 0.7rem;
    width: 4.5rem;
}

.ip-skel--value {
    height: 0.95rem;
    width: 70%;
}

@keyframes ip-skel {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}

.ip-public-profile__unlock {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    /* background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.85) 45%, #ffffff 100%); */
    pointer-events: none;
}

.ip-public-profile__unlock-btn {
    pointer-events: auto;
    min-height: 44px;
    padding: 0.625rem 1.5rem;
    gap: 0.5rem;
    line-height: 1.2;
    white-space: nowrap;
}

.ip-public-profile__unlock-btn svg {
    flex-shrink: 0;
}
