/* ============================================
   EMBED CARD - Link Incorporado
   Layout: Título | Imagem + Descrição + Continue lendo | Favicon + Site + Share
   
   O card usa <div data-embed-url="..."> como container.
   O "Continue lendo" é um <a> real com o link.
   O card inteiro é clicável via JS (embed-card.js).
   ============================================ */

/* --- Container --- */
.embed-card-wrapper {
    margin: 25px 0;
    max-width: 100%;
    border: 1px solid #dadce0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.embed-card-wrapper:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    border-color: #bbb;
}

/* --- Header: Título --- */
.embed-card-header {
    padding: 18px 20px 10px;
}

.embed-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin: 0;
    display: block;
}

.embed-card-wrapper:hover .embed-card-title {
    color: #ff6900;
}

/* --- Body: Imagem + Texto --- */
.embed-card-body {
    display: flex;
    padding: 0 20px 14px;
    gap: 16px;
    align-items: flex-start;
}

.embed-card-image {
    width: 180px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.embed-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.embed-card-wrapper:hover .embed-card-image img {
    transform: scale(1.05);
}

.embed-card-text {
    flex: 1;
    min-width: 0;
}

.embed-card-description {
    font-size: 13px;
    color: #5f6368;
    line-height: 1.6;
    margin: 0 0 10px;
    display: block;
}

/* --- Continue lendo (link real) --- */
.embed-card-continue {
    font-size: 13px;
    color: #1a73e8 !important;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.embed-card-wrapper:hover .embed-card-continue {
    color: #ff6900 !important;
    text-decoration: underline !important;
}

/* --- Footer: Site + Share --- */
.embed-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid #efefef;
    background: #fafafa;
}

.embed-card-site {
    font-size: 12px;
    color: #70757a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.embed-card-favicon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
}

.embed-card-share-icon {
    display: flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    font-size: 18px;
    color: #70757a;
}

.embed-card-share-icon::after {
    content: "\2197";
}

.embed-card-wrapper:hover .embed-card-share-icon {
    opacity: 1;
}

/* ============================================
   COMPATIBILIDADE - Cards antigos com <a class="embed-card">
   ============================================ */
.embed-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #dadce0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.embed-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

/* Se embed-card está dentro de embed-card-wrapper, remover borda dupla */
.embed-card-wrapper .embed-card {
    border: none;
    border-radius: 0;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media screen and (max-width: 768px) {
    .embed-card-body {
        flex-direction: column;
    }

    .embed-card-image {
        width: 100%;
        height: auto;
        max-height: 200px;
    }

    .embed-card-header {
        padding: 14px 16px 8px;
    }

    .embed-card-body {
        padding: 0 16px 12px;
    }

    .embed-card-title {
        font-size: 16px;
    }

    .embed-card-description {
        font-size: 12px;
    }

    .embed-card-footer {
        padding: 10px 16px;
    }
}

@media screen and (max-width: 480px) {
    .embed-card-wrapper {
        margin: 15px 0;
    }

    .embed-card-image {
        max-height: 160px;
    }

    .embed-card-title {
        font-size: 15px;
    }
}
