/* ==========================================================================
   SANTIS BENTO SYSTEM (V6.0)
   Architecture: 12-Column Dashboard Grid
   Aesthetic: "Quiet Luxury" Dashboard
   ========================================================================== */

/* --- 1. THE GRID CONTAINER --- */
#bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(300px, auto);
    /* Base height unit */
    gap: 24px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding-bottom: 120px;
    opacity: 0;
    animation: simpleFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes simpleFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 2. BENTO MODULES (Sizes) --- */

/* Module: HERO (2x2 Big Square or Wide) */
.bento-hero {
    grid-column: span 8;
    grid-row: span 2;
    min-height: 600px;
}

/* Module: TALL (Portrait) */
.bento-tall {
    grid-column: span 4;
    grid-row: span 2;
}

/* Module: WIDE (Landscape) */
.bento-wide {
    grid-column: span 8;
    grid-row: span 1;
}

/* Module: BOX (Standard) */
.bento-box {
    grid-column: span 4;
    grid-row: span 1;
}

/* --- 3. THE CARD APPEARANCE --- */
.bento-card {
    position: relative;
    background: #111;
    border-radius: 20px;
    /* Soft Tech feel */
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(212, 175, 55, 0.3);
    /* Santis Gold */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 5;
}

/* Image Layer */
.bento-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) desaturate(0.2);
    transition: all 0.8s ease;
}

.bento-card:hover .bento-img {
    filter: brightness(1) desaturate(0);
    transform: scale(1.05);
}

/* Content Layer (Overlay) */
.bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

/* Typography */
.bento-cat {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 8px;
    opacity: 0.8;
}

.bento-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.1;
    font-weight: 500;
}

.bento-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    max-width: 90%;
    /* Clamp text line count */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

/* Hover Reveals */
.bento-card:hover .bento-desc {
    opacity: 1;
    transform: translateY(0);
}

/* --- 4. RESPONSIVE --- */
@media (max-width: 1024px) {
    #bento-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Cols on Tablet */
        grid-auto-rows: 350px;
        gap: 20px;
    }

    .bento-hero,
    .bento-wide,
    .bento-tall,
    .bento-box {
        grid-column: span 1;
        /* Normalize to 1 unit */
        grid-row: span 1;
    }

    .bento-hero {
        grid-column: span 2;
    }

    /* Hero stays big */
}

@media (max-width: 768px) {
    #bento-grid {
        display: flex;
        flex-direction: column;
        /* Stack on Mobile */
        padding: 0 20px 80px 20px;
    }

    .bento-card {
        min-height: 400px;
        /* Tall cards on mobile */
    }

    .bento-desc {
        opacity: 1;
        /* Always show text on mobile */
        transform: none;
    }
}