/* ═══════════════════════════════════════════
   TRUTH DUDE FACT CHECKER - WordPress Plugin CSS
   Inherits theme variables when available
   ═══════════════════════════════════════════ */

.tdd-fc {
    --fc-black: var(--tdd-black, #0a0a0a);
    --fc-dark: var(--tdd-dark, #1a1a1a);
    --fc-red: var(--tdd-red, #cc0000);
    --fc-red-dark: var(--tdd-red-dark, #990000);
    --fc-white: var(--tdd-white, #ffffff);
    --fc-cream: var(--tdd-cream, #f8f7f4);
    --fc-text: var(--tdd-text, #2d2d2d);
    --fc-text-light: var(--tdd-text-light, #6b6b6b);
    --fc-border: var(--tdd-border, #e2dfda);
    --fc-light-gray: var(--tdd-light-gray, #f0eeeb);
    --fc-radius: 8px;
    --fc-radius-lg: 12px;
    --fc-transition: 0.25s ease;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    font-family: 'Source Serif 4', Georgia, serif;
}

/* ─── Hero ─── */
.tdd-fc-hero { text-align: center; margin-bottom: 2.5rem; }
.tdd-fc-badge {
    display: inline-block;
    background: var(--fc-red);
    color: var(--fc-white);
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 1rem;
}
.tdd-fc-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 3rem;
    line-height: 1.05;
    color: var(--fc-black);
    margin: 0 0 0.75rem;
}
.tdd-fc-red { color: var(--fc-red); }
.tdd-fc-subtitle {
    font-size: 1.05rem;
    color: var(--fc-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── Tool Container ─── */
.tdd-fc-tool {
    background: var(--fc-light-gray);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--fc-border);
}

/* ─── Tabs ─── */
.tdd-fc-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-radius: var(--fc-radius);
    overflow: hidden;
    border: 2px solid var(--fc-border);
}
.tdd-fc-tab {
    flex: 1;
    padding: 0.85rem 0.5rem;
    background: var(--fc-white);
    color: var(--fc-text);
    border: none;
    border-right: 1px solid var(--fc-border);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all var(--fc-transition);
    text-align: center;
}
.tdd-fc-tab:last-child { border-right: none; }
.tdd-fc-tab.active { background: var(--fc-red); color: var(--fc-white); }
.tdd-fc-tab-icon { display: block; }
.tdd-fc-tab-label { display: block; }
.tdd-fc-tab-desc {
    display: block;
    font-size: 0.68rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
}

/* ─── Input Panels ─── */
.tdd-fc-input-panel { display: none; margin-bottom: 1rem; }
.tdd-fc-input-panel.active { display: block; }

.tdd-fc-input,
.tdd-fc-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--fc-border);
    border-radius: var(--fc-radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color var(--fc-transition);
    background: var(--fc-white);
}
.tdd-fc-textarea {
    font-family: Georgia, serif;
    line-height: 1.6;
    resize: vertical;
}
.tdd-fc-input:focus,
.tdd-fc-textarea:focus { border-color: var(--fc-red); }
.tdd-fc-charcount {
    text-align: right;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: var(--fc-text-light);
    margin-top: 4px;
}

/* ─── Dropzone ─── */
.tdd-fc-dropzone {
    border: 2px dashed var(--fc-border);
    border-radius: var(--fc-radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    background: var(--fc-light-gray);
    transition: all var(--fc-transition);
}
.tdd-fc-dropzone.has-file {
    border-color: var(--fc-red);
    background: rgba(204,0,0,0.03);
}
.tdd-fc-dropzone:hover { border-color: var(--fc-red); }
.tdd-fc-dropzone-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.tdd-fc-dropzone-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--fc-text);
    font-weight: 600;
}
.tdd-fc-dropzone-hint {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--fc-text-light);
    margin-top: 4px;
}

/* ─── Button ─── */
.tdd-fc-button {
    width: 100%;
    padding: 1rem;
    background: var(--fc-red);
    color: var(--fc-white);
    border: none;
    border-radius: var(--fc-radius);
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--fc-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.tdd-fc-button:hover { background: var(--fc-red-dark); }
.tdd-fc-button:disabled {
    background: var(--fc-dark);
    cursor: wait;
}
.tdd-fc-button-icon { font-size: 1.2rem; }
.tdd-fc-bolt-icon { height: 1.2em; width: auto; vertical-align: middle; display: inline-block; }

/* ─── Error ─── */
.tdd-fc-error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: var(--fc-radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: #dc2626;
}

/* ─── Loading ─── */
.tdd-fc-loading {
    text-align: center;
    padding: 2rem;
}
.tdd-fc-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--fc-border);
    border-top-color: var(--fc-red);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: tdd-fc-spin 0.8s linear infinite;
}
@keyframes tdd-fc-spin { to { transform: rotate(360deg); } }
.tdd-fc-loading-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--fc-text-light);
}

/* ─── Results ─── */
.tdd-fc-results { margin-top: 2rem; }

.tdd-fc-verdict-card {
    background: var(--fc-white);
    border-radius: var(--fc-radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--fc-border);
    margin-bottom: 1.5rem;
    text-align: center;
}
.tdd-fc-verdict-label {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: var(--fc-text-light);
    margin-bottom: 8px;
}
.tdd-fc-verdict-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.tdd-fc-meter-wrap { text-align: center; padding: 1rem 0 0.5rem; }
.tdd-fc-meter-wrap svg { display: block; margin: 0 auto; }
.tdd-fc-score {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 3rem;
    line-height: 1;
    margin-top: 4px;
}
.tdd-fc-score-label {
    font-family: Georgia, serif;
    font-size: 0.85rem;
    color: var(--fc-text-light);
    margin-top: 2px;
}
.tdd-fc-summary {
    font-family: Georgia, serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--fc-text);
    max-width: 500px;
    margin: 0.5rem auto 0;
}

/* ─── Stats ─── */
.tdd-fc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.tdd-fc-stat {
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    padding: 0.75rem;
    text-align: center;
}
.tdd-fc-stat-value {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.8rem;
    line-height: 1;
}
.tdd-fc-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: var(--fc-text-light);
    margin-top: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Section Titles ─── */
.tdd-fc-section-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.3rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--fc-black);
    display: flex;
    align-items: center;
    gap: 8px;
}
.tdd-fc-section-bar {
    width: 4px;
    height: 18px;
    background: var(--fc-red);
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}

