/* Fallacy Checker — kugraphics.org */

.fc-container {
    max-width: 800px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2d3748;
}

.fc-header { margin-bottom: 1.5rem; }
.fc-title { font-size: 1.75rem; font-weight: 700; color: #2e4057; margin-bottom: 0.5rem; }
.fc-subtitle { font-size: 0.95rem; color: #666; line-height: 1.6; }

/* Input Area */
.fc-textarea {
    width: 100%;
    min-height: 180px;
    padding: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.fc-textarea:focus {
    outline: none;
    border-color: #4a7c9b;
    box-shadow: 0 0 0 3px rgba(74, 124, 155, 0.15);
}

.fc-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.fc-mode-toggle {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #555;
}
.fc-mode-toggle label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.fc-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.fc-btn-primary {
    background: #2e4057;
    color: #fff;
}
.fc-btn-primary:hover { background: #4a7c9b; }
.fc-btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Results */
.fc-results {
    margin-top: 2rem;
    border-top: 2px solid #e5e7eb;
    padding-top: 1.5rem;
}

.fc-summary {
    background: #f0f7fa;
    border-left: 4px solid #4a7c9b;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.fc-fallacy-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.fc-fallacy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fc-fallacy-name {
    font-weight: 700;
    font-size: 1rem;
    color: #2e4057;
}

.fc-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.fc-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fc-badge-category { background: #e0e7ff; color: #3730a3; }
.fc-badge-fallacious { background: #fee2e2; color: #991b1b; }
.fc-badge-legitimate { background: #d1fae5; color: #065f46; }
.fc-badge-uncertain { background: #fef3c7; color: #92400e; }
.fc-badge-high { background: #dbeafe; color: #1e40af; }
.fc-badge-moderate { background: #e0e7ff; color: #4338ca; }
.fc-badge-low { background: #f3f4f6; color: #6b7280; }

.fc-fallacy-body { padding: 1.25rem; }

.fc-section {
    margin-bottom: 1rem;
}
.fc-section:last-child { margin-bottom: 0; }

.fc-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.3rem;
}

.fc-section-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #374151;
}

.fc-original-text {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    padding: 0.5rem 0.75rem;
    border-radius: 0 4px 4px 0;
    font-style: italic;
}

.fc-steelman {
    background: #d1fae5;
    border-left: 3px solid #10b981;
    padding: 0.5rem 0.75rem;
    border-radius: 0 4px 4px 0;
}

.fc-sound-version {
    background: #dbeafe;
    border-left: 3px solid #3b82f6;
    padding: 0.5rem 0.75rem;
    border-radius: 0 4px 4px 0;
}

.fc-no-fallacies {
    text-align: center;
    padding: 2rem;
    background: #d1fae5;
    border-radius: 8px;
    font-size: 1rem;
    color: #065f46;
}

.fc-overall {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Error */
.fc-error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 1rem;
    border-radius: 0 6px 6px 0;
    color: #991b1b;
    margin-top: 1rem;
}

/* Footer */
.fc-footer { margin-top: 2rem; }
.fc-note {
    font-size: 0.8rem;
    color: #9ca3af;
    font-style: italic;
    line-height: 1.5;
}

/* Loading animation */
@keyframes fc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.fc-loading { animation: fc-pulse 1.5s ease-in-out infinite; }

/* Responsive */
@media (max-width: 640px) {
    .fc-controls { flex-direction: column; align-items: stretch; }
    .fc-mode-toggle { flex-direction: column; gap: 0.4rem; }
    .fc-btn { width: 100%; }
    .fc-fallacy-header { flex-direction: column; align-items: flex-start; }
}
