/* How to Use ClawdBot - Stylesheet */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #0ea5e9;
  --dark: #1e293b;
  --darker: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --success: #22c55e;
  --code-bg: #1e1e2e;
}

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

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

/* Navigation */
nav {
  background: var(--darker);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

nav .logo span {
  color: var(--primary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover, nav a.active {
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero h1 span {
  color: var(--primary);
}

.hero .tagline {
  font-size: 1.5rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .cta {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.hero .cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

section {
  margin-bottom: 4rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--darker);
  border-bottom: 3px solid var(--primary);
  padding-bottom: 0.5rem;
  display: inline-block;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

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

/* Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--gray-light);
}

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

.card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--darker);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
}

/* Code Blocks */
pre {
  background: var(--code-bg);
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.9rem;
  line-height: 1.8;
}

code {
  font-family: 'Fira Code', 'Consolas', monospace;
  background: var(--gray-light);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

pre code {
  background: none;
  padding: 0;
}

.code-label {
  background: var(--primary);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px 4px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: -0.5rem;
}

/* Steps */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 4rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-left: 2px solid var(--gray-light);
}

.step:last-child {
  border-left: none;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -1.1rem;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 0.5rem;
}

/* Prerequisites List */
.prereq-list {
  list-style: none;
  margin: 1rem 0;
}

.prereq-list li {
  padding: 0.8rem 1rem;
  background: white;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.prereq-list li strong {
  color: var(--darker);
}

/* Integration Grid */
.integrations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.integration-tag {
  background: white;
  border: 1px solid var(--gray-light);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--dark);
  transition: all 0.2s;
}

.integration-tag:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Alert Boxes */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.alert-info {
  background: #dbeafe;
  border-left: 4px solid var(--secondary);
  color: #1e40af;
}

.alert-warning {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  color: #92400e;
}

.alert-success {
  background: #dcfce7;
  border-left: 4px solid var(--success);
  color: #166534;
}

/* Footer */
footer {
  background: var(--darker);
  color: #94a3b8;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

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

footer a:hover {
  text-decoration: underline;
}

/* Chat Examples */
.chat-example {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.chat-message {
  margin-bottom: 1rem;
  max-width: 85%;
}

.chat-message:last-child {
  margin-bottom: 0;
}

.chat-message.user {
  margin-left: auto;
}

.chat-message .sender {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--gray);
}

.chat-message.user .sender {
  text-align: right;
  color: var(--primary);
}

.chat-message.bot .sender {
  color: var(--secondary);
}

.chat-message p,
.chat-message ul {
  background: white;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  margin-bottom: 0.3rem;
  color: var(--dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.chat-message.user p {
  background: var(--primary);
  color: white;
  border-radius: 12px 12px 4px 12px;
}

.chat-message.bot p,
.chat-message.bot ul {
  border-radius: 12px 12px 12px 4px;
}

.chat-message ul {
  padding-left: 2rem;
}

.chat-message li {
  margin-bottom: 0.3rem;
}

.chat-message pre {
  margin: 0.5rem 0;
  font-size: 0.8rem;
}

/* FAQ Styles */
.faq-section {
  margin-bottom: 3rem;
}

.faq-item {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid var(--gray-light);
}

.faq-item h3 {
  color: var(--darker);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.faq-item p {
  margin-bottom: 0.5rem;
}

.faq-item ul,
.faq-item ol {
  margin: 0.5rem 0 0.5rem 1.5rem;
  color: var(--gray);
}

.faq-item li {
  margin-bottom: 0.3rem;
}

/* Resource Cards */
.resource-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 2px solid var(--gray-light);
  transition: all 0.2s;
}

.resource-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.resource-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, #f5f3ff 0%, white 100%);
}

.resource-card .badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.resource-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--darker);
}

.resource-card .price span {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: normal;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Share Component */
.share-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.share-section h3 {
  color: var(--darker);
  margin-bottom: 0.5rem;
}

.share-section p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: 1px solid var(--gray-light);
  background: white;
  color: var(--dark);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.share-btn.twitter { border-color: #1da1f2; color: #1da1f2; }
.share-btn.twitter:hover { background: #1da1f2; color: white; }

.share-btn.facebook { border-color: #1877f2; color: #1877f2; }
.share-btn.facebook:hover { background: #1877f2; color: white; }

.share-btn.linkedin { border-color: #0a66c2; color: #0a66c2; }
.share-btn.linkedin:hover { background: #0a66c2; color: white; }

.share-btn.reddit { border-color: #ff4500; color: #ff4500; }
.share-btn.reddit:hover { background: #ff4500; color: white; }

.share-btn.whatsapp { border-color: #25d366; color: #25d366; }
.share-btn.whatsapp:hover { background: #25d366; color: white; }

.share-btn.telegram { border-color: #0088cc; color: #0088cc; }
.share-btn.telegram:hover { background: #0088cc; color: white; }

.share-btn.copy { border-color: var(--gray); }
.share-btn.copy:hover { background: var(--dark); color: white; }

/* AI Chat Share Section */
.ai-share-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--gray-light);
}

.ai-share-section h4 {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.ai-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  background: white;
  border: 1px solid var(--gray-light);
  color: var(--dark);
  transition: all 0.2s;
}

.ai-btn:hover {
  border-color: var(--primary);
  background: #f5f3ff;
  color: var(--primary);
}

/* Feedback Component */
.feedback-section {
  background: white;
  border: 2px solid var(--gray-light);
  border-radius: 16px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.feedback-section h3 {
  color: var(--darker);
  margin-bottom: 0.5rem;
}

.feedback-section p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.feedback-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  border: 2px solid var(--gray-light);
  background: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.feedback-btn:hover {
  transform: translateY(-2px);
}

.feedback-btn.yes {
  border-color: var(--success);
  color: var(--success);
}

.feedback-btn.yes:hover {
  background: var(--success);
  color: white;
}

.feedback-btn.no {
  border-color: #ef4444;
  color: #ef4444;
}

.feedback-btn.no:hover {
  background: #ef4444;
  color: white;
}

.feedback-thanks {
  display: none;
  padding: 1rem;
  background: #dcfce7;
  border-radius: 8px;
  color: #166534;
}

.feedback-section.submitted .feedback-buttons {
  display: none;
}

.feedback-section.submitted .feedback-thanks {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  nav .container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .hero .tagline {
    font-size: 1.1rem;
  }

  .step {
    padding-left: 3rem;
  }
}
