/**
 * WS Booster - Cadriage / Bento Grid
 */

.ws-bento {
    display: grid;
    grid-auto-rows: 200px;
    gap: 16px;
    width: 100%;
}

.ws-bento__cell {
    position: relative;
    padding: 28px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* Hover effects */
.ws-bento-hover-lift .ws-bento__cell:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.ws-bento-hover-scale .ws-bento__cell:hover {
    transform: scale(1.03);
    z-index: 2;
}

.ws-bento-hover-glow .ws-bento__cell:hover {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.35);
}

.ws-bento__title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.ws-bento__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.85;
}

/* Stat */
.ws-bento__cell--stat {
    justify-content: flex-end;
    align-items: flex-start;
}

.ws-bento__stat {
    font-size: clamp(36px, 5vw, 68px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.ws-bento__stat-label {
    font-size: 14px;
    opacity: 0.75;
}

/* Image */
.ws-bento__cell--image {
    padding: 0;
}

.ws-bento__cell--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card */
.ws-bento__cell--card {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.ws-bento__card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.35;
}

.ws-bento__card-content {
    position: relative;
    z-index: 1;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.ws-bento__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: 12px;
    padding: 8px 16px;
    background: currentColor;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.ws-bento__btn::before {
    content: "";
    display: inline-block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    background: transparent;
    border-radius: inherit;
}

.ws-bento__cell--card .ws-bento__btn {
    background: #fff;
    color: #0f172a;
}

.ws-bento__cell--card .ws-bento__btn:hover {
    transform: translateX(3px);
}

@media (max-width: 900px) {
    .ws-bento {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .ws-bento__cell {
        grid-column: span 1 !important;
    }
}

@media (max-width: 600px) {
    .ws-bento {
        grid-template-columns: 1fr !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ws-bento__cell,
    .ws-bento__btn {
        transition: none;
    }
}
