/* Mindhalo Debate - Modern Dark Theme */

:root {
    /* Dark Theme Base - Sophisticated charcoal, not pure black */
    --bg: #0a0a0b;
    --bg-elevated: #111113;
    --bg-card: #151518;
    --bg-input: #1a1a1e;
    --border: #27272a;
    --border-focus: #3f3f46;
    --text: #fafafa;
    --text-dim: #a1a1aa;
    --text-muted: #71717a;

    /* Mindhalo Cyan Accent */
    --accent: #38bdf8;
    --accent-dim: rgba(56, 189, 248, 0.12);
    --accent-glow: rgba(56, 189, 248, 0.25);

    /* Agent Colors - Vibrant but not harsh */
    --blue: #60a5fa;
    --blue-dim: rgba(96, 165, 250, 0.12);
    --orange: #fb923c;
    --orange-dim: rgba(251, 146, 60, 0.12);

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, transparent 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    padding-top: 56px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}

.logo-icon {
    color: var(--accent);
    font-size: 1.25rem;
}

.logo-text {
    color: var(--text);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.logo-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Container - responsive width */
.container {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* Main Card */
.main-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

/* Compact Hero */
.hero-compact {
    text-align: center;
    margin-bottom: 1.5rem;
}

.hero-title-compact {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.hero-title-compact .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    color: var(--text-dim);
    font-size: 1rem;
}

/* Template Cards Section */
.templates-section {
    margin-bottom: 1.5rem;
}

.templates-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.templates-scroll::-webkit-scrollbar {
    height: 4px;
}

.templates-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.templates-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.template-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem;
    min-width: 140px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.template-card:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.15);
}

.template-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.template-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.template-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.templates-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.templates-divider::before,
.templates-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    animation: modalSlideIn 0.2s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    padding-right: 2rem;
}

.modal-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.template-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.template-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.template-field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dim);
}

.template-field input,
.template-field textarea,
.template-field select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    transition: border-color 0.2s;
}

.template-field input:focus,
.template-field textarea:focus,
.template-field select:focus {
    outline: none;
    border-color: var(--accent);
}

.template-field textarea {
    resize: vertical;
    min-height: 80px;
}

.template-field input::placeholder,
.template-field textarea::placeholder {
    color: var(--text-muted);
}