/* ─── Claim Cards ─── */
.tdd-fc-claim {
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}
.tdd-fc-claim:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.tdd-fc-claim-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.tdd-fc-claim-num {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.2rem;
    color: var(--fc-border);
    min-width: 28px;
    padding-top: 2px;
}
.tdd-fc-claim-body { flex: 1; }
.tdd-fc-claim-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.tdd-fc-claim-category {
    font-size: 0.72rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--fc-text-light);
}
.tdd-fc-claim-confidence {
    font-size: 0.68rem;
    font-family: 'Inter', sans-serif;
    color: var(--fc-text-light);
}
.tdd-fc-claim-text {
    font-family: Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--fc-text);
    margin: 0;
}
.tdd-fc-claim-explanation {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--fc-border);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--fc-text-light);
    display: none;
}
.tdd-fc-claim.open .tdd-fc-claim-explanation { display: block; }
.tdd-fc-claim-toggle {
    font-size: 0.8rem;
    color: var(--fc-text-light);
    transition: transform 0.2s;
}
.tdd-fc-claim.open .tdd-fc-claim-toggle { transform: rotate(180deg); }

/* ─── Mini Verdict Badge ─── */
.tdd-fc-mini-verdict {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ─── Fallacy Cards ─── */
.tdd-fc-fallacy {
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border-left-width: 4px;
    border-left-style: solid;
}
.tdd-fc-fallacy-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.tdd-fc-fallacy-name {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1rem;
    color: var(--fc-black);
}
.tdd-fc-fallacy-severity {
    font-size: 0.65rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 6px;
    border-radius: 3px;
}
.tdd-fc-fallacy-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--fc-text-light);
    margin: 0;
    line-height: 1.5;
}

/* ─── Bottom Grid ─── */
.tdd-fc-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}
.tdd-fc-bottom-grid > div {
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    padding: 1.25rem;
}
.tdd-fc-mini-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1rem;
    margin: 0 0 0.75rem;
}
.tdd-fc-bias-item,
.tdd-fc-source-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    padding: 4px 0;
    border-bottom: 1px solid var(--fc-light-gray);
}
.tdd-fc-bias-item { color: var(--fc-text-light); }
.tdd-fc-source-item { color: var(--fc-red); }

