/* NextAI Report - Static Site Styles */

:root {
  /* Colors */
  --background: #FFFFFF;
  --foreground: #1A1A1A;
  --primary: #2563EB;
  --primary-foreground: #FFFFFF;
  --muted-foreground: #6B7280;
  --border: #E5E7EB;
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --neutral-50: #F9FAFB;
  --green-600: #059669;
  --red-600: #DC2626;
  
  /* Spacing */
  --radius: 0.375rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--foreground);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Context Bar */
.context-bar {
  background: var(--blue-50);
  padding: 12px 16px;
  border-bottom: 1px solid var(--blue-100);
}

.context-bar-content {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 32px;
  font-size: 14px;
}

.context-link {
  color: var(--blue-600);
  transition: color 0.2s;
}

.context-link:hover {
  color: var(--blue-700);
}

.context-link .bullet {
  margin-right: 6px;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 64px 16px;
  background: white;
}

.hero-section h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-section p {
  font-size: 18px;
  color: var(--muted-foreground);
  margin-bottom: 32px;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 448px;
  margin: 0 auto 12px;
}

.subscribe-input {
  flex: 1;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 14px;
  color: var(--foreground);
}

.subscribe-input:focus {
  outline: none;
  ring: 2px solid rgba(37, 99, 235, 0.5);
}

.subscribe-button {
  background: var(--foreground);
  color: var(--background);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.subscribe-button:hover {
  opacity: 0.9;
}

.subscribe-message {
  font-size: 14px;
  margin-bottom: 8px;
}

.subscribe-message.success {
  color: var(--green-600);
}

.subscribe-message.error {
  color: var(--red-600);
}

.hero-subtitle {
  font-size: 12px;
  color: var(--muted-foreground);
}

/* Section Container */
.section-container {
  padding: 48px 16px;
}

.section-light {
  background: white;
}

.section-dark {
  background: var(--neutral-50);
}

.section-content {
  max-width: 768px;
  margin: 0 auto;
}

.section-divider {
  border-top: 1px solid var(--border);
  margin-bottom: 24px;
}

.section-divider-thick {
  border-top: 2px solid var(--border);
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foreground);
}

.section-subtitle {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 4px;
}

.view-all-link {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* Articles List */
.articles-list {
  display: flex;
  flex-direction: column;
}

.article-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
}

.article-item:last-child {
  border-bottom: none;
}

.article-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.article-link {
  display: flex;
  gap: 24px;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.article-image {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  background: var(--neutral-50);
  border-radius: var(--radius);
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  flex: 1;
  min-width: 0;
}

.article-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 6px;
  line-height: 1.4;
  transition: color 0.2s;
}

.article-link:hover .article-title {
  color: var(--primary);
}

.article-excerpt {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.article-meta {
  flex-shrink: 0;
  text-align: right;
  font-size: 12px;
  color: var(--muted-foreground);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-category {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Loading State */
.loading-message {
  text-align: center;
  padding: 32px 0;
  color: var(--muted-foreground);
}

/* Leaderboard */
.leaderboard-section {
  padding: 80px 16px;
  background: white;
}

.leaderboard-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.leaderboard-subtitle {
  font-size: 14px;
  color: var(--muted-foreground);
  text-align: center;
  margin-bottom: 32px;
}

.leaderboard-grid {
  max-width: 768px;
  margin: 0 auto;
}

.leaderboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.leaderboard-item:last-child {
  border-bottom: none;
}

.leaderboard-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  font-weight: 600;
}

.leaderboard-value-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.leaderboard-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--foreground);
}

.leaderboard-metric-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leaderboard-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--foreground);
}

.leaderboard-change {
  font-size: 12px;
  color: var(--muted-foreground);
}

.leaderboard-change.positive {
  color: var(--green-600);
}

.leaderboard-change.new {
  color: var(--primary);
}

.leaderboard-link-container {
  text-align: center;
  margin-top: 32px;
}

.leaderboard-link {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}

.leaderboard-link:hover {
  text-decoration: underline;
}

/* Newsletter CTA */
.newsletter-cta {
  background: var(--primary);
  color: white;
  padding: 64px 16px;
  text-align: center;
}

.newsletter-title {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.newsletter-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 512px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  background: white;
  border: none;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
}

.newsletter-button {
  background: var(--foreground);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.newsletter-button:hover {
  opacity: 0.9;
}

/* Footer */
.footer {
  background: #0E1116;
  color: white;
  padding: 48px 16px;
}

.footer-content {
  max-width: 1152px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-brand h3 {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 14px;
  color: #D0D0D0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  font-size: 14px;
  color: #9CA3AF;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 14px;
  color: #9CA3AF;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 32px;
  }
  
  .subscribe-form,
  .newsletter-form {
    flex-direction: column;
  }
  
  .context-bar-content {
    font-size: 12px;
    gap: 16px;
  }
  
  .article-item {
    flex-direction: column;
    gap: 16px;
  }
  
  .article-link {
    flex-direction: column;
  }
  
  .article-meta {
    text-align: left;
    flex-direction: row;
    gap: 12px;
  }
  
  .leaderboard-value-group {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 28px;
  }
  
  .section-container {
    padding: 32px 16px;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}