/* Modal Advanced Options */
.modal-advanced {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.modal-advanced summary {
    padding: 0.6rem 0.85rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
    list-style: none;
}

.modal-advanced summary::-webkit-details-marker {
    display: none;
}

.modal-advanced summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 0.4rem;
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.modal-advanced[open] summary::before {
    transform: rotate(90deg);
}

.modal-advanced summary:hover {
    color: var(--text-dim);
}

.modal-advanced[open] summary {
    border-bottom: 1px solid var(--border);
}

.modal-advanced-content {
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-privacy {
    font-size: 0.8rem;
}

.modal-models {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.modal-model-field label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.modal-model-field select {
    width: 100%;
    padding: 0.5rem 0.65rem;
    font-size: 0.8rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
}

.modal-model-field select:focus {
    outline: none;
    border-color: var(--border-focus);
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.modal-actions .btn-secondary {
    flex: 1;
}

.modal-actions .btn-cta {
    flex: 2;
}

.modal-submit {
    padding: 0.875rem 1.25rem;
}

/* Form */
.debate-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

/* Topic Textarea */
.topic-group textarea {
    width: 100%;
    min-height: 120px;
    max-height: 300px;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.topic-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.topic-group textarea::placeholder {
    color: var(--text-muted);
}

/* Topic Suggestions */
.topic-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.topic-chip {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.topic-chip:hover {
    border-color: var(--text-dim);
    color: var(--text-dim);
}

/* Topic Meta (suggestions + counter) */
.topic-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 0.75rem;
    gap: 1rem;
}

.topic-meta .topic-suggestions {
    margin-top: 0;
    flex: 1;
}

.char-counter {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.char-counter.near-limit {
    color: var(--orange);
}

/* Input Helper Text */
.input-helper {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Privacy Toggle (Visible, outside advanced) */
.privacy-visible {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

.privacy-visible .checkbox-label {
    font-size: 0.85rem;
}

/* Advanced Options */
.advanced-options {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.advanced-options summary {
    padding: 0.75rem 1rem;
    color: var(--text-dim);
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
    list-style: none;
}

.advanced-options summary::-webkit-details-marker {
    display: none;
}

.advanced-options summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.2s;
}

.advanced-options[open] summary::before {
    transform: rotate(90deg);
}

.advanced-options summary:hover {
    color: var(--text);
}

.advanced-options[open] summary {
    border-bottom: 1px solid var(--border);
}

.options-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Positions Compact */
.positions-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.position-field label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}

.position-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.position-dot-a {
    background: var(--blue);
}

.position-dot-b {
    background: var(--orange);
}

.position-field input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
}

.position-field input:focus {
    outline: none;
    border-color: var(--border-focus);
}

/* Model Row */
.model-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.model-field label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}

.model-field select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
}

.model-field select:focus {
    outline: none;
    border-color: var(--border-focus);
}

/* Privacy Field */
.privacy-field {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: color 0.2s;
}

.checkbox-label:hover {
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* CTA Button */
.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--gradient-accent);
    color: #000;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    opacity: 0;
    background: var(--gradient-accent);
    filter: blur(20px);
    transition: opacity 0.25s ease;
    z-index: -1;
}

.btn-cta:hover {
    transform: translateY(-2px);
}

.btn-cta:hover::before {
    opacity: 0.5;
}

.btn-cta:disabled {
    background: var(--bg-input);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.btn-cta:disabled::before {
    display: none;
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.btn-cta:hover .btn-arrow {
    transform: translateX(4px);
}

/* Secondary Button */
.btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--border-focus);
    background: var(--bg-input);
}

/* Share Button */
.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--gradient-accent);
    color: #000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-share:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.share-icon {
    font-size: 1rem;
}

/* Debate Card */
.debate-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.debate-header {
    text-align: center;
    margin-bottom: 1rem;
}

.debate-header h2 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Topic container with truncation */
.topic-container {
    margin-bottom: 0.75rem;
}

.topic-text {
    display: inline;
}

.topic-toggle {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    margin-left: 0.5rem;
    text-decoration: underline;
    opacity: 0.8;
}

.topic-toggle:hover {
    opacity: 1;
}

.agents-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.agent-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.agent-badge-a {
    background: var(--blue-dim);
    color: var(--blue);
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.agent-badge-b {
    background: var(--orange-dim);
    color: var(--orange);
    border: 1px solid rgba(251, 146, 60, 0.25);
}

.agent-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.vs-text {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Progress */
.progress-container {
    margin-bottom: 1rem;
}

.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--accent));
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-status {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
}

/* Conversation */
.conversation-container {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Messages */
.message {
    max-width: 90%;
    padding: 1rem;
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-a {
    align-self: flex-start;
    background: var(--blue-dim);
    border-left: 3px solid var(--blue);
}

.message-b {
    align-self: flex-end;
    background: var(--orange-dim);
    border-right: 3px solid var(--orange);
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.message-a .message-header { color: var(--blue); }
.message-b .message-header { color: var(--orange); }

.message-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.message-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
}

.message-content p { margin: 0 0 0.5rem 0; }
.message-content p:last-child { margin-bottom: 0; }
.message-content ul, .message-content ol { margin: 0.5rem 0; padding-left: 1.25rem; }
.message-content li { margin: 0.25rem 0; }
.message-content strong { color: var(--text); }

/* Truth Meter */
.truth-meter {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.meter-header {
    margin-bottom: 0.75rem;
}

.meter-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.meter-label-a { color: var(--blue); font-weight: 500; }
.meter-label-b { color: var(--orange); font-weight: 500; }

.meter-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    margin-bottom: 0.5rem;
}

.meter-fill-a {
    background: var(--blue);
    height: 100%;
    transition: width 0.8s ease;
    border-radius: 4px 0 0 4px;
}

.meter-fill-b {
    background: var(--orange);
    height: 100%;
    transition: width 0.8s ease;
    border-radius: 0 4px 4px 0;
}

.meter-values {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
}

.meter-value-a { color: var(--blue); }
.meter-value-b { color: var(--orange); }

/* Verdict Card */
.verdict-card {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(129, 140, 248, 0.04));
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.verdict-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.verdict-icon { font-size: 1.25rem; }

.verdict-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.verdict-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.verdict-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin: 1rem 0 0.5rem;
}

/* Claims List - Two Column Layout */
.claims-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.claims-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.claims-column-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 0.25rem;
}

.claims-column-a .claims-column-header {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

.claims-column-b .claims-column-header {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.claim {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem;
    background: var(--bg);
    border-radius: 8px;
    border-left: 3px solid var(--border);
}

/* Position-based border colors */
.claim-position-a { border-left-color: var(--blue); }
.claim-position-b { border-left-color: var(--orange); }

.claim-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Old rating styles (backward compatibility) */
.claim-strong .claim-badge { background: var(--accent-dim); color: var(--accent); }
.claim-moderate .claim-badge { background: rgba(255, 215, 0, 0.2); color: #ffd700; }
.claim-weak .claim-badge { background: rgba(255, 100, 100, 0.2); color: #ff6b6b; }

/* New rating styles (dark theme) */
.claim-verified .claim-badge { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.claim-plausible .claim-badge { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.claim-unsupported .claim-badge { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.claim-false .claim-badge { background: rgba(248, 113, 113, 0.15); color: #f87171; }

.claim-text {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.claim-reason {
    font-size: 0.7rem;
    color: var(--text-dim);
    line-height: 1.3;
}

/* Claim badges container */
.claim-badges {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* Status badges (contested, refuted) */
.status-badge {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    white-space: nowrap;
}

.status-contested {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.status-refuted {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Claim status styling - dim refuted claims */
.claim-status-refuted {
    opacity: 0.7;
}

.claim-status-contested {
    opacity: 0.85;
}

/* Rebuttal text */
.claim-rebuttal {
    font-size: 0.65rem;
    color: #fbbf24;
    font-style: italic;
    margin-top: 0.3rem;
    padding-left: 0.5rem;
    border-left: 2px solid rgba(251, 191, 36, 0.3);
}

/* Analysis section */
.analysis-section {
    margin-bottom: 1rem;
}

.analysis-text {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
    background: var(--bg);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

@media (max-width: 600px) {
    .claims-columns {
        grid-template-columns: 1fr;
    }
}

/* Recommendation */
.recommendation {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.recommendation strong {
    color: var(--text);
}

/* Debate Actions */
.debate-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* History Card */
.history-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
}

.history-card h3 {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

#debates-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.debate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.debate-item:hover {
    border-color: var(--accent);
}

.debate-item-info {
    flex: 1;
    min-width: 0;
}

.debate-item-topic {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.debate-item-meta {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.debate-item-status {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.status-completed { background: var(--accent-dim); color: var(--accent); }
.status-running { background: var(--blue-dim); color: var(--blue); }
.status-error { background: var(--orange-dim); color: var(--orange); }
.status-pending { background: var(--bg-input); color: var(--text-dim); }

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 1rem;
    font-size: 0.85rem;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-focus); }

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 600px) {
    .hero-title-compact { font-size: 2rem; }
    .positions-compact { grid-template-columns: 1fr; }
    .model-row { grid-template-columns: 1fr; }
    .main-card { padding: 1.5rem 1rem; }
    .agents-row { flex-direction: column; gap: 0.5rem; }
    .vs-text { display: none; }

    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer-links {
        gap: 1rem;
    }
}
