/* 
 * Terratorque - Category Grid (Cinematic Pöttinger Style v3.3)
 * Incluye Variante B (2 Columnas) y Inteligencia Bento Original
 */

/* 1. ESTRUTURA BASE (FULL WIDTH) */
.tt-categories-pottinger-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 400px;
    gap: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 40px 0;
    overflow: hidden;
    background: #0d593c;
}

/* 2. LÓGICA BENTO ORIGINAL (Layout Default) */
.tt-cat-rect.tt-grid-big { 
    grid-column: span 2; 
    grid-row: span 2; 
}
.tt-cat-rect.tt-grid-big .tt-cat-rect-title { font-size: 64px !important; }

.tt-cat-rect.tt-grid-full { 
    grid-column: span 4;
    grid-row: span 1;
}
.tt-cat-rect.tt-grid-full .tt-cat-rect-title { font-size: 48px !important; }

.tt-cat-rect.tt-grid-half { grid-column: span 2; }
.tt-cat-rect.tt-grid-row-3 { grid-column: span 1; }

/* 3. VARIANTE B: 2 COLUMNAS */
.tt-categories-pottinger-grid.tt-layout-2col {
    grid-template-columns: repeat(2, 1fr) !important;
}
.tt-categories-pottinger-grid.tt-layout-2col .tt-cat-rect {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
}

/* 4. DESIGN DA CARTA CINEMÁTICA */
.tt-cat-rect {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 60px;
    text-decoration: none;
    background: #0d593c;
}

.tt-cat-rect-img-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.1, 1, 0.2, 1);
    opacity: 0.85;
}

.tt-cat-rect-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
    transition: background 0.4s ease;
}

.tt-cat-rect-content {
    position: relative;
    z-index: 2;
    color: #fff;
    width: 100%;
}

.tt-cat-rect-title {
    font-size: 32px !important;
    font-weight: 900 !important;
    margin-bottom: 15px !important;
    text-transform: uppercase !important;
    color: #fff !important;
    letter-spacing: -1px !important;
    line-height: 0.9 !important;
}

.tt-cat-rect-btn {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #fff;
    border-radius: 50px;
    text-transform: uppercase;
    transition: 0.3s;
    background: transparent;
}

/* 5. HOVER EFFECTS */
.tt-cat-rect:hover .tt-cat-rect-img-bg { transform: scale(1.1); }
.tt-cat-rect:hover .tt-cat-rect-btn { background: #fff; color: #0D593C; }
.tt-cat-rect:hover .tt-cat-rect-overlay { 
    background: linear-gradient(180deg, transparent 10%, rgba(13, 89, 60, 0.8) 100%); 
}

/* 6. TARJETA ESPECIAL "VER TUDO" (#10) */
.tt-cat-view-all .tt-overlay-green {
    background: linear-gradient(180deg, rgba(13, 89, 60, 0.2) 0%, rgba(13, 89, 60, 0.8) 100%) !important;
}

/* 7. RESPONSIVO MÓVEL */
@media (max-width: 1200px) {
    .tt-categories-pottinger-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 400px; }
    .tt-cat-rect.tt-grid-big, .tt-cat-rect.tt-grid-full { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
    .tt-categories-pottinger-grid, 
    .tt-categories-pottinger-grid.tt-layout-2col { 
        grid-template-columns: 1fr !important; 
        grid-auto-rows: 350px;
    }
    .tt-cat-rect { padding: 40px; }
}
