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

.home-hero {

    position: relative;

    overflow: hidden;

    margin-bottom: 20px;

    padding: 30px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #eef8ff,
            #f8fbff 55%,
            #ffffff
        );

    border: 1px solid #dcefff;

    box-shadow:
        0 10px 35px rgba(15,23,42,.05);
}


.home-hero:before {

    content: "";

    position: absolute;

    width: 190px;

    height: 190px;

    right: -60px;

    top: -85px;

    border-radius: 50%;

    background:
        rgba(0,140,255,.07);
}


.home-hero h1 {

    position: relative;

    z-index: 2;

    margin: 0;

    color: #111827;

    font-size: 29px;

    line-height: 1.25;

    font-weight: 950;

    letter-spacing: -.6px;
}


.home-hero p {

    position: relative;

    z-index: 2;

    max-width: 720px;

    margin: 9px 0 0;

    color: #7c8796;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   FILTER
========================================================= */

.home-filters {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

    padding: 10px;

    background: #fff;

    border: 1px solid #edf0f4;

    border-radius: 14px;

    box-shadow:
        0 5px 20px rgba(15,23,42,.04);
}


.home-filters select {

    height: 40px;

    min-width: 175px;

    padding: 0 35px 0 12px;

    border: 1px solid #e1e6ec;

    border-radius: 9px;

    outline: none;

    background: #fff;

    color: #374151;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;
}


.home-filters select:focus {

    border-color: #008cff;

    box-shadow:
        0 0 0 3px rgba(0,140,255,.08);
}


.home-count {

    margin-left: auto;

    padding: 8px 13px;

    border-radius: 20px;

    background: #f4f7fa;

    color: #7b8694;

    font-size: 11px;

    font-weight: 850;

    white-space: nowrap;
}


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

.home-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(285px, 1fr)
        );

    gap: 17px;
}


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

.resource-card {

    position: relative;

    overflow: hidden;

    padding: 12px;

    background: #fff;

    border: 1px solid #e8edf2;

    border-radius: 18px;

    cursor: pointer;

    box-shadow:
        0 7px 25px rgba(15,23,42,.045);

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


.resource-card:hover {

    transform: translateY(-5px);

    border-color: #d3eaff;

    box-shadow:
        0 18px 42px rgba(15,23,42,.11);
}


/* =========================================================
   HOT
========================================================= */

.resource-hot {

    position: absolute;

    z-index: 10;

    top: 17px;

    right: -28px;

    width: 100px;

    padding: 5px 0;

    transform: rotate(45deg);

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #ff5b5b,
            #ff3030
        );

    color: #fff;

    font-size: 9px;

    font-weight: 950;
}


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

.resource-image {

    position: relative;

    width: 100%;

    height: 215px;

    overflow: hidden;

    border-radius: 14px;

    background: #f1f5f8;

    border: 1px solid #e4ebf1;
}


.resource-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .35s ease;
}


.resource-card:hover
.resource-image img {

    transform: scale(1.065);
}


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

.resource-image-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: flex-end;

    justify-content: center;

    padding-bottom: 13px;

    background:
        linear-gradient(
            transparent 55%,
            rgba(0,0,0,.45)
        );

    opacity: 0;

    transition: .2s;
}


.resource-card:hover
.resource-image-overlay {

    opacity: 1;
}


.resource-image-overlay span {

    padding: 7px 12px;

    border-radius: 9px;

    background:
        rgba(255,255,255,.95);

    color: #374151;

    font-size: 10px;

    font-weight: 850;
}


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

.resource-info {

    padding: 13px 3px 0;
}


.resource-name {

    color: #111827;

    font-size: 16px;

    line-height: 1.4;

    font-weight: 900;

    word-break: break-word;
}


.resource-category {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin-top: 7px;

    padding: 5px 8px;

    border-radius: 7px;

    background: #eef8ff;

    border: 1px solid #dcefff;

    color: #0082dc;

    font-size: 9px;

    font-weight: 850;
}


