/* --- Modernized Sentiment Engine Styles --- */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --radius: 16px;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 40px;
}

.battle-title {
  margin: 0;
  font-size: 2.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.vs-tag {
  font-size: 0.4em;
  letter-spacing: 2px;
  color: var(--text-muted);
  vertical-align: middle;
  margin-left: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.engine-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

/* --- Grid System --- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); 
  gap: 30px;
  width: 100%;
  margin-top: 30px;
}

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.article-title {
  font-size: 1.25em;
  font-weight: 700;
  margin: 15px 0;
  line-height: 1.4;
  color: var(--text-main);
}

/* --- Badges & Conflict --- */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  background: #f1f5f9;
}

.meta-row {
  font-family: ui-monospace, monospace;
  font-size: 0.7em;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

/* --- Analysis & Traits --- */
.analysis-entry {
  transition: all 0.3s ease;
}

.trait-badge {
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 0.5px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  font-size: 10px;
  padding: 3px 8px;
  font-weight: 700;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.unmasked .trait-badge {
  background: transparent !important;
  border-color: #f1f5f9 !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
}

/* --- Guessing Buttons --- */
.js-guess-btn {
  transition: all 0.2s ease;
  border-radius: 8px !important;
  border: 1px solid var(--border-color) !important;
  background: #f8fafc !important;
  color: var(--text-main) !important;
}

.js-guess-btn:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  transform: scale(1.02);
}

/* --- Identity Reveal States --- */
.llm-identity {
  display: none;
  font-family: ui-monospace, monospace;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 4px;
}

.unmasked .llm-identity { display: inline-block; }
.unmasked .model-placeholder { display: none; }

.blind-summary {
  filter: blur(5px);
  opacity: 0.6;
  transition: all 0.5s ease;
  user-select: none;
}

.unmasked .blind-summary {
  filter: blur(0);
  opacity: 1;
  user-select: auto;
}

/* --- Metric/Friction Footer --- */
.friction-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.friction-number {
  font-size: 1.5em;
  font-weight: 800;
  font-family: ui-monospace, monospace;
  color: var(--text-main);
}

.cta-button {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 12px;
  transition: all 0.3s ease;
}

.article-card:hover .cta-button {
  background: var(--primary);
}

.article-card:hover .cta-text {
  color: #ffffff !important;
}

@media (max-width: 650px) {
  .article-grid { grid-template-columns: 1fr; }
  .battle-title { font-size: 1.8em; }
}

.social-btn {
  text-decoration: none;
  color: var(--text-main);
  font-family: ui-monospace, monospace;
  font-size: 0.75em;
  font-weight: 800;
  padding: 5px 10px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: var(--primary);
  background: #f8fafc;
}

.social-btn:active {
  transform: translateY(0);
}