
/* =========================================================
   ClipsBazaar Discover Grid
   File: /assets/discover-grid.css
========================================================= */

.discover-section {
    background:
        radial-gradient(
            circle at 5% 0,
            rgba(242, 75, 157, 0.13),
            transparent 32rem
        ),
        radial-gradient(
            circle at 100% 50%,
            rgba(143, 92, 255, 0.12),
            transparent 36rem
        ),
        #08070d;
    color: #fff;
    overflow: hidden;
}

.discover-head {
    width: min(1480px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
}

.discover-head > div:first-child {
    max-width: 780px;
}

.discover-kicker {
    margin: 0 0 8px;
    color: #ed84ba;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.discover-head h2 {
    margin: 0;
    color: #fff;
    font-family: Manrope, Arial, sans-serif;
    font-size: clamp(2.1rem, 4vw, 4.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.discover-head p {
    max-width: 690px;
    margin: 13px 0 0;
    color: #b8b0bb;
    font-size: 0.9rem;
    line-height: 1.65;
}

.discover-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.discover-btn {
    min-height: 43px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.discover-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.discover-btn-primary {
    border: 0;
    background: linear-gradient(135deg, #f24b9d, #9b63ff);
}

.discover-wall {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: 235px;
    gap: 5px;
    padding: 0 5px 5px;
}

.discover-tile {
    position: relative;
    min-width: 0;
    overflow: hidden;
    isolation: isolate;
    border-radius: 4px;
    background: #17131f;
}

.discover-wide {
    grid-column: span 2;
}

.discover-tall {
    grid-row: span 2;
}

.discover-media,
.discover-media img,
.discover-media video {
    width: 100%;
    height: 100%;
}

.discover-media {
    display: block;
}

.discover-media img,
.discover-media video {
    display: block;
    object-fit: cover;
    transition:
        transform 0.45s ease,
        filter 0.45s ease;
}

.discover-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    background:
        linear-gradient(
            to top,
            rgba(6, 5, 10, 0.96),
            rgba(6, 5, 10, 0.5) 46%,
            transparent 78%
        );
    transition: opacity 0.25s ease;
}

.discover-tile:hover .discover-overlay,
.discover-tile:focus-within .discover-overlay {
    opacity: 1;
}

.discover-tile:hover .discover-media img,
.discover-tile:focus-within .discover-media img,
.discover-tile:hover .discover-media video,
.discover-tile:focus-within .discover-media video {
    transform: scale(1.055);
    filter: brightness(0.8);
}

.discover-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.discover-badge {
    padding: 6px 8px;
    border-radius: 999px;
    color: #fff;
    background: rgba(8, 7, 13, 0.72);
    backdrop-filter: blur(12px);
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.discover-badge-featured {
    background:
        linear-gradient(
            135deg,
            rgba(242, 75, 157, 0.92),
            rgba(155, 99, 255, 0.92)
        );
}

.discover-person {
    display: flex;
    align-items: center;
    gap: 10px;
}

.discover-avatar {
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 13px;
    background: #221b2b;
}

.discover-person strong,
.discover-person span {
    display: block;
}

.discover-person strong {
    color: #fff;
    font-size: 0.92rem;
}

.discover-person span {
    margin-top: 3px;
    color: #d0c7cf;
    font-size: 0.68rem;
    line-height: 1.4;
}

.discover-tagline {
    margin: 11px 0 0;
    color: #bbb1ba;
    font-size: 0.72rem;
    line-height: 1.45;
}

.discover-tile-actions {
    margin-top: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.discover-link {
    min-height: 35px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.67rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.discover-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
}

.discover-link-primary {
    border: 0;
    background: linear-gradient(135deg, #f24b9d, #a653df);
}

.discover-promo {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.discover-promo::before {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    top: -90px;
    right: -70px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.19),
            transparent 68%
        );
}

.discover-promo-pink {
    background:
        linear-gradient(
            135deg,
            #2b1431,
            #651f5b 58%,
            #9b3f8c
        );
}

.discover-promo-purple {
    background:
        linear-gradient(
            155deg,
            #4a1540,
            #c33b86 55%,
            #8c4cea
        );
}

.discover-promo-blue {
    background:
        linear-gradient(
            135deg,
            #18172a,
            #433571 58%,
            #8f5cff
        );
}

.discover-promo small {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.63rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.discover-promo h3 {
    position: relative;
    z-index: 1;
    max-width: 430px;
    margin: 9px 0 0;
    color: #fff;
    font-size: clamp(1.35rem, 2vw, 2.2rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.discover-promo p {
    position: relative;
    z-index: 1;
    max-width: 440px;
    margin: 11px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.75rem;
    line-height: 1.5;
}

.discover-promo .discover-btn {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    margin-top: 15px;
    background: rgba(8, 7, 13, 0.24);
}

.discover-footer {
    width: min(1480px, calc(100% - 40px));
    margin: 0 auto;
    padding: 20px 0 34px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #8e8590;
    font-size: 0.72rem;
}

.discover-footer a {
    color: #ed84ba;
    font-weight: 750;
    text-decoration: none;
}

/* Tablet */
@media (max-width: 1180px) {
    .discover-wall {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 220px;
    }
}

@media (max-width: 900px) {
    .discover-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .discover-actions {
        justify-content: flex-start;
    }

    .discover-wall {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 215px;
    }
}

/* Mobile */
@media (max-width: 680px) {
    .discover-head {
        width: min(100% - 24px, 1480px);
        padding-top: 24px;
    }

    .discover-head h2 {
        font-size: clamp(2rem, 11vw, 3.1rem);
    }

    .discover-wall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 190px;
        gap: 4px;
        padding: 0 4px 4px;
    }

    .discover-wide {
        grid-column: span 2;
    }

    .discover-tall {
        grid-row: span 1;
    }

    .discover-overlay {
        padding: 12px;
        opacity: 1;
        background:
            linear-gradient(
                to top,
                rgba(6, 5, 10, 0.92),
                rgba(6, 5, 10, 0.18) 62%,
                transparent 86%
            );
    }

    .discover-person span,
    .discover-tagline,
    .discover-tile-actions {
        display: none;
    }

    .discover-avatar {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .discover-promo {
        padding: 18px;
    }

    .discover-footer {
        width: min(100% - 24px, 1480px);
        align-items: flex-start;
        flex-direction: column;
    }
}