/* =========================================================
   TAGS
========================================================= */

.resource-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 11px;
}


.resource-tag {

    padding: 5px 8px;

    border-radius: 7px;

    background: #f6f8fa;

    border: 1px solid #edf0f4;

    color: #687384;

    font-size: 9px;

    font-weight: 750;
}


/* =========================================================
   STATUS
========================================================= */

.resource-pill {

    display: inline-flex;

    align-items: center;

    padding: 5px 8px;

    border-radius: 20px;

    font-size: 9px;

    font-weight: 850;
}


.resource-green {

    color: #16803c;

    background: #edfff4;

    border: 1px solid #cff4dc;
}


.resource-gold {

    color: #a56a00;

    background: #fff8e8;

    border: 1px solid #ffe5a9;
}


.resource-red {

    color: #d63232;

    background: #fff1f1;

    border: 1px solid #ffd8d8;
}


/* =========================================================
   STATS
========================================================= */

.resource-stats {

    display: flex;

    align-items: center;

    gap: 20px;

    margin-top: 14px;

    padding: 12px 3px;

    border-top: 1px solid #f0f2f5;

    border-bottom: 1px solid #f0f2f5;
}


.resource-stat {

    display: flex;

    align-items: center;

    gap: 5px;

    color: #8b95a5;

    font-size: 10px;

    font-weight: 650;
}


.resource-stat strong {

    color: #4b5563;

    font-weight: 900;
}


.resource-stat-icon {

    font-size: 13px;
}


/* =========================================================
   FOOT
========================================================= */

.resource-footer {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 10px;

    padding: 14px 3px 2px;
}


.resource-price {

    color: #008cff;

    font-size: 20px;

    line-height: 1.1;

    font-weight: 950;
}


.resource-price small {

    display: block;

    margin-top: 4px;

    color: #9aa3af;

    font-size: 9px;

    font-weight: 650;
}


.resource-detail-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 37px;

    padding: 0 13px;

    border-radius: 9px;

    background: #eef7ff;

    border: 1px solid #d8efff;

    color: #008cff;

    font-size: 10px;

    font-weight: 900;

    white-space: nowrap;

    transition: .2s;
}


.resource-card:hover
.resource-detail-btn {

    background: #008cff;

    border-color: #008cff;

    color: #fff;
}


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

.home-empty {

    padding: 65px 20px;

    text-align: center;

    background: #fff;

    border: 1px solid #edf0f4;

    border-radius: 18px;
}


.home-empty-icon {

    margin-bottom: 10px;

    font-size: 42px;
}


.home-empty h3 {

    margin: 0 0 5px;

    color: #222;

    font-size: 18px;

    font-weight: 900;
}


.home-empty p {

    margin: 0;

    color: #8b95a5;

    font-size: 12px;
}


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

@media (max-width: 650px) {

    .home-hero {

        padding: 22px 18px;

        border-radius: 16px;
    }


    .home-hero h1 {

        font-size: 22px;
    }


    .home-hero p {

        font-size: 12px;
    }


    .home-filters {

        flex-wrap: wrap;

        padding: 8px;
    }


    .home-filters select {

        flex: 1;

        min-width: 130px;
    }


    .home-count {

        width: 100%;

        margin-left: 0;

        text-align: center;
    }


    .home-grid {

        grid-template-columns: 1fr;

        gap: 12px;
    }


    .resource-card {

        border-radius: 16px;
    }


    .resource-image {

        height: 220px;

        border-radius: 14px;
    }

}


@media (max-width: 380px) {

    .resource-image {

        height: 195px;
    }


    .resource-stats {

        gap: 12px;
    }


    .resource-stat {

        font-size: 9px;
    }


    .resource-price {

        font-size: 18px;
    }


    .resource-detail-btn {

        padding: 0 10px;

        font-size: 9px;
    }

}
