/* ==========================================================
   BunnyHot - WordPress Post Tags
   /tags/
========================================================== */


/* ==========================================================
   HERO
========================================================== */

.bht-tags-hero {
    position: relative;
    overflow: hidden;
}

.bht-tags-hero::before {
    content: "";
    position: absolute;

    width: 360px;
    height: 360px;

    right: -150px;
    top: -180px;

    border-radius: 50%;

    background: rgba(255, 17, 123, 0.12);

    filter: blur(30px);

    pointer-events: none;
}

.bht-tags-hero::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    left: -140px;
    bottom: -170px;

    border-radius: 50%;

    background: rgba(108, 82, 238, 0.12);

    filter: blur(30px);

    pointer-events: none;
}


/* ==========================================================
   TAG SECTION
========================================================== */

.bht-tags-section {
    margin-top: 10px;
}


/* ==========================================================
   TAG GRID
========================================================== */

.bht-tags-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-top: 28px;
}


/* ==========================================================
   TAG CARD
========================================================== */

.bht-tag-card {
    position: relative;

    display: flex;

    align-items: center;

    gap: 15px;

    min-height: 94px;

    padding: 18px 20px;

    text-decoration: none;

    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.07),
            rgba(255,255,255,0.025)
        );

    border: 1px solid rgba(255,255,255,0.08);

    overflow: hidden;

    isolation: isolate;

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


.bht-tag-card:hover {
    transform: translateY(-5px);

    border-color: rgba(255,17,123,0.45);

    background:
        linear-gradient(
            145deg,
            rgba(255,17,123,0.10),
            rgba(108,82,238,0.08)
        );

    box-shadow:
        0 16px 40px rgba(0,0,0,0.30),
        0 0 25px rgba(255,17,123,0.08);
}


/* ==========================================================
   ICON
========================================================== */

.bht-tag-icon {
    position: relative;

    z-index: 3;

    width: 54px;
    height: 54px;

    min-width: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 15px;

    font-size: 25px;

    line-height: 1;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            rgba(255,17,123,0.18),
            rgba(108,82,238,0.18)
        );

    border: 1px solid rgba(255,255,255,0.09);

    box-shadow:
        inset 0 0 18px rgba(255,255,255,0.025);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.bht-tag-card:hover .bht-tag-icon {
    transform: scale(1.08);

    box-shadow:
        0 0 20px rgba(255,17,123,0.18),
        inset 0 0 18px rgba(255,255,255,0.035);
}


/* ==========================================================
   CONTENT
========================================================== */

.bht-tag-content {
    position: relative;

    z-index: 3;

    display: flex;

    flex-direction: column;

    min-width: 0;

    flex: 1;
}


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

.bht-tag-name {
    display: block;

    color: #fff;

    font-size: 16px;

    font-weight: 700;

    line-height: 1.3;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* ==========================================================
   COUNT
========================================================== */

.bht-tag-count {
    display: block;

    margin-top: 5px;

    color: rgba(255,255,255,0.52);

    font-size: 13px;

    font-weight: 500;

    line-height: 1.3;
}


/* ==========================================================
   ARROW
========================================================== */

.bht-tag-arrow {
    position: relative;

    z-index: 3;

    flex: 0 0 auto;

    color: rgba(255,255,255,0.35);

    font-size: 22px;

    line-height: 1;

    transition:
        transform .25s ease,
        color .25s ease;
}


.bht-tag-card:hover .bht-tag-arrow {
    transform: translateX(5px);

    color: #ff117b;
}


/* ==========================================================
   GLOW
========================================================== */

.bht-tag-glow {
    position: absolute;

    z-index: 0;

    width: 150px;
    height: 150px;

    right: -90px;
    bottom: -90px;

    border-radius: 50%;

    background: rgba(255,17,123,0.13);

    filter: blur(28px);

    opacity: .55;

    pointer-events: none;

    transition:
        opacity .3s ease,
        transform .3s ease;
}


.bht-tag-card:hover .bht-tag-glow {
    opacity: 1;

    transform: scale(1.45);
}


/* ==========================================================
   DECORATIVE LINE
========================================================== */

.bht-tag-line {
    position: absolute;

    z-index: 1;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            #ff117b,
            #6c52ee
        );

    transition: width .3s ease;
}


.bht-tag-card:hover .bht-tag-line {
    width: 100%;
}


/* ==========================================================
   MEDIA COLORS
========================================================== */

.bht-media-pink .bht-tag-icon {
    background: rgba(255,17,123,0.15);
}

.bht-media-purple .bht-tag-icon {
    background: rgba(108,82,238,0.17);
}

.bht-media-blue .bht-tag-icon {
    background: rgba(65,105,225,0.17);
}

.bht-media-rose .bht-tag-icon {
    background: rgba(255,80,130,0.15);
}

.bht-media-violet .bht-tag-icon {
    background: rgba(145,80,255,0.16);
}

.bht-media-dark .bht-tag-icon {
    background: rgba(255,255,255,0.06);
}


/* ==========================================================
   SPECIAL MEDIA ICON EFFECTS
========================================================== */

/* Video */

.bht-tag-card:has(.bht-tag-icon) .bht-tag-icon {
    text-shadow:
        0 0 12px rgba(255,255,255,0.12);
}


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

.bht-seo-section {
    position: relative;

    margin-top: 45px;

    padding: 32px;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.018)
        );

    border: 1px solid rgba(255,255,255,0.07);

    overflow: hidden;
}


.bht-seo-section::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -100px;
    bottom: -120px;

    border-radius: 50%;

    background: rgba(255,17,123,0.08);

    filter: blur(30px);

    pointer-events: none;
}


.bht-seo-icon {
    position: relative;

    z-index: 2;

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 14px;

    color: #fff;

    font-size: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(255,17,123,0.18),
            rgba(108,82,238,0.18)
        );

    border: 1px solid rgba(255,255,255,0.08);
}


.bht-seo-section h2 {
    position: relative;

    z-index: 2;

    margin: 0 0 15px;

    color: #fff;

    font-size: 24px;

    line-height: 1.3;
}


.bht-seo-section p {
    position: relative;

    z-index: 2;

    margin: 0 0 14px;

    color: rgba(255,255,255,0.62);

    font-size: 15px;

    line-height: 1.8;
}


.bht-seo-section p:last-child {
    margin-bottom: 0;
}


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

.bht-tags-section .bh-empty {
    margin-top: 25px;
}


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

.bht-pagination {
    margin-top: 35px;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1100px) {

    .bht-tags-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 800px) {

    .bht-tags-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 14px;
    }

    .bht-tag-card {
        min-height: 88px;

        padding: 16px;
    }

}


@media (max-width: 520px) {

    .bht-tags-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .bht-tag-card {
        min-height: 82px;

        padding: 15px;
    }

    .bht-tag-icon {
        width: 48px;
        height: 48px;

        min-width: 48px;

        font-size: 22px;
    }

    .bht-tag-name {
        font-size: 15px;
    }

    .bht-tag-count {
        font-size: 12px;
    }

    .bht-seo-section {
        padding: 24px 20px;
    }

    .bht-seo-section h2 {
        font-size: 21px;
    }

}