:root {
    --gold-primary: #d4a853;
    --gold-bright: #f0c866;
    --gold-dim: #a67c3d;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-deep: #0a0908;
    --bg-surface: #0f0e0c;
    --bg-elevated: #161513;
    --bg-hover: #1c1a17;
    --text-primary: #f5f2eb;
    --text-secondary: #9c9789;
    --text-muted: #5c5850;
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-accent: rgba(212, 168, 83, 0.15);
    --gold-subtle: rgba(212, 168, 83, 0.06);
    --btn-primary-bg: #d4a853;
    --btn-primary-text: #0a0908;
    --btn-primary-hover: #e0b45f;
    --btn-secondary-bg: transparent;
    --btn-secondary-border: rgba(255, 255, 255, 0.12);
    --btn-secondary-text: #f5f2eb;
    --btn-secondary-hover-border: rgba(255, 255, 255, 0.25);
    --btn-danger-bg: #8b3a3a;
    --btn-danger-hover: #a04545;
}

/* Light Theme */
[data-theme="light"] {
    --bg-deep: #f0ebe3;
    --bg-surface: #f7f3ed;
    --bg-elevated: #ebe6dd;
    --bg-hover: #e3ddd3;
    --text-primary: #2c2825;
    --text-secondary: #5c5650;
    --text-muted: #8c8680;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(180, 140, 60, 0.3);
    --gold-subtle: rgba(180, 140, 60, 0.12);
    --btn-primary-bg: #dbb84a;
    --btn-primary-text: #2c2825;
    --btn-primary-hover: #e5c45c;
    --btn-secondary-bg: transparent;
    --btn-secondary-border: rgba(0, 0, 0, 0.15);
    --btn-secondary-text: #2c2825;
    --btn-secondary-hover-border: rgba(0, 0, 0, 0.3);
    --btn-danger-bg: #c94c4c;
    --btn-danger-hover: #d65858;
}

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

body {
    font-family: 'Source Sans 3', sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    transition: background 0.2s ease, color 0.2s ease;
}

[data-theme="dark"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 1000;
}

/* Utility Classes for Dynamic Content */
.qa-history-item {
    margin: 10px 0;
    padding: 10px;
    background-color: var(--bg-elevated);
    border-left: 3px solid var(--gold-primary);
    border-radius: 4px;
}

.qa-question {
    margin: 5px 0;
    color: var(--text-primary);
}

.qa-answer {
    margin: 5px 0;
    padding: 5px;
    border-radius: 4px;
}

.qa-answer.yes {
    background-color: rgba(74, 158, 74, 0.15);
    border: 1px solid rgba(74, 158, 74, 0.3);
}

.qa-answer.no {
    background-color: rgba(201, 76, 76, 0.15);
    border: 1px solid rgba(201, 76, 76, 0.3);
}

.qa-answer.unclear {
    background-color: rgba(212, 168, 83, 0.15);
    border: 1px solid rgba(212, 168, 83, 0.3);
}

.qa-waiting {
    margin: 5px 0;
    color: var(--text-muted);
    font-style: italic;
}

.debate-round-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 2px solid var(--border-accent);
    background-color: var(--bg-surface);
    border-radius: 8px;
}

.debate-round-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 10px;
}

.debate-statement {
    border: 2px solid var(--border-subtle);
    padding: 10px;
    background-color: var(--bg-elevated);
    border-radius: 4px;
    margin-bottom: 10px;
}

.debate-statement-label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.debate-statement-text {
    white-space: pre-wrap;
    color: var(--text-primary);
    line-height: 1.6;
}

.debate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
