@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-color: #EAE7DB;
  --text-main: #000000;
  --text-sec: #7A7A7A;
  --text-light: #B0B0B0;
  --accent-red: #DF1E14;
  --accent-teal: #A4BBAF;
  --accent-sand: #BCA384;
  --accent-yellow: #EDE477;
  --accent-orange: #F26C21;
  --accent-olive: #8FA57C;
  --accent-grey: #C5C6C6;
  --card-white: #F4F3ED;
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --radius-pill: 99px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .heavy-text { font-weight: 700; letter-spacing: -0.04em; }
.title-massive { font-size: 4rem; line-height: 0.9; margin-bottom: 0.5rem; }
.label-small { font-size: 0.75rem; font-weight: 500; color: var(--text-sec); text-transform: capitalize; letter-spacing: 0; }
.number-huge { font-size: 4.5rem; font-weight: 500; letter-spacing: -0.05em; display: flex; align-items: baseline; }
.number-huge .decimal { font-size: 2.5rem; color: var(--text-light); }
.number-huge .symbol { font-size: 2rem; color: var(--text-light); margin-right: 4px; }

.app-container { display: flex; min-height: 100vh; max-width: 1600px; margin: 0 auto; padding: 2rem; gap: 3rem; }

.sidebar { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; position: sticky; top: 2rem; height: calc(100vh - 4rem); }
.header-graphics { display: flex; gap: 2px; margin-bottom: 2rem; margin-left: -10px; }
.geo-circle { width: 80px; height: 80px; background-color: var(--accent-red); border-radius: 50%; }
.geo-half { width: 40px; height: 80px; background-color: var(--accent-red); border-radius: 0 80px 80px 0; }

.nav-menu { display: flex; flex-direction: column; gap: 1rem; margin-top: 3rem; }
.nav-label { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text-light); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 12px; }
.nav-label:hover { color: var(--text-sec); }
.nav-indicator { width: 8px; height: 8px; border-radius: 50%; background: transparent; }

input[type="radio"] { display: none; }
.tab-content { display: none; flex: 1; }

#tab1:checked ~ .app-container .nav-label[for="tab1"],
#tab2:checked ~ .app-container .nav-label[for="tab2"],
#tab3:checked ~ .app-container .nav-label[for="tab3"] { color: var(--text-main); }

#tab1:checked ~ .app-container .nav-label[for="tab1"] .nav-indicator { background: var(--text-main); }
#tab2:checked ~ .app-container .nav-label[for="tab2"] .nav-indicator { background: var(--accent-orange); }
#tab3:checked ~ .app-container .nav-label[for="tab3"] .nav-indicator { background: var(--accent-teal); }

#tab1:checked ~ .app-container #content-consensus { display: flex; flex-direction: column; }
#tab2:checked ~ .app-container #content-gems { display: flex; flex-direction: column; }
#tab3:checked ~ .app-container #content-radar { display: flex; flex-direction: column; }

.section-header { margin-bottom: 2rem; display: flex; justify-content: space-between; align-items: flex-end; }
.controls-bar { display: flex; gap: 12px; margin-bottom: 2rem; align-items: center; }

.pill-btn { background: var(--text-main); color: white; padding: 12px 24px; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.pill-btn.secondary { background: transparent; color: var(--text-main); border: 1px solid rgba(0,0,0,0.1); }
.pill-btn.secondary:hover { background: rgba(0,0,0,0.05); }

.filter-group { display: flex; background: rgba(0,0,0,0.04); border-radius: var(--radius-pill); padding: 4px; }
.filter-tab { padding: 8px 16px; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--text-sec); }
.filter-tab.active { background: white; color: var(--text-main); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

.paper-list { display: flex; flex-direction: column; gap: 12px; }
.paper-card { background: var(--card-white); border-radius: var(--radius-md); padding: 20px 24px; display: flex; align-items: center; gap: 24px; transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer; text-decoration: none; color: inherit; }
.paper-card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.04); }

.paper-score { width: 80px; flex-shrink: 0; }
.paper-score .val { font-size: 2rem; font-weight: 700; letter-spacing: -0.05em; }
.paper-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.paper-title { font-size: 1.1rem; font-weight: 600; color: var(--text-main); }
.paper-meta { font-size: 0.85rem; color: var(--text-sec); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.paper-meta span::after { content: "•"; margin-left: 12px; color: var(--text-light); }
.paper-meta span:last-child::after { content: none; }

.category-indicator { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; flex-shrink: 0; }
.cat-nlp { background: var(--accent-teal); }
.cat-cv { background: var(--accent-yellow); }
.cat-mlt { background: var(--accent-sand); }
.cat-default { background: var(--accent-grey); }

.author-icon { width: 20px; height: 20px; background: var(--text-main); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: white; font-size: 10px; font-weight: bold; }

.radar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 16px; }
.cluster-card { border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; min-height: 380px; position: relative; overflow: hidden; }
.cluster-card h3 { font-size: 2.5rem; line-height: 1; margin-bottom: 8px; max-width: 80%; }
.cluster-card .label-small { color: rgba(0,0,0,0.6); }
.cluster-stats { margin-top: auto; display: flex; gap: 24px; z-index: 2; }
.stat-block { display: flex; flex-direction: column; }
.stat-block .val { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.05em; }

.bg-teal { background-color: var(--accent-teal); }
.bg-orange { background-color: var(--accent-orange); }
.bg-sand { background-color: var(--accent-sand); }
.bg-olive { background-color: var(--accent-olive); }
.bg-grey { background-color: var(--accent-grey); }

.highlight-red { color: var(--accent-red); font-weight: 700; }

.search-wrapper { position: relative; flex: 1; max-width: 300px; }
.search-input { width: 100%; background: white; border: none; border-radius: var(--radius-pill); padding: 12px 20px; font-size: 0.9rem; font-family: inherit; font-weight: 500; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.search-input:focus { outline: 2px solid var(--text-main); }

.scroll-area { overflow-y: auto; padding-bottom: 4rem; padding-right: 1rem; flex: 1; }
.scroll-area::-webkit-scrollbar { width: 6px; }
.scroll-area::-webkit-scrollbar-track { background: transparent; }
.scroll-area::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }

.loading-msg { color: var(--text-sec); font-size: 0.9rem; padding: 2rem 0; }
.empty-msg { color: var(--text-sec); font-size: 0.9rem; padding: 2rem 0; }

.month-divider { font-size: 0.85rem; font-weight: 600; color: var(--text-sec); margin: 24px 0 12px; text-transform: uppercase; letter-spacing: 0.05em; }

@media (max-width: 768px) {
  .app-container { flex-direction: column; padding: 1rem; gap: 1.5rem; }
  .sidebar { width: 100%; position: static; height: auto; }
  .title-massive { font-size: 2.5rem; }
  .nav-menu { flex-direction: row; gap: 0.5rem; flex-wrap: wrap; }
  .nav-label { font-size: 1rem; }
  .controls-bar { flex-wrap: wrap; }
  .filter-group { overflow-x: auto; }
  .radar-grid { grid-template-columns: 1fr; }
  .cluster-card h3 { font-size: 1.8rem; }
  .number-huge { font-size: 3rem; }
}
