/* ==========================================================
   BUNNYTIK — NETWORK CONTENT
   Independent Network Directory
   Version 1.0.0
   ========================================================== */

.bhcn-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.bhcn-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 360px;
    height: 260px;
    right: -100px;
    top: -100px;
    background: radial-gradient(
        ellipse,
        rgba(255, 17, 123, .09),
        transparent 70%
    );
    pointer-events: none;
}

.bhcn-hero::after {
    content: "";
    position: absolute;
    right: 7%;
    top: 24%;
    width: 100px;
    height: 100px;
    opacity: .12;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 15%, #ff117b 0 4px, transparent 5px),
        radial-gradient(circle at 18% 70%, #ff117b 0 4px, transparent 5px),
        radial-gradient(circle at 82% 70%, #ff117b 0 4px, transparent 5px),
        linear-gradient(120deg, transparent 47%, #ff117b 48% 50%, transparent 51%),
        linear-gradient(240deg, transparent 47%, #ff117b 48% 50%, transparent 51%);
}

.bhcn-hero h1 span {
    color: #ff117b;
}

.bhcn-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, .72);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.bhcn-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 2px;
    background: #ff117b;
    box-shadow: 0 0 13px rgba(255, 17, 123, .55);
}


/* ==========================================================
   SECTION HEADER
========================================================== */

.bhcn-section {
    margin-top: 32px;
}

.bhcn-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.bhcn-section-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.025em;
}

.bhcn-section-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid rgba(255, 17, 123, .24);
    border-radius: 11px;
    color: #ff117b;
    background: rgba(255, 17, 123, .075);
}

.bhcn-section-mark svg {
    width: 19px;
    height: 19px;
    display: block;
}

.bhcn-section-description {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .48);
    font-size: .85rem;
    line-height: 1.6;
}

.bhcn-total {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 9px;
    color: rgba(255, 255, 255, .65);
    background: rgba(255, 255, 255, .025);
    font-size: .76rem;
    font-weight: 700;
}


/* ==========================================================
   NETWORK GRID
========================================================== */

.bhcn-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}


/* ==========================================================
   NETWORK CARD
========================================================== */

.bhcn-card {
    --bhcn-accent: 255, 17, 123;

    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 176px;
    padding: 20px;
    overflow: hidden;
    isolation: isolate;

    color: #fff;
    text-decoration: none;

    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .045),
            rgba(255, 255, 255, .012) 65%
        ),
        #101014;

    box-shadow: 0 8px 28px rgba(0, 0, 0, .13);

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        background .22s ease;
}

.bhcn-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--bhcn-accent), .65),
        transparent
    );
    opacity: .6;
}

.bhcn-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 140px;
    height: 140px;
    right: -80px;
    bottom: -90px;
    border-radius: 50%;
    background: rgb(var(--bhcn-accent));
    filter: blur(55px);
    opacity: .07;
    transition: opacity .25s ease;
}

.bhcn-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--bhcn-accent), .38);
    background:
        linear-gradient(
            145deg,
            rgba(var(--bhcn-accent), .065),
            rgba(255, 255, 255, .012) 75%
        ),
        #121116;
    box-shadow:
        0 16px 38px rgba(0, 0, 0, .25),
        0 0 0 1px rgba(var(--bhcn-accent), .035);
}

.bhcn-card:hover::after {
    opacity: .17;
}


/* ==========================================================
   CARD TOP / RANK
========================================================== */

.bhcn-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 19px;
}

.bhcn-network-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    border: 1px solid rgba(var(--bhcn-accent), .23);
    border-radius: 14px;

    color: #ff4b9b;

    background:
        linear-gradient(
            145deg,
            rgba(var(--bhcn-accent), .15),
            rgba(var(--bhcn-accent), .035)
        );

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);

    transition:
        transform .22s ease,
        border-color .22s ease,
        background .22s ease;
}

.bhcn-network-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bhcn-card:hover .bhcn-network-icon {
    transform: translateY(-2px);
    border-color: rgba(var(--bhcn-accent), .5);
    background: rgba(var(--bhcn-accent), .13);
}

.bhcn-rank {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;

    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 7px;

    color: rgba(255, 255, 255, .48);
    background: rgba(255, 255, 255, .025);

    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .07em;
    font-variant-numeric: tabular-nums;
}

.bhcn-rank-label {
    color: rgba(255, 255, 255, .32);
    font-size: .59rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}


/* ==========================================================
   NETWORK NAME
========================================================== */

.bhcn-card-content {
    min-width: 0;
}

