/* ============================================================
   Receitas LinhasCorrente – Widget Styles
   ============================================================ */

/* Grid wrapper */
.rlc-receitas-widget {
    width: 100%;
}

.rlc-receitas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card */
.rlc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.rlc-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Link de cobertura total da imagem */
.rlc-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ---- Imagem ---- */
.rlc-card__image-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 70%; /* proporção default – sobrescrita pelo Elementor */
    overflow: hidden;
    background-color: #f5f5f5;
}

.rlc-card__image-wrap img,
.rlc-card__image-wrap > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
}

/* WordPress envolve a imagem em <a> quando há link na imagem destacada */
.rlc-card__image-wrap a {
    position: absolute;
    inset: 0;
    display: block;
}

.rlc-card__image-wrap a img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
}

.rlc-card--zoom:hover .rlc-card__image-wrap img,
.rlc-card--zoom:hover .rlc-card__image-wrap .rlc-card__img {
    transform: scale(1.07);
}

/* Overlay hover */
.rlc-card__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
    pointer-events: none;
}

.rlc-card:hover .rlc-card__overlay {
    opacity: 1;
}

/* Placeholder sem imagem */
.rlc-card__no-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f8f8, #ececec);
    color: #aaa;
    font-size: 13px;
    font-style: italic;
}

/* ---- Corpo / Título ---- */
.rlc-card__body {
    padding: 0 0 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rlc-card__title {
    margin: 12px 0 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    color: #1a1a1a;
}

.rlc-card__title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease;
}

.rlc-card__title a:hover {
    color: #555;
}

/* ---- Mensagens ---- */
.rlc-no-results {
    padding: 24px;
    text-align: center;
    color: #777;
    font-style: italic;
    width: 100%;
}

.rlc-notice {
    padding: 12px 16px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    font-size: 13px;
    color: #856404;
    border-radius: 4px;
}

/* ---- Responsivo básico (sem Elementor breakpoints) ---- */
@media (max-width: 1024px) {
    .rlc-receitas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .rlc-receitas-grid {
        grid-template-columns: 1fr;
    }
}
