/* features/features.css */

.feat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 640px) {
    .feat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }
}

.feat-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 16px 8px 16px 14px;
    min-height: 150px;
    border-radius: 16px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 14px 34px rgba(0,0,0,0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Full card background image */
.feat-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

/* Right-side art */
.feat-art-wrap {
    position: relative;
    z-index: 2;
    flex: 0 0 120px;
    overflow: visible;
}

.feat-art {
    position: absolute;
    top: -6px;
    bottom: -6px;
    left: 0;
    right: -28px;
    width: calc(100% + 28px);
    height: calc(100% + 12px);
    object-fit: contain;
    object-position: center center;
    transform-origin: center center;
    transform: scale(0.82);
    transition: transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    pointer-events: none;
    user-select: none;
}

.feat-card:hover .feat-art {
    transform: scale(0.88);
}

/* Subtle bottom gradient only for text readability */
.feat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.feat-card-left {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.feat-top {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.feat-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

.feat-title {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.15;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.feat-desc {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.62);
    line-height: 1.5;
    margin-top: 4px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

.feat-cta {
    margin-top: 7px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: rgba(0,255,135,0.9);
    text-shadow: 0 2px 10px rgba(0,0,0,0.65);
}

@media (max-width: 639px) {
    .feat-grid { gap: 8px; }

    .feat-card {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 10px 8px 14px;
        min-height: 190px;
        border-radius: 14px;
    }

    .feat-overlay {
        background: linear-gradient(to bottom,
            rgba(0,0,0,0.1) 0%,
            rgba(0,0,0,0.5) 50%,
            rgba(0,0,0,0.9) 100%);
    }

    /* art: TOP CENTER */
    .feat-art-wrap {
        order: -1;
        flex: none;
        width: 100%;
        height: 78px;
        position: relative;
        overflow: visible;
    }

    .feat-art {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        right: 0;
        object-fit: contain;
        object-position: center center;
        transform: scale(0.78);
        transform-origin: center center;
        filter: drop-shadow(0 6px 14px rgba(0,0,0,0.6));
    }

    .feat-card:hover .feat-art { transform: scale(0.82); }

    /* text: centered below art */
    .feat-card-left {
        order: 1;
        flex: 1;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        padding: 0;
        gap: 0;
    }

    .feat-top {
        align-items: center;
        gap: 2px;
    }

    .feat-kicker { font-size: 9px; letter-spacing: 0.08em; }
    .feat-title  { font-size: 15px; line-height: 1.1; }
    .feat-desc   { display: -webkit-box; font-size: 10px; line-height: 1.4; margin-top: 4px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    .feat-cta {
        display: inline-block;
        margin-top: 7px;
        font-size: 0;
        background: rgba(0,255,135,0.18);
        border: 1px solid rgba(0,255,135,0.4);
        padding: 6px 14px;
        border-radius: 999px;
        text-shadow: none;
        backdrop-filter: blur(4px);
    }

    .feat-cta::before {
        content: attr(data-label);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.06em;
        color: rgba(0,255,135,0.95);
    }
}

@media (min-width: 768px) {
    .feat-card { min-height: 160px; }
}
