/**
 * Front page (marketing home) styles.
 *
 * @package Influencers Place
 */

.ip-home-section {
    padding-block: calc(var(--spacing) * 10);
}

@media (min-width: 640px) {
    .ip-home-section {
        padding-block: calc(var(--spacing) * 18);
    }
}

.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);
    -webkit-animation: 1.5s infinite pulse512;
    animation: 1.5s infinite pulse512;
}

@keyframes pulse512 {
    0% {
        box-shadow: 0 0 0 0 #fa6431;
    }

    70% {
        box-shadow: 0 0 0 10px #fff0;
    }

    to {
        box-shadow: 0 0 0 0 #fff0;
    }
}

.ip-text-gradient {
    background: linear-gradient(90deg, #f33164, #f85641);
    -webkit-background-clip: text;
    background-clip: text;
    color: #fff0;
}

.ip-pill-soft {
    border: 1px solid rgba(242, 39, 110, 0.18);
    background: linear-gradient(90deg, rgba(242, 39, 110, 0.08), rgba(250, 100, 49, 0.1));
    color: #f33164;
    text-decoration: none;
    transition: filter 0.15s ease, border-color 0.15s ease;
}

a.ip-pill-soft:hover {
    filter: brightness(0.97);
    border-color: rgba(242, 39, 110, 0.35);
    color: #f33164;
}

.ip-pill-soft svg {
    color: #fa6431;
}

/* Public discovery page hero */
.ip-discovery-hero {
    padding-block: 3rem 2.5rem;
    background-color: #faf8f9;
    background-image: url("../../../images/front-pg-bg.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    .ip-discovery-hero {
        padding-block: 4.5rem 3.5rem;
    }
}

.ip-discovery-hero__grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .ip-discovery-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
        gap: 3rem;
    }
}

.ip-discovery-hero__eyebrow {
    margin: 0;
    color: #f2276e;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ip-discovery-hero__title {
    margin: 0.75rem 0 0;
    max-width: 16ch;
    color: #1d2433;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.ip-discovery-hero__lead {
    margin: 1.1rem 0 0;
    max-width: 42rem;
    color: #5a6475;
    font-size: 1rem;
    line-height: 1.65;
}

@media (min-width: 640px) {
    .ip-discovery-hero__lead {
        font-size: 1.0625rem;
    }
}

.ip-discovery-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1.5rem;
}

.ip-discovery-hero__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #fff;
    color: #4b5563;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.ip-discovery-hero__tag:hover {
    border-color: #f9a8c0;
    background: #fff7f9;
    color: #f2276e;
}

.ip-discovery-hero__media {
    text-align: left;
}

@media (min-width: 1024px) {
    .ip-discovery-hero__media {
        justify-self: end;
        text-align: right;
        width: 100%;
        max-width: 520px;
    }
}

.ip-discovery-hero__image-wrap {
    overflow: hidden;
    border-radius: 1.5rem;
    line-height: 0;
}

.ip-discovery-hero__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Public discovery — results summary above filters */
.ip-discovery-directory-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.25rem;
}

.ip-discovery-directory-head__title {
    margin: 0;
    color: #1d2433;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.ip-discovery-directory-head__sub {
    margin: 0.25rem 0 0;
    color: #8b95a5;
    font-size: 0.875rem;
    line-height: 1.4;
}

.ip-discovery-directory-head__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    background: #eaf8f0;
    color: #138244;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.ip-discovery-directory-head__badge-icon {
    flex-shrink: 0;
    color: #168a4c;
}

/* Public discovery page only — 4 cards per row */
#ip-public-discovery .ip-discovery-grid {
    grid-template-columns: 1fr;
}

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

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

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

/* Public discovery — niche category cards */
.ip-discovery-niches {
    padding-block: 3.5rem;
    background: #faf8f9;
}

@media (min-width: 768px) {
    .ip-discovery-niches {
        padding-block: 4.5rem;
    }
}

.ip-discovery-niches__intro {
    max-width: 40rem;
    margin: 0 auto 2.25rem;
    text-align: center;
}

.ip-discovery-niches__eyebrow {
    margin: 0;
    color: #f2276e;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ip-discovery-niches__title {
    margin: 0.65rem 0 0;
    color: #1d2433;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ip-discovery-niches__lead {
    margin: 0.75rem 0 0;
    color: #5a6475;
    font-size: 1rem;
    line-height: 1.6;
}

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

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

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

.ip-discovery-niche-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    border: 1px solid rgba(29, 36, 51, 0.06);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(19, 22, 30, 0.05);
}

