/* static/css/components/ai-marketplace.css */

.ai-marketplace {
    background: #fff;
    width: 100%;
    padding: clamp(48px, 8vw, 128px) 0;
    padding-top: 0%;
}

.ai-marketplace__inner {
    max-width: 810px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

/* ========================
   Header: title + subtitle
======================== */
.ai-marketplace__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ai-marketplace__title {
    color: var(--Primary-Text, #353535);
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}

.ai-marketplace__subtitle {
    color: var(--Secondary-Text, #334155);
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(15px, 2vw, 18px);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 0;
}

/* ========================
   Cards grid — mobile first: 1 column
======================== */
.ai-marketplace__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
}

/* Card */
.ai-marketplace__card {
    display: flex;
    width: 100%;
    height: 383px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 15px;
    background-color: lightgray;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.ai-marketplace__card:hover {
    transform: translateY(-4px);
}

/* Dark overlay for text readability */
.ai-marketplace__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
    border-radius: 15px;
    pointer-events: none;
}

.ai-marketplace__label {
    color: #ffffff;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 150%;
    position: relative;
    z-index: 1;
}

.ai-marketplace__value {
    display: flex;
    width: 72px;
    height: 18px;
    padding: 5px;
    justify-content: center;
    align-items: center;
    border-radius: 25px;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.ai-marketplace__value-text {
    color: #4CAF50;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 150%;
}

/* ========================
   CTA Button
======================== */
.ai-marketplace__cta {
    display: flex;
    width: 196px;
    height: 48px;
    padding: 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 35px;
    border: 1px solid #E91E8C;
    background: transparent;
    color: var(--Primary-Text, #353535);
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.ai-marketplace__cta:hover {
    background: #E91E8C;
    color: #fff;
}

/* ========================
   Tablet+: 3 columns
======================== */
@media (min-width: 640px) {
    .ai-marketplace__cards {
        grid-template-columns: repeat(3, 1fr);
    }
}
