/* Offset do main: ver mgi-site-layout.css (#new-home-root .mgi-site-main > .br-v2 > main) */

.br-v2 .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.br-v2-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 767.98px) {
    .br-v2-bento-grid {
        grid-template-columns: 1fr;
    }
}

.br-v2-spotlight-deco {
    color: #ffffff;
}

/* Hover bordor + texto branco (repositório e acesso rápido) */
.br-v2 .br-v2-card-hover {
    position: relative;
    z-index: 0;
    overflow: hidden;
    cursor: default;
    transition:
        background-color 0.38s ease,
        color 0.38s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.38s ease,
        border-color 0.38s ease;
}

.br-v2 .br-v2-card-hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 55%);
    opacity: 0;
    transition: opacity 0.38s ease;
    pointer-events: none;
    z-index: 0;
}

.br-v2 .br-v2-card-hover > * {
    position: relative;
    z-index: 1;
}

.br-v2 .br-v2-card-hover:hover,
.br-v2 .br-v2-card-hover:focus-within {
    z-index: 2;
    background-color: #71130d !important;
    border-color: #71130d !important;
    transform: translateY(-3px);
    box-shadow: 0 20px 56px rgba(113, 19, 13, 0.3), 0 2px 8px rgba(113, 19, 13, 0.18);
}

.br-v2 .br-v2-card-hover:hover::after,
.br-v2 .br-v2-card-hover:focus-within::after {
    opacity: 1;
}

.br-v2 .br-v2-cell-title,
.br-v2 .br-v2-cell-body,
.br-v2 .br-v2-cell-meta,
.br-v2 .br-v2-cell-link,
.br-v2 .br-v2-cell-btn,
.br-v2 .br-v2-cell-icon,
.br-v2 .br-v2-cell-badge {
    transition: color 0.38s ease, background-color 0.38s ease, border-color 0.38s ease;
}

.br-v2 .br-v2-card-hover:hover .br-v2-cell-title,
.br-v2 .br-v2-card-hover:focus-within .br-v2-cell-title,
.br-v2 .br-v2-card-hover:hover .br-v2-cell-body,
.br-v2 .br-v2-card-hover:focus-within .br-v2-cell-body,
.br-v2 .br-v2-card-hover:hover .br-v2-cell-meta,
.br-v2 .br-v2-card-hover:focus-within .br-v2-cell-meta,
.br-v2 .br-v2-card-hover:hover .br-v2-cell-icon,
.br-v2 .br-v2-card-hover:focus-within .br-v2-cell-icon,
.br-v2 .br-v2-card-hover:hover .br-v2-cell-icon .material-symbols-outlined,
.br-v2 .br-v2-card-hover:focus-within .br-v2-cell-icon .material-symbols-outlined {
    color: #ffffff !important;
}

.br-v2 .br-v2-card-hover:hover .br-v2-cell-link,
.br-v2 .br-v2-card-hover:focus-within .br-v2-cell-link {
    color: #ffcac4 !important;
}

.br-v2 .br-v2-card-hover:hover .br-v2-cell-badge,
.br-v2 .br-v2-card-hover:focus-within .br-v2-cell-badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.br-v2 .br-v2-card-hover:hover .br-v2-cell-icon,
.br-v2 .br-v2-card-hover:focus-within .br-v2-cell-icon {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.br-v2 .br-v2-card-hover:hover .border-surface-container-high,
.br-v2 .br-v2-card-hover:focus-within .border-surface-container-high {
    border-color: rgba(255, 255, 255, 0.28) !important;
}

.br-v2 .br-v2-card-hover:hover .br-v2-cell-btn,
.br-v2 .br-v2-card-hover:focus-within .br-v2-cell-btn {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.br-v2 .br-v2-card-hover:hover .br-v2-cell-btn:hover,
.br-v2 .br-v2-card-hover:focus-within .br-v2-cell-btn:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.br-v2 .br-v2-quick-row {
    position: relative;
    z-index: 0;
    overflow: hidden;
    transition:
        background-color 0.38s ease,
        color 0.38s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.38s ease;
}

.br-v2 .br-v2-quick-row:hover,
.br-v2 .br-v2-quick-row:focus-within {
    z-index: 1;
    background-color: #71130d !important;
    border-color: #71130d !important;
    transform: translateY(-2px);
}

.br-v2 .br-v2-quick-row:hover .br-v2-quick-title,
.br-v2 .br-v2-quick-row:focus-within .br-v2-quick-title,
.br-v2 .br-v2-quick-row:hover .br-v2-quick-sub,
.br-v2 .br-v2-quick-row:focus-within .br-v2-quick-sub {
    color: #ffffff !important;
}

.br-v2 .br-v2-quick-row:hover .br-v2-quick-icon,
.br-v2 .br-v2-quick-row:focus-within .br-v2-quick-icon {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

@media (prefers-reduced-motion: reduce) {
    .br-v2 .br-v2-card-hover,
    .br-v2 .br-v2-quick-row {
        transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    }

    .br-v2 .br-v2-card-hover:hover,
    .br-v2 .br-v2-card-hover:focus-within,
    .br-v2 .br-v2-quick-row:hover,
    .br-v2 .br-v2-quick-row:focus-within {
        transform: none;
    }
}
