/* Base styles and reset */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent-color: #f97316;
  --text-color: #374151;
  --text-light: #6b7280;
  --bg-color: #f8fafc;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

code {
  background-color: #f1f5f9;
  border-radius: 4px;
  padding: 2px 5px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.9em;
}

/* Header styles */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 25px 0;
  text-align: center;
}

header .logo-container {
  margin-bottom: 15px;
}

header .logo {
  width: 80px;
  height: auto;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

header p {
  font-size: 1.2rem;
  color: var(--text-light);
}

/* Navigation */
nav {
  background-color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  color: var(--white);
  padding: 15px 20px;
  text-align: center;
  transition: var(--transition);
}

nav a:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

nav i {
  margin-right: 8px;
}

/* Mobile navigation toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 15px;
}

/* Hero section */
.hero {
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #e86306;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--white);
}

.btn i {
  margin-right: 8px;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Features section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.feature {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  background-color: var(--primary-light);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
}

.feature h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* Section styles */
.section {
  margin-bottom: 60px;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 25px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

/* Installation section */
.install-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.install-option {
  background-color: #f8fafc;
  border-radius: var(--radius);
  padding: 25px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.install-option:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.install-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.install-option h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.code-block {
  background-color: #1e293b;
  border-radius: var(--radius);
  padding: 15px;
  margin: 15px 0;
  position: relative;
  overflow: hidden;
}

.code-block pre {
  font-family: 'Fira Code', 'Courier New', monospace;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  padding-right: 40px;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: #e2e8f0;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.copy-btn.copied {
  background-color: #10b981;
}

/* Dependencies */
.dependencies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.dependency-item {
  background-color: #f1f5f9;
  border-radius: 20px;
  padding: 8px 15px;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
}

.dependency-item i {
  margin-right: 8px;
  color: var(--primary-color);
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 25px;
}

.tab-button {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
  position: relative;
}

.tab-button:hover {
  color: var(--primary-color);
}

.tab-button.active {
  color: var(--primary-color);
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.tab-button i {
  margin-right: 8px;
}

.tab-content {
  display: none;
  padding: 20px 0;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Steps */
.steps-container {
  margin: 25px 0;
}

.step {
  display: flex;
  margin-bottom: 15px;
  align-items: center;
}

.step-number {
  background-color: var(--primary-color);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

.step-content {
  flex-grow: 1;
}

/* Configuration options */
.config-options {
  margin: 20px 0;
}

.config-option {
  display: flex;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.option-name {
  width: 150px;
  font-weight: 600;
  flex-shrink: 0;
}

.option-desc {
  flex-grow: 1;
}

/* Examples */
.examples-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.example {
  margin-bottom: 20px;
}

.example h4 {
  margin-bottom: 10px;
}

/* Reference table */
.reference-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.reference-table th, 
.reference-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.reference-table th {
  background-color: #f8fafc;
  font-weight: 600;
}

.reference-table tr:last-child td {
  border-bottom: none;
}

.reference-table tr:hover td {
  background-color: #f1f5f9;
}

/* Note box */
.note-box {
  background-color: #eff6ff;
  border-left: 4px solid var(--primary-color);
  padding: 15px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 25px 0;
  display: flex;
  align-items: flex-start;
}

.note-box i {
  color: var(--primary-color);
  margin-right: 15px;
  font-size: 1.2rem;
  margin-top: 3px;
}

/* Contribution */
.contribution-steps {
  margin: 30px 0;
}

.contribution-step {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.step-icon {
  color: var(--primary-color);
  margin-right: 15px;
  width: 40px;
  height: 40px;
  background-color: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
footer {
  background-color: #1e293b;
  color: #e2e8f0;
  padding: 40px 0;
  text-align: center;
}

footer p {
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #e2e8f0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-links i {
  margin-right: 5px;
}

/* Responsive styles */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .section {
    padding: 30px 20px;
  }
  
  nav ul {
    flex-direction: column;
    display: none;
  }
  
  nav ul.show {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .install-options, 
  .examples-container {
    grid-template-columns: 1fr;
  }
  
  .config-option {
    flex-direction: column;
  }
  
  .option-name {
    margin-bottom: 5px;
  }
  
  .reference-table {
    display: block;
    overflow-x: auto;
  }
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

.slide-in {
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Dark mode toggle */
.dark-mode-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 100;
  border: none;
  font-size: 1.2rem;
  transition: var(--transition);
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
}

/* Dark mode styles */
body.dark-mode {
  --bg-color: #0f172a;
  --text-color: #e2e8f0;
  --text-light: #94a3b8;
  --border-color: #334155;
  --white: #1e293b;
}

body.dark-mode .code-block {
  background-color: #0f172a;
}

body.dark-mode .dependency-item {
  background-color: #334155;
}

body.dark-mode .note-box {
  background-color: #1e293b;
}

body.dark-mode .reference-table th {
  background-color: #1e293b;
}

body.dark-mode .reference-table tr:hover td {
  background-color: #334155;
}

body.dark-mode .step-icon {
  background-color: #334155;
}

body.dark-mode code {
  background-color: #334155;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 100;
  border: none;
  font-size: 1.2rem;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
}
body.dark-mode .code-block {
  background-color: #0f172a;
}

body.dark-mode .code-block pre {
  color: #e2e8f0; 
}

body.dark-mode .copy-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
}

body.dark-mode .copy-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .install-option .code-block {
  background-color: #1e293b; 
}

body.dark-mode .install-option {
  background-color: #334155; 
  border-color: #475569; 
}

body.dark-mode .install-option:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

body.dark-mode .install-icon {
  color: var(--primary-light); 
}