.bhcn-network-name {
    display: block;
    margin: 0;
    overflow: hidden;

    color: #f7f7fa;
    font-size: 1.04rem;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -.02em;

    overflow-wrap: anywhere;
    transition: color .2s ease;
}

.bhcn-card:hover .bhcn-network-name {
    color: #fff;
}

.bhcn-network-label {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, .37);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .035em;
}


/* ==========================================================
   POST COUNT / ACTIVITY BAR
========================================================== */

.bhcn-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.bhcn-post-count {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.bhcn-count-number {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.025em;
    font-variant-numeric: tabular-nums;
}

.bhcn-count-label {
    color: rgba(255, 255, 255, .43);
    font-size: .72rem;
    font-weight: 500;
}

.bhcn-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;

    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 9px;

    color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .035);

    transition:
        transform .2s ease,
        color .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.bhcn-card-action svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bhcn-card:hover .bhcn-card-action {
    transform: translateX(3px);
    color: #fff;
    border-color: rgba(var(--bhcn-accent), .4);
    background: rgba(var(--bhcn-accent), .16);
}


/* ==========================================================
   OPTIONAL NETWORK ACCENTS
   Use only when assigning these classes in PHP.
========================================================== */

.bhcn-accent-purple {
    --bhcn-accent: 145, 91, 255;
}

.bhcn-accent-blue {
    --bhcn-accent: 73, 145, 255;
}

.bhcn-accent-cyan {
    --bhcn-accent: 37, 190, 210;
}

.bhcn-accent-orange {
    --bhcn-accent: 255, 139, 65;
}

.bhcn-accent-green {
    --bhcn-accent: 54, 190, 125;
}


/* ==========================================================
   EMPTY STATE
========================================================== */

.bhcn-empty {
    padding: 42px 20px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, .12);
    border-radius: 16px;
    color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .015);
}


/* ==========================================================
   SEO SECTION
========================================================== */

.bhcn-seo {
    position: relative;
    max-width: 900px;
    margin: 46px auto 25px;
    padding: 30px;

    text-align: center;

    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .025),
            rgba(255, 17, 123, .025)
        );
}

.bhcn-seo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 15px;

    border: 1px solid rgba(255, 17, 123, .2);
    border-radius: 13px;

    color: #ff4b9b;
    background: rgba(255, 17, 123, .075);
}

.bhcn-seo-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bhcn-seo h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 750;
}

.bhcn-seo p {
    max-width: 760px;
    margin: 9px auto;
    color: rgba(255, 255, 255, .53);
    font-size: .9rem;
    line-height: 1.8;
}


/* ==========================================================
   PAGINATION
========================================================== */

.bhcn-pagination {
    margin-top: 34px;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1000px) {
    .bhcn-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .bhcn-card {
        min-height: 168px;
        padding: 17px;
    }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {
    .bhcn-section-head {
        align-items: flex-start;
        gap: 12px;
    }

    .bhcn-section-title {
        font-size: 1.13rem;
    }

    .bhcn-total {
        padding: 7px 9px;
        font-size: .68rem;
    }

    .bhcn-grid {
        gap: 10px;
        margin-top: 19px;
    }

    .bhcn-card {
        min-height: 158px;
        padding: 14px;
        border-radius: 14px;
    }

    .bhcn-card-top {
        margin-bottom: 15px;
    }

    .bhcn-network-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 12px;
    }

    .bhcn-network-icon svg {
        width: 21px;
        height: 21px;
    }

    .bhcn-rank {
        padding: 5px 7px;
        font-size: .61rem;
    }

    .bhcn-rank-label {
        display: none;
    }

    .bhcn-network-name {
        font-size: .91rem;
    }

    .bhcn-network-label {
        font-size: .66rem;
    }

    .bhcn-card-footer {
        padding-top: 14px;
        gap: 6px;
    }

    .bhcn-count-number {
        font-size: .94rem;
    }

    .bhcn-count-label {
        font-size: .65rem;
    }

    .bhcn-card-action {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }

    .bhcn-seo {
        padding: 23px 17px;
        margin-top: 30px;
    }
}


/* ==========================================================
   ACCESSIBILITY / REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {
    .bhcn-card,
    .bhcn-network-icon,
    .bhcn-card-action,
    .bhcn-network-name {
        transition: none;
    }

    .bhcn-card:hover,
    .bhcn-card:hover .bhcn-network-icon,
    .bhcn-card:hover .bhcn-card-action {
        transform: none;
    }
}