/* =========================================================
   SHARED INVESTMENT OPPORTUNITY CARD
   ========================================================= */

.shared-opp-card {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #0d0d0d;

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

    box-sizing: border-box;

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

.shared-opp-card:hover {
    border-color: rgba(255,255,255,0.18);
}


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

.shared-opp-image {
    position: relative;

    height: 190px;

    overflow: hidden;

    background: #111;
}

.shared-opp-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.shared-opp-card:hover .shared-opp-image img {
    transform: scale(1.025);
}

.shared-opp-image-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 38%,
            rgba(13,13,13,.15) 60%,
            #0d0d0d 100%
        );

    pointer-events: none;
}


/* =========================================================
   BADGES
   ========================================================= */

.shared-opp-badges {
    position: absolute;

    top: 12px;
    left: 12px;
    right: 12px;

    z-index: 3;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 10px;
}

.shared-opp-badge {
    display: inline-flex;
    align-items: center;

    min-height: 25px;
    box-sizing: border-box;

    padding: 5px 11px;

    border-radius: 999px;

    font-family: 'Inter', sans-serif;

    font-size: 10px;
    line-height: 1;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

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

.shared-opp-category {
    background: rgba(0,0,0,.35);
    border: 1px solid transparent;
}

.shared-opp-live {
    gap: 6px;

    background: rgba(34,197,94,.15);

    color: #4ade80;

    border: 1px solid rgba(34,197,94,.30);
}

.shared-opp-live-dot {
    width: 6px;
    height: 6px;

    flex: 0 0 6px;

    border-radius: 50%;

    background: #4ade80;
}

.shared-opp-muted {
    background: rgba(255,255,255,.08);

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

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


/* =========================================================
   BODY
   ========================================================= */

.shared-opp-body {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 20px;

    box-sizing: border-box;
}

.shared-opp-heading {
    min-height: 76px;
}

.shared-opp-heading h3 {
    margin: 0 0 7px;

    color: #fff;

    font-family: 'Montserrat', sans-serif;

    font-size: 17px;
    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -.1px;
}

.shared-opp-heading p {
    margin: 0;

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

    font-family: 'Inter', sans-serif;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   THREE METRICS
   ========================================================= */

.shared-opp-metrics {
    display: grid;

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

    margin-top: 3px;

    padding: 14px 0 13px;

    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.shared-opp-metric {
    min-width: 0;

    display: flex;
    flex-direction: column;

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

    padding: 0 10px;

    box-sizing: border-box;
}

.shared-opp-metric + .shared-opp-metric {
    border-left: 1px solid rgba(255,255,255,.07);
}

.shared-opp-metric-value {
    color: #fff;

    font-family: 'Montserrat', sans-serif;

    font-size: 14px;
    line-height: 1.2;

    font-weight: 800;

    white-space: nowrap;
}

.shared-opp-metric-label {
    margin-top: 5px;

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

    font-family: 'Inter', sans-serif;

    font-size: 9px;
    line-height: 1;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* =========================================================
   PROGRESS
   ========================================================= */

.shared-opp-progress {
    padding-top: 13px;
}

.shared-opp-progress-top,
.shared-opp-progress-bottom {
    display: flex;

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

    gap: 12px;

    font-family: 'Inter', sans-serif;

    font-size: 9px;
    line-height: 1.3;

    color: rgba(255,255,255,.38);
}

.shared-opp-progress-top {
    margin-bottom: 6px;
}

.shared-opp-progress-bottom {
    margin-top: 6px;
}

.shared-opp-progress-track {
    width: 100%;
    height: 4px;

    overflow: hidden;

    border-radius: 999px;

    background: rgba(255,255,255,.06);
}

.shared-opp-progress-fill {
    height: 100%;

    min-width: 0;

    border-radius: 999px;

    transition: width .3s ease;
}


/* =========================================================
   SPOTS
   ========================================================= */

.shared-opp-spots {
    min-height: 16px;

    margin-top: 9px;

    font-family: 'Inter', sans-serif;

    font-size: 10px;

    line-height: 1.3;

    font-weight: 600;
}


/* =========================================================
   BOTTOM ACTION
   ========================================================= */

.shared-opp-bottom {
    display: flex;

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

    gap: 15px;

    margin-top: auto;
    padding-top: 14px;

    border-top: 1px solid rgba(255,255,255,.06);
}

.shared-opp-details {
    min-width: 0;

    overflow: hidden;

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

    font-family: 'Inter', sans-serif;

    font-size: 10px;
    line-height: 1.3;

    text-decoration: none;

    white-space: nowrap;
    text-overflow: ellipsis;

    transition: color .18s ease;
}

.shared-opp-details:hover {
    color: #fff;
}

.shared-opp-invest {
    display: inline-flex;

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

    gap: 5px;

    flex-shrink: 0;

    padding: 0;

    border: 0;
    background: transparent;

    color: #e11d2f;

    font-family: 'Inter', sans-serif;

    font-size: 10px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: .8px;

    text-transform: uppercase;

    text-decoration: none;

    cursor: pointer;
}

.shared-opp-invest svg {
    width: 14px;
    height: 14px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2;
}

.shared-opp-invest:hover {
    filter: brightness(1.25);
}


/* =========================================================
   DASHBOARD GRID
   ========================================================= */

.shared-opp-grid {
    display: grid;

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

    gap: 22px;
}


/* =========================================================
   PUBLIC GRID
   ========================================================= */

.shared-opp-grid.public-grid {
    width: 100%;
}


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

@media (max-width: 1050px) {

    .shared-opp-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


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

@media (max-width: 700px) {

    .shared-opp-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .shared-opp-card {
        border-radius: 12px;
    }

    .shared-opp-image {
        height: 190px;
    }

    .shared-opp-body {
        padding: 16px;
    }

    .shared-opp-heading {
        min-height: 70px;
    }

    .shared-opp-heading h3 {
        font-size: 15px;
    }

    .shared-opp-heading p {
        font-size: 11px;
    }

    .shared-opp-metric-value {
        font-size: 12px;
    }

    .shared-opp-metric-label {
        font-size: 8px;
    }

    .shared-opp-bottom {
        padding-top: 13px;
    }

    .shared-opp-details,
    .shared-opp-invest {
        font-size: 9px;
    }

}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 380px) {

    .shared-opp-image {
        height: 175px;
    }

    .shared-opp-body {
        padding: 14px;
    }

    .shared-opp-heading h3 {
        font-size: 14px;
    }

    .shared-opp-heading p {
        font-size: 10px;
    }

    .shared-opp-metric {
        padding: 0 5px;
    }

    .shared-opp-metric-value {
        font-size: 11px;
    }

}