/* ═══════════════════════════════════════════════════════════
   TruthDude Fact Checks — Styles
   Dark theme + Red accents (#cc0000) consistent with site brand
═══════════════════════════════════════════════════════════ */

/* ─── Section wrapper ─── */
.tdfc-homepage-section {
    background: #0d0d0d;
    border-top: 3px solid #cc0000;
    border-bottom: 3px solid #cc0000;
    padding: 40px 0 30px;
    margin: 0 0 40px;
    width: 100%;
}

/* ─── Header ─── */
.tdfc-section-header {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.tdfc-section-header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tdfc-section-title {
    font-family: 'Arial Black', 'Impact', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;
    text-shadow: 0 0 20px rgba(204, 0, 0, 0.5);
}

.tdfc-lightning {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 6px #cc0000);
}

.tdfc-view-all {
    color: #cc0000;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #cc0000;
    padding: 6px 12px;
    border-radius: 3px;
    transition: all 0.2s;
}

.tdfc-view-all:hover {
    background: #cc0000;
    color: #fff !important;
    text-decoration: none !important;
}

/* ─── Two-panel layout ─── */
.tdfc-two-panel {
    display: flex;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tdfc-panel {
    flex: 1;
    min-width: 0;
}

/* ─── Divider ─── */
.tdfc-panel-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    gap: 8px;
}

.tdfc-divider-line {
    flex: 1;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #cc0000, transparent);
    min-height: 40px;
}

.tdfc-divider-bolt {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 4px #cc0000);
}

/* ─── Panel titles ─── */
.tdfc-panel-title {
    font-family: 'Arial Black', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    color: #cc0000;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tdfc-panel-icon {
    font-size: 1rem;
}

/* ─── Fact Check Cards ─── */
.tdfc-card-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tdfc-card {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.tdfc-card:hover {
    border-color: #4a4a4a;
    border-left-color: #cc0000;
    background: #323232;
    transform: translateX(3px);
}

.tdfc-card-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    text-decoration: none !important;
    color: #e0e0e0 !important;
}

.tdfc-card-link:hover {
    text-decoration: none !important;
    color: #e0e0e0 !important;
}

/* ─── Meter SVG as card image ─── */
.tdfc-card-meter {
    flex-shrink: 0;
    width: 90px;
}

.tdfc-meter-svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ─── Card content ─── */
.tdfc-card-content {
    flex: 1;
    min-width: 0;
}

.tdfc-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #e0e0e0 !important;
    margin: 0 0 5px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tdfc-card:hover .tdfc-card-title {
    color: #e0e0e0 !important;
}

.tdfc-card-claim {
    font-size: 0.75rem;
    color: #bbbbbb !important;
    margin: 0 0 6px;
    font-style: italic;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tdfc-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tdfc-card-date,
.tdfc-views {
    font-size: 0.7rem;
    color: #999999 !important;
}

/* ─── Verdict badges ─── */
.tdfc-verdict-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

.tdfc-verdict-true,
.tdfc-verdict-TRUE,
.tdfc-verdict-STRAIGHT_REPORTING     { background: rgba(74,222,128,0.12);  color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.tdfc-verdict-mostly-true,
.tdfc-verdict-MOSTLY_TRUE,
.tdfc-verdict-SELECTIVELY_FRAMED     { background: rgba(163,230,53,0.12);  color: #a3e635; border: 1px solid rgba(163,230,53,0.3); }
.tdfc-verdict-half-true,
.tdfc-verdict-MIXED,
.tdfc-verdict-EMOTIONALLY_LOADED     { background: rgba(251,191,36,0.12);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.tdfc-verdict-mostly-false,
.tdfc-verdict-MOSTLY_FALSE,
.tdfc-verdict-MISLEADING_BY_OMISSION { background: rgba(251,146,60,0.12);  color: #fb923c; border: 1px solid rgba(251,146,60,0.3); }
.tdfc-verdict-false,
.tdfc-verdict-FALSE,
.tdfc-verdict-OPINION_AS_NEWS,
.tdfc-verdict-FALSE_CLAIMS           { background: rgba(248,113,113,0.12); color: #f87171; border: 1px solid rgba(248,113,113,0.3); }
.tdfc-verdict-pants-on-fire          { background: rgba(248,113,113,0.12); color: #f87171; border: 1px solid rgba(248,113,113,0.3); }
.tdfc-verdict-unverifiable,
.tdfc-verdict-UNVERIFIABLE           { background: rgba(148,163,184,0.12); color: #94a3b8; border: 1px solid rgba(148,163,184,0.3); }

/* ─── Popular rank badge ─── */
.tdfc-card-popular .tdfc-card-link {
    padding-top: 22px; /* make room for rank badge */
}

.tdfc-card-rank {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    background: #cc0000;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 2;
    line-height: 1;
    flex-shrink: 0;
}

/* ─── Footer CTA ─── */
.tdfc-section-footer {
    text-align: center;
    margin-top: 30px;
}

.tdfc-cta-button {
    display: inline-block;
    background: #cc0000;
    color: #fff;
    text-decoration: none;
    font-family: 'Arial Black', sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 28px;
    border-radius: 3px;
    transition: all 0.2s;
    box-shadow: 0 0 20px rgba(204,0,0,0.3);
}

.tdfc-cta-button:hover {
    background: #ee0000;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0 30px rgba(204,0,0,0.6);
    transform: translateY(-1px);
}

/* ─── Empty state ─── */
.tdfc-empty {
    color: #555;
    font-style: italic;
    font-size: 0.85rem;
    padding: 20px;
    text-align: center;
}

.tdfc-empty a {
    color: #cc0000;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .tdfc-two-panel {
        flex-direction: column;
    }

    .tdfc-panel-divider {
        flex-direction: row;
        padding: 16px 0;
    }

    .tdfc-divider-line {
        flex: 1;
        height: 1px;
        width: auto;
        min-height: unset;
        background: linear-gradient(to right, transparent, #cc0000, transparent);
    }

    .tdfc-view-all {
        position: static;
        transform: none;
        margin-top: 8px;
    }

    .tdfc-section-header {
        flex-direction: column;
    }

    .tdfc-section-title {
        font-size: 1.4rem;
    }
}

/* ─── Single Fact Check Page — light theme matching factcheck tool ─── */
.single-fact_check,
.single-fact_check body,
.single-fact_check .site-main,
.single-fact_check .default-content,
.single-fact_check .entry-content,
.single-fact_check article,
.single-fact_check .hentry {
    background: #f0eeeb !important;
    color: #2d2d2d !important;
}

.single-fact_check h1,
.single-fact_check h2,
.single-fact_check h3,
.single-fact_check h4 {
    color: #0a0a0a !important;
}

.single-fact_check a {
    color: #cc0000 !important;
}

/* ─── Archive page ─── */
.post-type-archive-fact_check .tdfc-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

/* ─── Lightning bolt image icon ─── */
.tdfc-bolt-img {
    height: 1.4em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
}
