/* Annote Documentation Site Styles */
/* Colors match packages/core/src/styles/colors.ts */

:root {
  /* Brand Colors - Yellow as main accent */
  --color-primary: #FFD400; /* yellow80 - main accent */
  --color-primary-hover: #FFEA61; /* yellow70 */
  --color-primary-light: #FFF192; /* yellow60 */
  --color-highlight: #FFF399; /* yellow20 */
  --color-highlight-light: #FFF9C9; /* yellow10 */
  --color-blue: #5D6DD9; /* Keep blue for links/secondary actions */
  
  /* Gray Palette */
  --gray-5: #F5F5F5;
  --gray-10: #E9E9E8;
  --gray-15: #DBDBDA;
  --gray-25: #C7C6C5;
  --gray-50: #878683;
  --gray-60: #5F5D59;
  --gray-80: #4B4945;
  --gray-90: #373530;
  
  /* Semantic Colors */
  --color-text: var(--gray-90);
  --color-text-light: var(--gray-50);
  --color-text-subtitle: var(--gray-50);
  --color-text-description: var(--gray-80);
  
  --color-bg: #FFF;
  --color-bg-surface: var(--gray-5);
  --color-bg-hover: var(--gray-5);
  --color-bg-selected: var(--gray-10);
  
  --color-border: var(--gray-10);
  --color-border-selected: var(--gray-25);
  
  /* Layout */
  --max-width: 1200px;
  --spacing: 1rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji";
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 14px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

@media (min-width: 1200px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.8;
}

.logo img {
  height: 32px;
  width: auto;
}

.site-header nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.site-header nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s;
}

.site-header nav a:hover {
  color: var(--color-primary);
}

.site-header nav a.btn-primary {
  color: var(--gray-90);
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--gray-90);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 212, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--gray-90);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  color: var(--gray-90);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin: 0 0 2.5rem;
  color: var(--gray-80);
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background: var(--color-bg-surface);
}

.features .container > h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 700;
  color: var(--color-text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  border-radius: 8px 8px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(255, 212, 0, 0.15);
  transform: translateY(-2px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--color-text);
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-description);
  line-height: 1.6;
}

/* How It Works */
.how-it-works {
  padding: 4rem 0;
  background: var(--color-bg);
}

.how-it-works h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 700;
  color: var(--color-text);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
}

.step-number {
  display: inline-block;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--gray-90);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 3.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(255, 212, 0, 0.3);
  transition: transform 0.2s ease;
}

.step:hover .step-number {
  transform: scale(1.1);
}

.step h3 {
  margin: 0.5rem 0;
  font-weight: 600;
  font-size: 1.25rem;
}

.step p {
  margin: 0;
  color: var(--color-text-description);
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  text-align: center;
  background: var(--color-bg-surface);
}

.cta-section h2 {
  font-size: 2.5rem;
  margin: 0 0 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

/* Documentation */
.docs-content {
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.docs-content h1 {
  font-size: 2.5rem;
  margin: 0 0 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.docs-content h2 {
  font-size: 2rem;
  margin: 3rem 0 1.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border);
  font-weight: 600;
  color: var(--color-text);
}

.docs-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.docs-content h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.docs-content p {
  margin: 1rem 0;
  line-height: 1.75;
  color: var(--color-text-description);
}

.docs-content p:first-of-type {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.docs-content ul, .docs-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.docs-content li {
  margin: 0.75rem 0;
  line-height: 1.7;
  color: var(--color-text-description);
}

.docs-content li strong {
  color: var(--color-text);
  font-weight: 600;
}

.docs-content a {
  color: var(--color-blue);
  text-decoration: none;
}

.docs-content a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.docs-content code {
  background: var(--color-highlight-light);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.docs-content pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-left: 3px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.docs-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.docs-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--color-text-description);
  font-style: italic;
  background: var(--color-highlight-light);
  padding: 1rem 1rem 1rem 1.5rem;
  border-radius: 4px;
}

/* Doc Grid */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.doc-card {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: var(--color-bg);
  transition: all 0.2s;
}

.doc-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 212, 0, 0.15);
  background: var(--color-highlight-light);
}

.doc-card h3 {
  margin: 0 0 0.5rem;
  color: var(--color-primary);
}

.doc-card p {
  margin: 0;
  color: var(--color-text-description);
}

/* Footer */
.site-footer {
  background: var(--gray-90);
  color: var(--gray-10);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  border-top: 3px solid var(--color-primary);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin: 0 0 1rem;
  color: #FFF;
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin: 0.5rem 0;
}

.footer-section a {
  color: var(--gray-10);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: #FFF;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-60);
  color: var(--gray-25);
  font-size: 0.9rem;
}

/* Main content padding */
main {
  min-height: 60vh;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Selection styles */
::selection {
  background: var(--color-highlight);
  color: var(--gray-90);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1rem;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .header-content {
    flex-wrap: wrap;
  }

  .header-content nav {
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    width: 100%;
  }

  .site-header nav a {
    font-size: 0.9rem;
  }

  .features {
    padding: 3rem 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .how-it-works {
    padding: 3rem 0;
  }

  .how-it-works h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-section {
    padding: 3rem 0;
  }

  .cta-section h2 {
    font-size: 2rem;
    padding: 0 1rem;
  }

  .docs-content {
    padding: 2rem 1rem;
  }

  .docs-content h1 {
    font-size: 2rem;
  }

  .docs-content h2 {
    font-size: 1.75rem;
  }

  .docs-content h3 {
    font-size: 1.25rem;
  }

  .doc-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer {
    padding: 3rem 0 1.5rem;
  }

  .features {
    padding: 3rem 0;
  }

  .features .container > h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .cta-section {
    padding: 3rem 0;
  }

  .cta-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
}

