﻿.resource-card-wrapper,
.resource-card-wrapper:hover {
    text-decoration: none;
}

    .resource-card-wrapper .description {
        color: var(--text-default);
    }

.resource-card {
    position: relative;
    min-width: 380px;
    width: 28vw;
    height: 17.4rem;
    background-color: #fdfdfd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 8px 1px rgba(20, 20, 20, .3);
    transition: .25s ease-in-out;
}

.resource-card-wrapper.not-visible{
    opacity: .75;
}

.resource-card-wrapper.not-active{
    filter: grayscale(1);
}

.resource-card:hover {
    transform: translateY(-6px);
    background: #fff;
}

.resource-card .card-image {
    position: relative;
    width: 100%;
    height: 2.8rem;
    background-color: #b7b2a5;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.card-pill {
    position: absolute;
    top: .5rem;
    right: 1rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--highlight-dark-1);
    font-size: .8rem;
    font-weight: 700;
}

.resource-card .badge {
    position: absolute;
    left: 1rem;
    bottom: -1.9rem;
    padding: 0;
    font-size: .85rem;
}

/*.resource-card .points-card {
    position: absolute;
    bottom: -2.25rem;
    right: 1rem;
    background-color: #d4d4d4;
    border-radius: 10px;
    color: #666;
    font-weight: 600;
    padding: .2rem .5rem;
    font-size: .85rem;
    line-height: 1.2rem;
    font-family: Arial, Helvetica, sans-serif;
}*/

.resource-card .card-content {
    position: relative;
    padding: 0 1.5rem;
    height: 12rem;
    display: flex;
    flex-direction: column;
}

.resource-card .details {
    height: 2.2rem;
    padding: .6rem 0;
    text-align: right;
    color: var(--text-light);
    font-family: Consolas, monospace;
    font-weight: 600;
}

.resource-card .title {
    font-size: 1.45rem;
    line-height: 1.75rem;
    font-weight: 600;
    margin-bottom: .3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: left;
    flex-shrink: 0;
    color: var(--highlight-dark-1);
}

.resource-card .title:hover {
    text-decoration: underline;
    color: var(--highlight);
}

.resource-card .description {
    font-size: .95rem;
    text-align: justify;
    padding-left: 0.25rem;
    padding-right: 1.25rem;
    margin-bottom: .5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    hyphens: auto;
    font-family: "Inter", "Helvetica Neue", "Helvetica", Arial, sans-serif;
}

.resource-card .card-info {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 0 1.5rem .75rem 1.5rem;
    color: var(--text-light);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.resource-card .price,
.resource-card .owned,
.resource-card .exclusive {
    color: #fff;
    font-weight: 600;
    padding: 0 .75rem;
    border-radius: 15px;
}

.resource-card .price {
    background-color: var(--highlight);
}

.resource-card .owned {
    background-color: var(--success);
}

.resource-card .exclusive {
    background-color: var(--alert);
    font-size: .9em;
}

.resource-card .card-action{
    color: var(--highlight-dark-1);
    font-weight: 700;
    justify-self: end;
}

@media (max-width: 768px) {
    .resource-card .card-content {
        padding: 0 1.2rem;
    }

    .resource-card .title {
        font-size: 1.33rem;
    }

    .resource-card .description {
        font-size: .9rem;
    }
}