/* ─── How It Works ─── */
.tdd-fc-how { margin-top: 3rem; }
.tdd-fc-how-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.6rem;
    text-align: center;
    margin: 0 0 1.5rem;
}
.tdd-fc-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.tdd-fc-how-step {
    background: var(--fc-white);
    border-radius: var(--fc-radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--fc-border);
}
.tdd-fc-how-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.tdd-fc-how-name {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}
.tdd-fc-how-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--fc-text-light);
    line-height: 1.5;
}

/* ─── What We Detect ─── */
.tdd-fc-detect { margin-top: 2rem; }
.tdd-fc-detect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.tdd-fc-detect-item {
    background: var(--fc-white);
    border-radius: var(--fc-radius);
    padding: 1rem;
    border: 1px solid var(--fc-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fc-text);
}
.tdd-fc-detect-item span { font-size: 1.5rem; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .tdd-fc-title { font-size: 2.2rem; }
    .tdd-fc-tool { padding: 1.25rem; }
    .tdd-fc-stats { grid-template-columns: repeat(2, 1fr); }
    .tdd-fc-how-grid,
    .tdd-fc-detect-grid { grid-template-columns: 1fr; }
    .tdd-fc-bottom-grid { grid-template-columns: 1fr; }
}

/* ─── Key Findings ─── */
.tdd-fc-findings-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.tdd-fc-finding {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--fc-text);
    line-height: 1.5;
}
.tdd-fc-finding-num {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.1rem;
    color: var(--fc-red);
    min-width: 20px;
}

/* ─── Claim Sources ─── */
.tdd-fc-claim-sources {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--fc-text-light);
}
.tdd-fc-claim-sources strong { color: var(--fc-text); }
.tdd-fc-claim-sources a {
    color: var(--fc-red);
    text-decoration: underline;
    text-decoration-color: rgba(204,0,0,0.3);
}
.tdd-fc-claim-sources a:hover { text-decoration-color: var(--fc-red); }

/* ─── Source items as links ─── */
.tdd-fc-source-item a {
    color: var(--fc-red);
    word-break: break-all;
}

/* ─── Web search badge ─── */
.tdd-fc-websearch-badge {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 4px 10px;
    background: rgba(22,163,74,0.08);
    border: 1px solid rgba(22,163,74,0.25);
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: #16a34a;
    font-weight: 600;
}

/* ─── Loading hint ─── */
.tdd-fc-loading-hint {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: var(--fc-border);
    margin-top: 4px;
}

/* ══════════════════════════════════════════
   v2.0.0 — Manipulation Analysis Styles
══════════════════════════════════════════ */

/* Technique cards */
.tdd-fc-technique {
  background: #fff8f0;
  border: 1px solid #fed7aa;
  border-left: 4px solid #ea580c;
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.tdd-fc-technique-name {
  font-weight: 800;
  font-size: 0.85rem;
  color: #ea580c;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.tdd-fc-technique-quote {
  background: #fff;
  border-left: 3px solid #ea580c;
  margin: 8px 0;
  padding: 8px 12px;
  font-style: italic;
  font-size: 0.88rem;
  color: #444;
  border-radius: 0 4px 4px 0;
}
.tdd-fc-technique-explanation {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Omission cards */
.tdd-fc-omission {
  background: #fff7ed;
  border: 1px solid #fde68a;
  border-left: 4px solid #ca8a04;
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.tdd-fc-omission-title {
  font-weight: 800;
  font-size: 0.85rem;
  color: #92400e;
  margin-bottom: 6px;
}
.tdd-fc-omission-why {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Questions to ask */
.tdd-fc-questions-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6b6b6b;
  margin: 10px 0 4px;
}
.tdd-fc-questions {
  margin: 0;
  padding-left: 18px;
  font-size: 0.84rem;
  color: #444;
  line-height: 1.7;
}
.tdd-fc-questions li {
  margin: 4px 0;
}

/* Who benefits */
#tdd-fc-who-section {
  background: #f9f7ff;
  border: 1px solid #ddd6fe;
  border-left: 4px solid #7c3aed;
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
  margin-top: 16px;
}

/* Manipulation index color override — red = bad (opposite of truth score) */
.tdd-fc-score-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #6b6b6b;
  margin-top: 4px;
}
