/**
 * feed-activities.css — card di risorse, eventi e discussioni nel feed
 *
 * Estratto il 2026-08-07 da inc/feed-activities.php, dove viveva come <style>
 * agganciato a wp_head SENZA condizione: 189 righe iniettate nell'HTML di ogni
 * pagina del sito, anche dove nessuna card esiste.
 *
 * Spostamento fedele: nessun valore è stato cambiato. La sostituzione dei
 * letterali con i token di sf-design-tokens.css avverrà quando si tocca il
 * componente, non ora — un cambiamento alla volta resta verificabile.
 */

    /* ---- Resource Card nel feed ---- */
    .sf-resource-card {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        border: 1px solid #e8e8e8;
        border-radius: 10px;
        overflow: hidden;
        text-decoration: none;
        color: inherit;
        transition: box-shadow 0.2s, border-color 0.2s;
        margin: 10px 0 5px;
        padding: 16px;
    }
    .sf-resource-card:hover {
        border-color: #ccc;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
    .sf-resource-card-logo {
        flex-shrink: 0;
        width: 56px;
        height: 56px;
    }
    .sf-resource-card-logo img {
        width: 56px;
        height: 56px;
        border-radius: 10px;
        object-fit: cover;
        display: block;
    }
    .sf-resource-card-body {
        flex: 1 1 auto;
        min-width: 0;
    }
    .sf-resource-card-title {
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 4px;
        color: #1a1a1a;
        line-height: 1.3;
    }
    .sf-resource-card-cat {
        display: inline-block;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #003DA5;
        background: rgba(0, 61, 165, 0.08);
        padding: 2px 8px;
        border-radius: 4px;
        margin-bottom: 6px;
    }
    .sf-resource-card-desc {
        font-size: 14px;
        color: #666;
        margin: 4px 0 8px;
        line-height: 1.5;
    }
    .sf-resource-card-cta {
        font-size: 13px;
        font-weight: 600;
        color: #1a73e8;
    }
    .sf-resource-card:hover .sf-resource-card-cta {
        text-decoration: underline;
    }

    /* ---- Blog Post Card nel feed ---- */
    .sf-blog-card {
        display: block;
        border: 1px solid #e8e8e8;
        border-radius: 10px;
        overflow: hidden;
        text-decoration: none;
        color: inherit;
        transition: box-shadow 0.2s, border-color 0.2s;
        margin: 10px 0 5px;
    }
    .sf-blog-card:hover {
        border-color: #ccc;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
    .sf-blog-card-image {
        width: 100%;
        max-height: 240px;
        overflow: hidden;
    }
    .sf-blog-card-image img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        max-height: 240px;
    }
    .sf-blog-card-body {
        padding: 15px 18px;
    }
    .sf-blog-card-title {
        font-size: 17px;
        font-weight: 700;
        margin: 0 0 6px;
        color: #1a1a1a;
        line-height: 1.3;
    }
    .sf-blog-card-excerpt {
        font-size: 14px;
        color: #666;
        margin: 0 0 8px;
        line-height: 1.5;
    }
    .sf-blog-card-cta {
        font-size: 13px;
        font-weight: 600;
        color: #1a73e8;
    }
    .sf-blog-card:hover .sf-blog-card-cta {
        text-decoration: underline;
    }

    /* ---- Youzify overrides per le card ---- */
    body .youzify .activity-inner .sf-resource-card,
    body .youzify .activity-inner a.sf-resource-card,
    body .youzify .activity-inner .sf-blog-card,
    body .youzify .activity-inner a.sf-blog-card {
        display: flex !important;
        color: inherit !important;
        font-size: inherit !important;
        font-weight: normal !important;
        margin-top: 0 !important;
        word-break: normal !important;
        text-decoration: none !important;
    }
    body .youzify .activity-inner a.sf-blog-card {
        display: block !important;
    }
    body .youzify .activity-inner .sf-resource-card-title,
    body .youzify .activity-inner .sf-blog-card-title {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #1a1a1a !important;
        margin: 0 0 6px !important;
        line-height: 1.3 !important;
    }
    body .youzify .activity-inner .sf-resource-card-desc,
    body .youzify .activity-inner .sf-blog-card-excerpt {
        font-size: 14px !important;
        color: #666 !important;
        font-weight: normal !important;
        margin: 0 0 8px !important;
    }
    body .youzify .activity-inner .sf-resource-card-cta,
    body .youzify .activity-inner .sf-blog-card-cta {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #1a73e8 !important;
    }

    /* ---- Dark mode ---- */
    body.buddyx-dark-theme .sf-resource-card,
    body.buddyx-dark-theme .sf-blog-card {
        border-color: #2e2e2e;
    }
    body.buddyx-dark-theme .sf-resource-card:hover,
    body.buddyx-dark-theme .sf-blog-card:hover {
        border-color: #444;
        box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    }
    body.buddyx-dark-theme .sf-resource-card-title,
    body.buddyx-dark-theme .sf-blog-card-title {
        color: #e8e8e8;
    }
    body.buddyx-dark-theme .sf-resource-card-desc,
    body.buddyx-dark-theme .sf-blog-card-excerpt {
        color: #b3b3b3;
    }
    body.buddyx-dark-theme .sf-resource-card-cat {
        background: rgba(91, 159, 230, 0.15);
        color: #5b9fe6;
    }

    body.buddyx-dark-theme .youzify .activity-inner .sf-resource-card-title,
    body.buddyx-dark-theme .youzify .activity-inner .sf-blog-card-title {
        color: #e8e8e8 !important;
    }
    body.buddyx-dark-theme .youzify .activity-inner .sf-resource-card-desc,
    body.buddyx-dark-theme .youzify .activity-inner .sf-blog-card-excerpt {
        color: #b3b3b3 !important;
    }
