/* ARSES Homepage — Start exploring ARSES (marketplace entry) */

.arses-marketplace-entry-wrap {
    margin: 5rem auto;
    padding: 0 24px;
    background:
        radial-gradient(circle at top right, rgba(164, 198, 179, 0.1), transparent 32%),
        linear-gradient(180deg, #fffefc 0%, #fbfdfb 100%);
}

.arses-marketplace-entry {
    position: relative;
    max-width: var(--container, 1300px);
    margin: 0 auto;
    padding: 48px 0 56px;
}

.arses-marketplace-entry__header {
    max-width: 640px;
    margin: 0 0 40px;
}

.arses-marketplace-entry__title {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.12;
    color: #143828;
    letter-spacing: -0.03em;
}

.arses-marketplace-entry__subtitle {
    margin: 14px 0 0;
    font-size: clamp(1rem, 1.4vw, 1.08rem);
    line-height: 1.65;
    color: rgba(20, 56, 40, 0.68);
}

.arses-marketplace-entry__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.arses-marketplace-entry__card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid rgba(26, 115, 84, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    color: #173a2b;
    text-decoration: none;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(13, 59, 46, 0.04),
        0 8px 24px rgba(13, 59, 46, 0.05);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.arses-marketplace-entry__card:hover,
.arses-marketplace-entry__card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(26, 115, 84, 0.24);
    box-shadow:
        0 4px 12px rgba(13, 59, 46, 0.06),
        0 20px 40px rgba(13, 59, 46, 0.1);
    outline: none;
}

.arses-marketplace-entry__card:focus-visible {
    box-shadow:
        0 4px 12px rgba(13, 59, 46, 0.06),
        0 20px 40px rgba(13, 59, 46, 0.1),
        0 0 0 3px rgba(100, 167, 135, 0.28);
}

/* Image cards */
.arses-marketplace-entry__card--image {
    min-height: 280px;
}

.arses-marketplace-entry__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(145deg, #2d6a4f 0%, #52b788 100%);
}

.arses-marketplace-entry__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.28s ease;
}

.arses-marketplace-entry__card--image:hover .arses-marketplace-entry__image,
.arses-marketplace-entry__card--image:focus-visible .arses-marketplace-entry__image {
    transform: scale(1.04);
}

.arses-marketplace-entry__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 28, 20, 0.08) 0%, rgba(8, 28, 20, 0.18) 38%, rgba(8, 28, 20, 0.72) 100%);
    pointer-events: none;
}

.arses-marketplace-entry__content--overlay {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 22px 20px 20px;
    color: #ffffff;
}

.arses-marketplace-entry__card--image .arses-marketplace-entry__title {
    color: #ffffff;
}

.arses-marketplace-entry__card--image .arses-marketplace-entry__desc {
    color: rgba(255, 255, 255, 0.86);
    max-height: calc(1.55em * 2);
}

.arses-marketplace-entry__card--image .arses-marketplace-entry__action {
    color: #b8f0d4;
}

/* Icon fallback cards */
.arses-marketplace-entry__card--icon {
    gap: 18px;
    padding: 24px 22px 22px;
    min-height: 220px;
}

.arses-marketplace-entry__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #f4faf7 0%, #eaf5ef 100%);
    border: 1px solid rgba(26, 115, 84, 0.1);
    color: #2b7f62;
    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease;
}

.arses-marketplace-entry__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    transition: transform 0.22s ease;
}

.arses-marketplace-entry__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.arses-marketplace-entry__card--icon:hover .arses-marketplace-entry__icon-wrap,
.arses-marketplace-entry__card--icon:focus-visible .arses-marketplace-entry__icon-wrap {
    transform: scale(1.04);
    border-color: rgba(26, 115, 84, 0.22);
    background: linear-gradient(180deg, #eef8f2 0%, #e2f3ea 100%);
    color: #1a7354;
}

.arses-marketplace-entry__card--icon:hover .arses-marketplace-entry__icon,
.arses-marketplace-entry__card--icon:focus-visible .arses-marketplace-entry__icon {
    transform: scale(1.06);
}

.arses-marketplace-entry__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.arses-marketplace-entry__card--icon .arses-marketplace-entry__content {
    padding: 0;
}

.arses-marketplace-entry__title {
    display: block;
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.3;
    color: #143828;
    letter-spacing: -0.02em;
}

.arses-marketplace-entry__desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(20, 56, 40, 0.66);
    max-height: calc(1.55em * 2);
}

.arses-marketplace-entry__card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 10px;
    flex-shrink: 0;
}

.arses-marketplace-entry__action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #1a7354;
    transition: color 0.22s ease;
}

.arses-marketplace-entry__arrow {
    display: inline-block;
    transition: transform 0.22s ease;
}

.arses-marketplace-entry__card:hover .arses-marketplace-entry__arrow,
.arses-marketplace-entry__card:focus-visible .arses-marketplace-entry__arrow {
    transform: translateX(4px);
}

.arses-marketplace-entry__skeleton {
    min-height: 280px;
    border-radius: 20px;
    background: linear-gradient(90deg, #eef4f0 0%, #f7fbf9 45%, #eef4f0 100%);
    background-size: 200% 100%;
    animation: arses-marketplace-entry-shimmer 1.2s ease-in-out infinite;
}

@keyframes arses-marketplace-entry-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.arses-marketplace-entry__empty {
    margin: 0 0 28px;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(20, 56, 40, 0.62);
}

.arses-marketplace-entry__footer-cta {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.arses-marketplace-entry__all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid rgba(26, 115, 84, 0.18);
    border-radius: 999px;
    background: #ffffff;
    color: #1a7354;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    box-shadow:
        0 1px 2px rgba(13, 59, 46, 0.04),
        0 10px 24px rgba(13, 59, 46, 0.07);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease,
        background-color 0.22s ease;
}

.arses-marketplace-entry__all-link:hover,
.arses-marketplace-entry__all-link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(26, 115, 84, 0.32);
    background: #f8fcfa;
    color: #14553f;
    box-shadow:
        0 4px 12px rgba(13, 59, 46, 0.08),
        0 18px 36px rgba(13, 59, 46, 0.12),
        0 0 0 4px rgba(100, 167, 135, 0.12);
    outline: none;
}

.arses-marketplace-entry__all-arrow {
    display: inline-block;
    transition: transform 0.22s ease;
}

.arses-marketplace-entry__all-link:hover .arses-marketplace-entry__all-arrow,
.arses-marketplace-entry__all-link:focus-visible .arses-marketplace-entry__all-arrow {
    transform: translateX(4px);
}

.arses-marketplace-entry__grid[hidden],
.arses-marketplace-entry__empty[hidden] {
    display: none !important;
}

@media (max-width: 1200px) {
    .arses-marketplace-entry__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .arses-marketplace-entry__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .arses-marketplace-entry {
        padding: 40px 0 48px;
    }

    .arses-marketplace-entry__header {
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .arses-marketplace-entry-wrap {
        padding: 0 20px;
    }

    .arses-marketplace-entry__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .arses-marketplace-entry__card--image {
        min-height: 240px;
    }
}

@media (max-width: 480px) {
    .arses-marketplace-entry-wrap {
        padding: 0 16px;
        margin: 3.5rem auto;
    }

    .arses-marketplace-entry__grid {
        grid-template-columns: 1fr;
    }

    .arses-marketplace-entry__card--icon {
        padding: 20px 18px 18px;
    }
}
