/*
|--------------------------------------------------------------------------
| BunnyHot - Media Tags
| /media-tags/{tag}/
|--------------------------------------------------------------------------
*/

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

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

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

    width: 420px;
    height: 420px;

    right: -180px;
    top: -220px;

    border-radius: 50%;

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

    filter: blur(35px);

    pointer-events: none;
}

.bh-media-tags-hero::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    left: -160px;
    bottom: -190px;

    border-radius: 50%;

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

    filter: blur(35px);

    pointer-events: none;
}


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

.bh-media-tags-section {
    margin-top: 30px;
}


/* ==========================================================
   MEDIA GRID
========================================================== */

.bh-media-tags-grid {
    display: grid;

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

    gap: 22px;

    margin-top: 28px;
}


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

.bh-media-tag-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    border-radius: 16px;

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

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

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.18);

    transition:
        transform .28s ease,
        border-color .28s ease,
        box-shadow .28s ease;

    isolation: isolate;
}

.bh-media-tag-card:hover {
    transform: translateY(-6px);

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

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.32),
        0 0 28px rgba(255, 17, 123, 0.07);
}


/* ==========================================================
   THUMBNAIL
========================================================== */

.bh-media-tag-thumb {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #111;

    text-decoration: none;
}


/* ==========================================================
   IMAGE
========================================================== */

.bh-media-tag-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .45s cubic-bezier(.2,.7,.2,1),
        filter .35s ease;
}

.bh-media-tag-card:hover
.bh-media-tag-thumb img {
    transform: scale(1.07);

    filter: brightness(.82);
}


/* ==========================================================
   IMAGE FALLBACK
========================================================== */

.bh-media-tag-no-thumb {
    width: 100%;
    height: 100%;

    display: flex;

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

    background:
        radial-gradient(
            circle at center,
            rgba(255, 17, 123, 0.12),
            rgba(255, 255, 255, 0.025)
        );
}

.bh-media-tag-no-thumb span {
    width: 58px;
    height: 58px;

    display: flex;

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

    border-radius: 16px;

    font-size: 27px;

    color: #fff;

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

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


/* ==========================================================
   DARK OVERLAY
========================================================== */

.bh-media-tag-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.03) 0%,
            rgba(0,0,0,.02) 40%,
            rgba(0,0,0,.68) 100%
        );

    opacity: .75;

    transition:
        opacity .3s ease;
}

.bh-media-tag-card:hover
.bh-media-tag-overlay {
    opacity: .95;
}


/* ==========================================================
   TYPE BADGE
========================================================== */

