/* css/blocks/bento-features.css */

.sp-bento-section {
    padding: 80px 24px;
    background-color: var(--bg-global);
}

.bento-grid {
    display: grid;
    /* Defines a 4-column layout for desktop */
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Base Card Styling */
.bento-card {
    background-color: var(--bg-surface);
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.bento-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* --- Top Left: Large Text Card --- */
.bento-large-text {
    grid-column: span 2; /* Takes up 2 out of 4 columns */
    justify-content: space-between;
}

.bento-heading {
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.bento-subtext {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 90%;
}

.bento-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background-color: var(--text-heading);
    color: var(--bg-surface);
    border-radius: 50%;
    transition: var(--transition);
}

.btn-icon:hover {
    background-color: var(--siren-red);
    transform: translateX(4px);
}

.bento-metric {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #FEE2E2; /* Light Red */
    color: var(--siren-red);
    display: flex;
    justify-content: center;
    align-items: center;
}

.metric-text strong {
    display: block;
    font-size: 1.2rem;
    color: var(--text-heading);
}

.metric-text span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Top Right: Tall Mockup Card --- */
.bento-tall-mockup {
    grid-column: span 2;
    background: linear-gradient(180deg, #2D3748 0%, #1A202C 100%);
    padding: 0;
    align-items: center;
    justify-content: center;
}

.mockup-bg-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--pyro-gold);
    filter: blur(100px);
    opacity: 0.2;
    top: -50px;
    left: -50px;
}

.mockup-img {
    width: 580px;
    height: auto;
   /* Sinks image slightly off the bottom */
    position: relative;
    z-index: 2;
}

/* --- Bottom Left: List Card --- */
.bento-list {
    grid-column: span 1;
    padding: 32px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.list-header h3 {
    font-size: 1.2rem;
}

.see-all {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-global);
    padding: 12px;
    border-radius: 12px;
}

.item-icon {
    font-size: 1.5rem;
}

.item-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-heading);
}

.item-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Bottom Middle: Graphic Card --- */
.bento-graphic {
    grid-column: span 1;
    padding: 32px;
}

.bento-graphic h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.graphic-element {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.owner-img {
    height: 180px;
    object-fit: contain;
}

.floating-sticker {
    position: absolute;
    bottom: 20px;
    left: 10px;
    background-color: var(--pyro-gold);
    color: var(--bg-surface);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 0.9rem;
    transform: rotate(-15deg);
    box-shadow: var(--shadow-sm);
}

/* --- Bottom Right: Growth Card --- */
.bento-growth {
    grid-column: span 2;
    padding: 32px;
    justify-content: center;
}

.growth-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.pill-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pill-badge.red {
    background-color: var(--siren-red);
    color: var(--bg-surface);
}

.pill-badge.dark {
    background-color: var(--text-heading);
    color: var(--bg-surface);
}

.bento-growth h3 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    max-width: 80%;
}

.trust-mark {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* --- Responsive Layout Rules --- */
@media (max-width: 1100px) {
    .bento-grid {
        /* Switch to a 2-column grid for tablets */
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large-text,
    .bento-tall-mockup,
    .bento-growth {
        grid-column: span 2;
    }
    
    .bento-list,
    .bento-graphic {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        /* Switch to a single column for mobile */
        grid-template-columns: 1fr;
    }

    .sp-bento-section {
        padding: 20px 0px;
    }

    .bento-large-text,
    .bento-tall-mockup,
    .bento-list,
    .bento-graphic,
    .bento-growth {
        grid-column: span 1;
    }

    .bento-heading {
        font-size: 2.2rem;
    }

    .bento-card {
        padding: 24px;
        border-radius: 24px;
    }

    .mockup-img {
        width: 220px;
    }
}