/**
 * DF EEAT - Visuella stilar för EEAT-element
 * Använder sajtens typsnitt via inherit. Inga inline font-family.
 */

/* ===== SENAST UPPDATERAD-BANNER ===== */
.df-eeat-updated-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px 0;
    padding: 10px 16px;
    background: #fef9f3;
    border-left: 4px solid #c9a96e;
    border-radius: 4px;
    font-size: 0.92em;
    color: #4a3520;
}

.df-eeat-updated-banner .df-eeat-icon {
    color: #c9a96e;
    font-size: 1.1em;
    font-weight: bold;
}

.df-eeat-updated-banner .df-eeat-label {
    font-weight: 600;
}

.df-eeat-updated-banner time {
    font-weight: 500;
}

/* ===== FAKTAGRANSKAT-BADGE ===== */
.df-eeat-factcheck {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0 24px 0;
    padding: 14px 18px;
    background: #f0f7f0;
    border-left: 4px solid #5a8a4f;
    border-radius: 4px;
    font-size: 0.94em;
}

.df-eeat-factcheck-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #5a8a4f;
    color: #fff;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    flex-shrink: 0;
}

.df-eeat-factcheck-badge .df-eeat-icon {
    font-size: 1em;
}

.df-eeat-factcheck-meta {
    color: #2c4a26;
    line-height: 1.4;
}

.df-eeat-factcheck-meta strong {
    color: #1a3214;
}

/* ===== KÄLLOR-SEKTION ===== */
.df-eeat-sources {
    margin: 40px 0 32px 0;
    padding: 20px 24px;
    background: #faf7f1;
    border: 1px solid #e5d8c0;
    border-radius: 6px;
}

.df-eeat-sources-title {
    margin: 0 0 16px 0;
    padding: 0 0 8px 0;
    border-bottom: 2px solid #c9a96e;
    color: #3a2818;
    font-size: 1.2em;
    font-weight: 600;
}

.df-eeat-sources-list {
    margin: 0;
    padding-left: 24px;
    color: #4a3520;
    font-size: 0.94em;
    line-height: 1.6;
}

.df-eeat-sources-list li {
    margin-bottom: 8px;
}

.df-eeat-sources-list li:last-child {
    margin-bottom: 0;
}

.df-eeat-sources-list a {
    color: #8b5a2b;
    text-decoration: underline;
    word-break: break-word;
}

.df-eeat-sources-list a:hover {
    color: #5e3b1c;
}

/* ===== FÖRFATTARBOX ===== */
.df-eeat-author-box {
    display: flex;
    gap: 20px;
    margin: 40px 0 24px 0;
    padding: 24px;
    background: #f8f4ec;
    border: 1px solid #d9c9a8;
    border-radius: 6px;
}

.df-eeat-author-avatar {
    flex-shrink: 0;
}

.df-eeat-author-avatar img {
    border-radius: 50%;
    width: 96px;
    height: 96px;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.df-eeat-author-content {
    flex: 1 1 auto;
    min-width: 0;
}

.df-eeat-author-label {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 10px;
    background: #c9a96e;
    color: #fff;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.df-eeat-author-name {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.2;
}

.df-eeat-author-name a {
    color: #3a2818;
    text-decoration: none;
}

.df-eeat-author-name a:hover {
    color: #8b5a2b;
}

.df-eeat-author-bio {
    color: #4a3520;
    line-height: 1.6;
    font-size: 0.96em;
}

.df-eeat-author-bio p {
    margin: 0 0 10px 0;
}

.df-eeat-author-bio p:last-child {
    margin-bottom: 0;
}

.df-eeat-author-link {
    margin-top: 10px;
    font-size: 0.92em;
}

.df-eeat-author-link a {
    color: #8b5a2b;
}

.df-eeat-author-articles {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e0d3b8;
    font-size: 0.92em;
}

.df-eeat-author-articles a {
    color: #5e3b1c;
    text-decoration: none;
    font-weight: 600;
}

.df-eeat-author-articles a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIV PÅ MOBIL ===== */
@media (max-width: 600px) {
    .df-eeat-author-box {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 16px;
        padding: 20px 16px;
    }

    .df-eeat-author-avatar img {
        width: 80px;
        height: 80px;
    }

    .df-eeat-factcheck {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 16px;
    }

    .df-eeat-sources {
        padding: 16px 18px;
    }

    .df-eeat-sources-list {
        padding-left: 20px;
    }

    .df-eeat-updated-banner {
        flex-wrap: wrap;
        font-size: 0.88em;
    }
}

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
    .df-eeat-updated-banner {
        background: #2a2218;
        border-left-color: #b8975e;
        color: #e8dec8;
    }

    .df-eeat-factcheck {
        background: #1c2a18;
        border-left-color: #6a9a5f;
        color: #d8e5cf;
    }

    .df-eeat-factcheck-meta {
        color: #c5d8b8;
    }

    .df-eeat-factcheck-meta strong {
        color: #e5f0d8;
    }

    .df-eeat-sources {
        background: #221c12;
        border-color: #4a3d28;
    }

    .df-eeat-sources-title {
        color: #e5d8c0;
        border-bottom-color: #b8975e;
    }

    .df-eeat-sources-list {
        color: #d8c9a8;
    }

    .df-eeat-sources-list a {
        color: #d4a574;
    }

    .df-eeat-author-box {
        background: #221c12;
        border-color: #4a3d28;
    }

    .df-eeat-author-name a {
        color: #f0e5cc;
    }

    .df-eeat-author-bio {
        color: #d8c9a8;
    }

    .df-eeat-author-articles {
        border-top-color: #4a3d28;
    }

    .df-eeat-author-articles a {
        color: #d4a574;
    }
}
