﻿/* =========================================================
   GEDIAN SPORTS - INDEX OFFERS
   Compact marketplace cards inspired by the dense mobile
   marketplace layout provided by the user.
   ========================================================= */

.gs-offers-compact {
    width: 100%;
    padding: 14px;
    direction: rtl;
}

.gs-offers-compact-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.gs-offers-compact-kicker {
    display: block;
    margin-bottom: 2px;
    color: var(--gedian-primary, #5B8C3B);
    font-size: 11px;
    font-weight: 800;
}

.gs-offers-compact-head h2 {
    margin: 0;
    color: #1f2937;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.35;
}

.gs-offers-compact-count {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid #dfe6db;
    border-radius: 999px;
    background: #f8faf7;
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
}

.gs-offers-compact-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.gs-offer-compact-card {
    width: 100%;
    min-height: 116px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 164px;
    gap: 12px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .035);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

    .gs-offer-compact-card:hover {
        border-color: rgba(91, 140, 59, .38);
        box-shadow: 0 7px 18px rgba(15, 23, 42, .07);
        transform: translateY(-1px);
        color: inherit;
        text-decoration: none;
    }

    .gs-offer-compact-card:focus-visible {
        outline: 3px solid rgba(91, 140, 59, .22);
        outline-offset: 2px;
    }

.gs-offer-compact-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1px 2px;
}

.gs-offer-compact-topline {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

    .gs-offer-compact-topline h3 {
        min-width: 0;
        flex: 1 1 auto;
        margin: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        color: #1f2937;
        font-size: 14px;
        font-weight: 900;
        line-height: 1.45;
    }

.gs-offer-compact-card:hover .gs-offer-compact-topline h3 {
    color: var(--gedian-primary-dark, #466f2d);
}

.gs-offer-compact-badge {
    flex: 0 0 auto;
    padding: 3px 6px;
    border-radius: 999px;
    background: var(--gedian-primary-light, #edf5e8);
    color: var(--gedian-primary-dark, #466f2d);
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}

    .gs-offer-compact-badge.is-offer {
        background: var(--gedian-primary, #5B8C3B);
        color: #fff;
    }

.gs-offer-compact-price {
    margin-top: 4px;
    color: var(--gedian-primary-dark, #466f2d);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

.gs-offer-compact-meta {
    min-width: 0;
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 12px;
}

.gs-offer-compact-meta-item {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #7b8492;
    font-size: 10px;
    font-weight: 600;
}

    .gs-offer-compact-meta-item svg {
        flex: 0 0 13px;
        width: 13px;
        height: 13px;
        color: #73806e;
    }

    .gs-offer-compact-meta-item span {
        max-width: 240px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

.gs-offer-compact-contact {
    min-width: 0;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
}

.gs-offer-compact-whatsapp {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #20c967;
    color: #fff;
}

    .gs-offer-compact-whatsapp svg {
        width: 14px;
        height: 14px;
    }

.gs-offer-compact-contact-label {
    font-size: 11px;
    font-weight: 800;
}

.gs-offer-compact-phone {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #168d48;
    font-size: 10px;
    font-weight: 800;
}

.gs-offer-compact-media {
    min-width: 0;
    height: 96px;
    display: grid;
    gap: 5px;
    align-self: center;
}

    .gs-offer-compact-media.has-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gs-offer-compact-media.has-one {
        grid-template-columns: 1fr;
    }

.gs-offer-compact-image-slot {
    min-width: 0;
    height: 96px;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f4ef;
}

    .gs-offer-compact-image-slot img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform .22s ease;
    }

.gs-offer-compact-card:hover .gs-offer-compact-image-slot img {
    transform: scale(1.025);
}

.gs-offer-compact-image-slot.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a89c;
}

    .gs-offer-compact-image-slot.is-placeholder svg {
        width: 28px;
        height: 28px;
    }

.gs-offers-compact-state {
    min-height: 110px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 1px dashed #d8ded3;
    border-radius: 14px;
    background: #fbfcfa;
    text-align: center;
}

    .gs-offers-compact-state strong {
        color: #374151;
        font-size: 13px;
        font-weight: 900;
    }

    .gs-offers-compact-state span {
        color: #8b9388;
        font-size: 11px;
    }

    .gs-offers-compact-state.is-error {
        border-color: #efcfcb;
        background: #fff7f6;
    }

        .gs-offers-compact-state.is-error strong,
        .gs-offers-compact-state.is-error span {
            color: #9c3b32;
        }

@media (max-width: 900px) {
    .gs-offer-compact-card {
        grid-template-columns: minmax(0, 1fr) 148px;
    }

    .gs-offer-compact-media,
    .gs-offer-compact-image-slot {
        height: 90px;
    }
}

@media (max-width: 620px) {
    .gs-offers-compact {
        padding: 10px;
    }

    .gs-offers-compact-list {
        gap: 8px;
    }

    .gs-offer-compact-card {
        min-height: 104px;
        grid-template-columns: minmax(0, 1fr) 126px;
        gap: 9px;
        padding: 8px;
        border-radius: 13px;
    }

    .gs-offer-compact-media,
    .gs-offer-compact-image-slot {
        height: 86px;
    }

    .gs-offer-compact-image-slot {
        border-radius: 9px;
    }

    .gs-offer-compact-topline h3 {
        font-size: 13px;
    }

    .gs-offer-compact-price {
        font-size: 13px;
    }

    .gs-offer-compact-meta {
        margin-top: 6px;
        gap: 4px 8px;
    }

    .gs-offer-compact-meta-item {
        font-size: 9px;
    }

        .gs-offer-compact-meta-item span {
            max-width: 150px;
        }

    .gs-offer-compact-contact {
        margin-top: 6px;
    }

    .gs-offer-compact-whatsapp {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
    }

    .gs-offer-compact-phone {
        display: none;
    }
}

@media (max-width: 420px) {
    .gs-offers-compact-head h2 {
        font-size: 17px;
    }

    .gs-offer-compact-card {
        grid-template-columns: minmax(0, 1fr) 112px;
    }

    .gs-offer-compact-media,
    .gs-offer-compact-image-slot {
        height: 82px;
    }

    .gs-offer-compact-meta-item:nth-child(2) {
        display: none;
    }
}
