/* ===== CSS Variables - Dark Theme v8.5 ===== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a25;
  --bg-card: #16161f;
  --bg-card-hover: #1e1e2b;
  --border-color: #2a2a3a;
  --border-light: #333347;
  
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b5;
  --text-tertiary: #70708a;
  --text-muted: #55556a;
  
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --accent-glow: rgba(99, 102, 241, 0.3);
  
  --ai-color: #6366f1;
  --ai-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
  --web3-color: #f59e0b;
  --web3-gradient: linear-gradient(135deg, #f59e0b, #ef4444);
  
  --green: #10b981;
  --red: #ef4444;
  --yellow: #f59e0b;
  --blue: #3b82f6;
  --orange: #f97316;
  --pink: #ec4899;
  --cyan: #06b6d4;
  
  --font-sans: 'InstrumentSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'InstrumentSerif', Georgia, 'Times New Roman', serif;
  --font-mono: 'GeistMono', 'SF Mono', 'Fira Code', monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
  
  --container-width: 1200px;
  --content-width: 760px;
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-secondary);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

code, pre {
  font-family: var(--font-mono);
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
}

code {
  padding: 2px 6px;
  font-size: 0.9em;
}

pre {
  padding: 1rem;
  overflow-x: auto;
}

/* ===== Layout ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.content-wrapper {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ===== Page Actions Nav ===== */
.page-actions {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.page-actions-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-actions-left,
.page-actions-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.action-link:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.lang-switch {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.lang-btn {
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-tertiary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.lang-btn.active {
  background: var(--accent-gradient);
  color: white;
}

.lang-btn:not(.active):hover {
  color: var(--text-primary);
}

/* ===== Hero Section ===== */
.hero {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-glow);
}

.hero-date {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ===== Stats Bar ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Section Styles ===== */
.section {
  padding: 60px 0;
}

.section-header {
  margin-bottom: 40px;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 100px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* AI Section Accent */
.section-ai .section-label {
  color: var(--ai-color);
  background: rgba(99, 102, 241, 0.1);
}

/* Web3 Section Accent */
.section-web3 .section-label {
  color: var(--web3-color);
  background: rgba(245, 158, 11, 0.1);
}

/* ===== News List ===== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.news-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-item:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.news-item:hover::before {
  opacity: 1;
}

.news-item-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.news-number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
}

.news-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.news-summary {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 12px;
  padding-left: 0;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.news-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-tertiary);
  text-decoration: none;
}

.news-source:hover {
  color: var(--accent-primary);
}

.news-tag {
  padding: 2px 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ===== Charts Section ===== */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
}

.chart-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

.chart-card.full-width {
  grid-column: 1 / -1;
}

.chart-header {
  margin-bottom: 20px;
}

.chart-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.chart-subtitle {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.chart-container {
  width: 100%;
  height: 320px;
}

.chart-container.tall {
  height: 400px;
}

/* ===== KOL Section ===== */
.kol-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.kol-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.kol-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.3s ease;
}

.kol-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kol-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.kol-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
  flex-shrink: 0;
}

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

.kol-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.kol-handle {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.kol-likes {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 500;
}

.kol-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.kol-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== Market Table ===== */
.market-table-wrapper {
  overflow-x: auto;
  margin-top: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.market-table thead {
  background: var(--bg-tertiary);
}

.market-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.market-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  color: var(--text-primary);
}

.market-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.positive { color: var(--green); }
.negative { color: var(--red); }

/* ===== Trend Analysis ===== */
.trend-section {
  padding: 60px 0;
}

.trend-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.trend-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.trend-content h3 {
  margin-bottom: 16px;
}

.trend-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ===== Sources ===== */
.sources-section {
  padding: 40px 0;
}

.sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sources-list li {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  display: flex;
  gap: 8px;
}

.sources-list .source-num {
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.sources-list a {
  color: var(--text-tertiary);
  word-break: break-all;
}

.sources-list a:hover {
  color: var(--accent-primary);
}

/* ===== About Section ===== */
.about-section {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.about-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.about-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.about-desc {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

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

/* ===== Home Page - Cards Grid ===== */
.home-hero {
  padding: 80px 0 60px;
  text-align: center;
}

.home-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 16px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.home-date-row {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
  margin-bottom: 48px;
}

.report-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 60px;
}

.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.report-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
  transition: height 0.3s ease;
}

.report-card.web3::before {
  background: var(--web3-gradient);
}

.report-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
}

.report-card:hover::before {
  height: 6px;
}

.report-card-lang {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.report-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.report-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.report-card-arrow {
  margin-top: 16px;
  color: var(--accent-primary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== Archive Page ===== */
.archive-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.archive-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.archive-item:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.archive-date {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.archive-links {
  display: flex;
  gap: 12px;
}

.archive-link {
  padding: 6px 14px;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.archive-link:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .kol-cards {
    grid-template-columns: 1fr;
  }
  
  .report-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .hero {
    padding: 40px 0 24px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .trend-content {
    padding: 24px;
  }
  
  .page-actions-left span,
  .page-actions-right span {
    display: none;
  }
  
  .news-item-header {
    flex-direction: column;
    gap: 8px;
  }
}