.ip-discovery-niche-card__label {
    margin: 0;
    color: #f2276e;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ip-discovery-niche-card__title {
    margin: 0.65rem 0 0;
    color: #1d2433;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.ip-discovery-niche-card__body {
    margin: 0.75rem 0 0;
    flex: 1;
    color: #5a6475;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.ip-discovery-niche-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
    color: #f2276e;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.15s ease, gap 0.15s ease;
}

.ip-discovery-niche-card__cta:hover {
    color: #d91a5c;
    gap: 0.5rem;
}

/**
 * Bootstrap-style container (width + gutters + centered).
 * Use this on the homepage instead of Tailwind mx-auto / max-w-* / px-* utilities.
 */
.container,
.container-fluid {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

.ip-hero-section {
    padding-block: calc(var(--spacing) * 10);
}

.ip-hero-section h1 {
    font-size: 32px;
}

@media (min-width: 640px) {
    .ip-hero-section {
        padding-block: calc(var(--spacing) * 24);
    }

    .ip-hero-section h1 {
        font-size: 44px;
    }
}

@keyframes ip-hero-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

.ip-hero-float-img {
    max-width: 230px;
    max-height: 230px;
    width: 230px;
    height: 230px;
    object-fit: contain;
    animation: ip-hero-float 4s ease-in-out infinite;
}

.ip-hero-float-img--right {
    animation-delay: 0.8s;
}

.ip-hero-social {
    position: absolute;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(29, 36, 51, 0.12);
    animation: ip-hero-float 4.5s ease-in-out infinite;
}

.ip-hero-social--ig {
    top: 18%;
    left: 22%;
    animation-name: ip-hero-float-ig;
    animation-delay: 0.3s;
}

@keyframes ip-hero-float-ig {

    0%,
    100% {
        transform: rotate(12deg) translateY(0);
    }

    50% {
        transform: rotate(12deg) translateY(-14px);
    }
}

.ip-hero-social--fb {
    top: 56%;
    left: 20%;
    animation-name: ip-hero-float-fb;
    animation-delay: 1.1s;
}

@keyframes ip-hero-float-fb {

    0%,
    100% {
        transform: rotate(-10deg) translateY(0);
    }

    50% {
        transform: rotate(-10deg) translateY(-14px);
    }
}

.ip-hero-social--yt {
    top: 14%;
    right: 24%;
    left: auto;
    animation-name: ip-hero-float-yt;
    animation-delay: 0.6s;
}

@keyframes ip-hero-float-yt {

    0%,
    100% {
        transform: rotate(-12deg) translateY(0);
    }

    50% {
        transform: rotate(-12deg) translateY(-14px);
    }
}

.ip-hero-social--snap {
    top: 57%;
    right: 22%;
    left: auto;
    animation-name: ip-hero-float-snap;
    animation-delay: 1.4s;
}

@keyframes ip-hero-float-snap {

    0%,
    100% {
        transform: rotate(10deg) translateY(0);
    }

    50% {
        transform: rotate(10deg) translateY(-14px);
    }
}

.ip-hero-social svg {
    display: block;
    width: 28px;
    height: 28px;
}

.ip-hero-social--yt svg {
    width: 28px;
    height: 20px;
}

@media (min-width: 1024px) {
    .ip-hero-social {
        display: inline-flex;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .ip-hero-social--ig {
        top: 18%;
        left: 8%;
        animation-name: ip-hero-float-ig;
        animation-delay: 0.3s;
    }

    .ip-hero-social--yt {
        top: 14%;
        right: 9%;
        left: auto;
        animation-name: ip-hero-float-yt;
        animation-delay: 0.6s;
    }

    .ip-hero-social--fb {
        top: 56%;
        left: 7%;
        animation-name: ip-hero-float-fb;
        animation-delay: 1.1s;
    }

    .ip-hero-social--snap {
        top: 57%;
        right: 7%;
        left: auto;
        animation-name: ip-hero-float-snap;
        animation-delay: 1.4s;
    }
}

.ip-service-card-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.ip-service-card {
    --x: 50%;
    --y: 50%;
    --color-primary: #f2276e;
    --color-card: #f5f5f5;
    --radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 74px 28px 28px;
    border-radius: var(--radius);
    border: 1px solid #dfdfdf;
    background: var(--color-card);
    z-index: 0;
}

.ip-service-card::before {
    content: "";
    position: absolute;
    top: var(--y);
    left: var(--x);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(242, 39, 110, 0.45), transparent, transparent);
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: 0.5s, top 0s, left 0s;
    border-radius: var(--radius);
    z-index: 0;
    pointer-events: none;
}

.ip-service-card:hover::before {
    opacity: 1;
}

.ip-service-card::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: var(--color-card);
    border-radius: calc(var(--radius) - 1px);
    z-index: 1;
    pointer-events: none;
}