.bh-media-tag-type {
    position: absolute;

    top: 12px;
    left: 12px;

    z-index: 5;

    display: inline-flex;

    align-items: center;
    gap: 6px;

    padding: 7px 10px;

    border-radius: 9px;

    color: #fff;

    font-size: 11px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: .2px;

    background:
        rgba(0, 0, 0, 0.62);

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

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bh-media-tag-type-icon {
    font-size: 11px;

    color: #ff117b;
}


/* ==========================================================
   VIDEO PLAY BUTTON
========================================================== */

.bh-media-tag-play {
    position: absolute;

    left: 50%;
    top: 50%;

    z-index: 5;

    width: 58px;
    height: 58px;

    display: flex;

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

    padding-left: 3px;

    border-radius: 50%;

    color: #fff;

    font-size: 19px;

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

    border: 2px solid rgba(255, 255, 255, 0.85);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(255, 17, 123, 0.25);

    transform:
        translate(-50%, -50%)
        scale(.82);

    opacity: .88;

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

.bh-media-tag-card:hover
.bh-media-tag-play {
    transform:
        translate(-50%, -50%)
        scale(1);

    opacity: 1;

    background:
        #ff117b;
}


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

.bh-media-tag-gallery {
    position: absolute;

    left: 50%;
    top: 50%;

    z-index: 5;

    width: 58px;
    height: 58px;

    display: flex;

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

    border-radius: 50%;

    color: #fff;

    font-size: 25px;

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

    border: 2px solid rgba(255, 255, 255, 0.85);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(108, 82, 238, 0.20);

    transform:
        translate(-50%, -50%)
        scale(.82);

    opacity: .88;

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

.bh-media-tag-card:hover
.bh-media-tag-gallery {
    transform:
        translate(-50%, -50%)
        scale(1);

    opacity: 1;

    background:
        #6c52ee;
}


/* ==========================================================
   CARD INFO
========================================================== */

.bh-media-tag-info {
    padding: 14px 15px 16px;
}


/* ==========================================================
   TITLE
========================================================== */

.bh-media-tag-title {
    margin: 0;

    font-size: 15px;

    font-weight: 700;

    line-height: 1.4;

    overflow: hidden;

    display: -webkit-box;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bh-media-tag-title a {
    color: #fff;

    text-decoration: none;

    transition:
        color .2s ease;
}

.bh-media-tag-title a:hover {
    color: #ff117b;
}


/* ==========================================================
   META
========================================================== */

.bh-media-tag-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: 9px;

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

    font-size: 11px;

    line-height: 1.4;
}

.bh-media-tag-meta-type {
    color: rgba(255, 255, 255, 0.65);

    font-weight: 600;
}

.bh-media-video
.bh-media-tag-meta-type {
    color: #ff117b;
}

.bh-media-photo
.bh-media-tag-meta-type {
    color: #a996ff;
}

.bh-media-tag-meta-separator {
    color: rgba(255, 255, 255, 0.20);
}


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

.bh-media-tags-empty {
    margin-top: 28px;

    padding: 70px 25px;

    text-align: center;
}

.bh-media-tags-empty-icon {
    width: 64px;
    height: 64px;

    display: flex;

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

    margin: 0 auto 18px;

    border-radius: 18px;

    font-size: 27px;

    color: #fff;

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

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

.bh-media-tags-empty h2 {
    margin: 0 0 8px;

    color: #fff;

    font-size: 22px;
}

.bh-media-tags-empty p {
    margin: 0;

    color: rgba(255,255,255,.52);

    font-size: 14px;
}


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

.bh-media-tags-seo {
    position: relative;

    margin-top: 45px;

    padding: 32px;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.018)
        );

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

    overflow: hidden;
}

.bh-media-tags-seo::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -120px;
    bottom: -140px;

    border-radius: 50%;

    background:
        rgba(255,17,123,.08);

    filter: blur(30px);

    pointer-events: none;
}

.bh-media-tags-seo-icon {
    width: 48px;
    height: 48px;

    display: flex;

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

    margin-bottom: 17px;

    border-radius: 14px;

    font-size: 22px;

    color: #fff;

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

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

.bh-media-tags-seo h2 {
    margin: 0 0 15px;

    color: #fff;

    font-size: 24px;

    line-height: 1.3;
}

.bh-media-tags-seo p {
    margin: 0 0 14px;

    color: rgba(255,255,255,.62);

    font-size: 15px;

    line-height: 1.8;
}

.bh-media-tags-seo p:last-child {
    margin-bottom: 0;
}


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

.bh-media-tags-pagination {
    margin-top: 35px;
}


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

@media (max-width: 1150px) {

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

        gap: 18px;
    }

}


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

@media (max-width: 820px) {

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

        gap: 15px;
    }

    .bh-media-tag-info {
        padding: 13px;
    }

    .bh-media-tag-title {
        font-size: 14px;
    }

}


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

@media (max-width: 560px) {

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

        gap: 11px;
    }

    .bh-media-tag-card {
        border-radius: 12px;
    }

    .bh-media-tag-thumb {
        aspect-ratio: 1 / 1.08;
    }

    .bh-media-tag-type {
        top: 8px;
        left: 8px;

        padding: 6px 8px;

        font-size: 9px;
    }

    .bh-media-tag-type-icon {
        font-size: 9px;
    }

    .bh-media-tag-play,
    .bh-media-tag-gallery {
        width: 45px;
        height: 45px;

        font-size: 16px;
    }

    .bh-media-tag-gallery {
        font-size: 20px;
    }

    .bh-media-tag-info {
        padding: 10px 10px 12px;
    }

    .bh-media-tag-title {
        font-size: 13px;

        line-height: 1.35;
    }

    .bh-media-tag-meta {
        margin-top: 7px;

        font-size: 10px;

        gap: 3px;
    }

    .bh-media-tags-seo {
        padding: 24px 20px;
    }

    .bh-media-tags-seo h2 {
        font-size: 21px;
    }

    .bh-media-tags-seo p {
        font-size: 14px;
    }

}


/* ==========================================================
   VERY SMALL MOBILE
========================================================== */

@media (max-width: 380px) {

    .bh-media-tags-grid {
        grid-template-columns: 1fr;
    }

    .bh-media-tag-thumb {
        aspect-ratio: 16 / 10;
    }

}