/* Custom styles for DeepResearch CLI website */

:root {
  --primary-color: #0f62fe;
  --secondary-color: #393939;
  --success-color: #42be65;
  --warning-color: #f1c21b;
  --error-color: #fa4d56;
  --background-color: #f4f4f4;
  --surface-color: #ffffff;
  --text-primary: #161616;
  --text-secondary: #525252;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-color);
}

/* Header Styles */
.bx--header {
  background-color: #161616;
  border-bottom: 1px solid #393939;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 48px;
}

.bx--header__name {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}

.bx--header__name--prefix {
  color: #ffffff;
  text-decoration: none;
}

.bx--header__name--suffix {
  color: #78a9ff;
  margin-left: 4px;
}

.bx--header__nav {
  margin-left: auto;
}

.bx--header__menu-bar {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 48px;
}

.bx--header__menu-item {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 16px;
  color: #c6c6c6;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.bx--header__menu-item:hover {
  background-color: #393939;
  color: #ffffff;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #161616 0%, #262626 100%);
  color: #ffffff;
  padding: 120px 0 80px;
  margin-top: 48px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 300;
  margin: 0 0 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 24px;
  color: #c6c6c6;
}

.hero-description {
  font-size: 1.125rem;
  margin: 0 0 32px;
  color: #a8a8a8;
  max-width: 600px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.hero-feature {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.hero-feature span:last-child {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.terminal-icon {
  width: 100%;
  max-width: 300px;
  height: auto;
}

/* Section Styles */
.features-section,
.architecture-section,
.quickstart-section,
.documentation-section {
  padding: 80px 0;
}

.features-section {
  background-color: #ffffff;
}

/* PDF Processing Section */
.pdf-processing-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #e8f4fd 0%, #ffffff 100%);
}

.extraction-methods {
    margin-top: 1.5rem;
}

.method-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 4px solid #0f62fe;
    transition: all 0.3s ease;
}

.method-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.method-number {
    background: #0f62fe;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.method-content h4 {
    margin: 0 0 0.5rem 0;
    color: #161616;
    font-size: 1rem;
    font-weight: 600;
}

.method-content p {
    margin: 0;
    color: #525252;
    font-size: 0.875rem;
    line-height: 1.4;
}

.symbol-categories {
    margin-top: 1.5rem;
}

.symbol-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.symbol-group h4 {
    margin: 0 0 0.75rem 0;
    color: #161616;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.symbols {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #0f62fe;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    letter-spacing: 0.5px;
}

.symbol-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(15, 98, 254, 0.1);
    border-radius: 8px;
    color: #525252;
    font-size: 0.875rem;
    line-height: 1.4;
    border-left: 4px solid #0f62fe;
}

.architecture-section {
  background-color: #f4f4f4;
}

.quickstart-section {
  background-color: #ffffff;
}

.documentation-section {
  background-color: #f4f4f4;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin: 0 0 48px;
  text-align: center;
  color: var(--text-primary);
}

/* Feature Cards */
.feature-card {
  height: 100%;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--primary-color);
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
}

/* Component List */
.component-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.component-list li {
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.component-list li:last-child {
  border-bottom: none;
}

/* Tech Stack */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tech-description {
  margin: 16px 0 0;
  color: var(--text-secondary);
}

/* Code Blocks */
.code-tile {
  margin-bottom: 24px;
}

.code-block {
  background-color: #161616;
  color: #ffffff;
  padding: 20px;
  border-radius: 4px;
  overflow-x: auto;
  font-family: 'IBM Plex Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.4;
  margin: 16px 0 0;
}

.config-example {
  background-color: #f4f4f4;
  padding: 16px;
  border-radius: 4px;
  border-left: 4px solid var(--primary-color);
  margin: 16px 0 0;
}

.config-example code {
  font-family: 'IBM Plex Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 12px;
  color: var(--text-primary);
}

/* Documentation Cards */
.doc-card {
  text-align: center;
  padding: 32px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.doc-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--primary-color);
}

.doc-card p {
  margin: 0 0 24px;
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Footer */
.footer {
  background-color: #161616;
  color: #c6c6c6;
  padding: 32px 0;
  text-align: center;
}

.footer p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bx--header__nav {
    display: none;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .tech-stack {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 80px 0 60px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .features-section,
  .architecture-section,
  .quickstart-section,
  .documentation-section {
    padding: 60px 0;
  }
}

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

/* Button hover effects */
.bx--btn:hover {
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

/* Tile hover effects */
.bx--tile {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bx--tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Loading animation for future use */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}