.ip-service-card>* {
    position: relative;
    z-index: 2;
}

.ip-service-card__badge {
    position: absolute;
    top: -24px;
    left: 28px;
    z-index: 3;
    isolation: isolate;
    width: 64px;
    height: 65px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
    background: transparent;
}

.ip-service-card__badge::before {
    content: "";
    position: absolute;
    top: 2px;
    left: -21px;
    width: 0;
    height: 0;
    border-style: solid;
    border-bottom: 23px solid #f2276e;
    border-left: 29px solid transparent;
    rotate: 358deg;
    z-index: 0;
}

.ip-service-card__badge::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, #f2276e, #fa6431);
    border-radius: 14px 14px 18px 18px;
    box-shadow: 0 8px 18px rgba(242, 39, 110, 0.28);
}

.ip-service-card__icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #f2276e;
    transition: transform 0.45s ease;
    transform-origin: center;
    transform-style: preserve-3d;
}

.ip-service-card-wrap:hover .ip-service-card__icon {
    transform: rotateY(180deg);
}

.ip-service-grid {
    row-gap: 50px;
}

.ip-process-section {
    background: #ffffff;
}

.ip-process-glow {
    position: absolute;
    left: 50%;
    top: 134%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.ip-process-glow--a {
    width: 1300px;
    height: 1300px;
    background: linear-gradient(180deg,
            rgba(242, 39, 110, 0.1) 0%,
            rgba(242, 39, 110, 0.05) 18.28%,
            rgba(242, 39, 110, 0) 37.48%,
            rgba(253, 234, 243, 0) 100%);
}

.ip-process-glow--b {
    width: 1500px;
    height: 1500px;
    background: linear-gradient(180deg, rgb(243 45 105 / 12%) 0%, rgb(251 222 217 / 0%) 18.28%, rgb(249 95 54 / 10%) 37.48%, rgb(249 93 56 / 30%) 100%);
}

.ip-process-section>.container {
    position: relative;
    z-index: 1;
}

.ip-process-step {
    transition: transform 0.25s ease;
}

.ip-process-step:hover {
    animation: ip-process-bounce 0.7s ease;
}

@keyframes ip-process-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-12px);
    }

    50% {
        transform: translateY(-4px);
    }

    70% {
        transform: translateY(-8px);
    }
}

.ip-process-line {
    pointer-events: none;
    position: absolute;
    left: 12%;
    right: 12%;
    top: 22px;
    display: none;
    height: 4px;
    background-image: radial-gradient(circle, rgba(242, 39, 110, 0.55) 1.5px, transparent 1.6px);
    background-size: 14px 4px;
    background-repeat: repeat-x;
    background-position: 0 50%;
    animation: ip-process-dots 1.2s linear infinite;
}

@media (min-width: 1280px) {
    .ip-process-line {
        display: block;
    }
}

@keyframes ip-process-dots {
    from {
        background-position: 0 50%;
    }

    to {
        background-position: 14px 50%;
    }
}

.ip-process-step__fade-num {
    position: absolute;
    top: 4px;
    right: 12px;
    z-index: 0;
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #b8c4d6 0%, #f3d6e2 55%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
}

.ip-marquee__track {
    display: flex;
    width: max-content;
    gap: 0;
    animation: ip-marquee-scroll 32s linear infinite;
}

.ip-marquee__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 1.75rem;
    padding-inline: 0.875rem;
    white-space: nowrap;
}

.ip-marquee__item {
    margin: 0;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.ip-marquee__item--solid {
    color: #a0a8b8;
}

.ip-marquee__item--outline {
    background: linear-gradient(90deg, #f7a3c0, #f9b48a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.ip-marquee__star {
    flex-shrink: 0;
    color: #c5cad3;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 700;
    line-height: 1;
}

@keyframes ip-marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ip-marquee__track {
        animation: none;
    }
}

.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;
}

.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;
}

.ip-member-card__social--instagram {
    color: inherit;
}

.ip-member-card__social--instagram svg {
    display: block;
    width: 18px;
    height: 18px;
}

.ip-member-card__social--youtube {
    color: inherit;
}

.ip-member-card__social--youtube svg {
    display: block;
    width: 18px;
    height: 12px;
}

@keyframes ip-cta-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.ip-cta-float {
    animation: ip-cta-float 4s ease-in-out infinite;
}

.ip-cta-float--delay {
    animation-delay: 0.7s;
}

.ip-cta-banner .bg-img {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
    mix-blend-mode: luminosity;
    pointer-events: none;
}

.ip-cta-banner h2 {
    max-width: 600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}