/* ============================================
   MCP Page Styles
   ============================================
*/

.mcp-page {
  width: 100%;
  overflow-x: hidden;
  padding-top: 60px;
  background: #fff;
  color: #333;
}

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

.section {
  padding: 4rem 0;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #333;
}

.section-title strong {
  color: #FF6B35;
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.65;
  color: #555;
}

.section-intro strong {
  color: #333;
}

/* ----- Fade-in (initial hidden, then .visible) ----- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO ===== */
.mcp-hero {
  padding: 80px 20px 60px;
  text-align: center;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  border-bottom: 1px solid #eee;
}

.mcp-hero__inner {
  max-width: 800px;
  margin: 0 auto;
}

.mcp-hero__title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  color: #333;
}

.mcp-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: #555;
  margin-bottom: 2rem;
}

.mcp-hero__subtitle strong {
  color: #FF6B35;
  font-weight: 600;
}

.mcp-hero__anchors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.mcp-hero__anchors a {
  color: #FF6B35;
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.mcp-hero__anchors a:hover {
  background: rgba(255, 107, 53, 0.12);
  color: #e55a2b;
}

/* ===== EXPLAINED (What is MCP) ===== */
.mcp-explained {
  background: #fff;
}

.mcp-explained__box {
  margin-top: 2.5rem;
  padding: 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mcp-explained__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.mcp-point {
  padding: 1.25rem 1.25rem;
  background: transparent;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
  transition: background 0.2s ease;
}

.mcp-point:hover {
  background: #f8f9fa;
}

.mcp-point a {
  color: #FF6B35;
  text-decoration: none;
  font-weight: 500;
}

.mcp-point a:hover {
  text-decoration: underline;
}

/* ===== ROTATING EXAMPLES (search-bar style) ===== */
.mcp-examples {
  background: #f8f9fa;
}

.mcp-examples__rotating {
  max-width: 640px;
  margin: 0 auto;
}

.mcp-example-prompt {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: opacity 0.4s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mcp-example-prompt:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border-color: #e0e0e0;
}

.mcp-example-prompt.fade-swap {
  opacity: 0;
}

.mcp-example-prompt__line {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  font-family: "SF Mono", "Monaco", "Consolas", "Menlo", monospace;
}

.mcp-example-prompt__at {
  color: #FF6B35;
  font-weight: 600;
}

.mcp-example-prompt__arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FF6B35;
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mcp-example-prompt:hover .mcp-example-prompt__arrow {
  background: #e55a2b;
  transform: translateX(2px);
}

/* ===== INTERACTIVE COMMANDS ===== */
.mcp-commands {
  background: #fff;
}

.mcp-commands__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.mcp-cmd-btn {
  padding: 0.6rem 1rem;
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.mcp-cmd-btn:hover,
.mcp-cmd-btn:focus {
  background: rgba(255, 107, 53, 0.12);
  border-color: #FF6B35;
  color: #FF6B35;
  outline: none;
}

.mcp-cmd-btn.active {
  background: #FF6B35;
  border-color: #FF6B35;
  color: #fff;
}

.mcp-commands__explanation {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.mcp-commands__explanation:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mcp-commands__explanation-label {
  flex-shrink: 0;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
}

.mcp-commands__explanation-text {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.mcp-commands__explanation .mcp-commands__explanation-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}


/* ===== FAQ (accordion, same design as homepage) ===== */
/* Override global .section / .section .faq-list opacity from main-compiled so FAQ is visible on MCP page */
.mcp-page .mcp-faq.section {
  opacity: 1;
  transform: none;
  animation: none;
}

.mcp-page .mcp-faq .faq-list {
  opacity: 1;
  transform: none;
}

.mcp-faq {
  background: #f8f9fa;
}

.mcp-faq .faq-list {
  max-width: 800px;
  margin: 2rem auto 0;
  text-align: center;
}

.mcp-faq .faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.mcp-faq .faq-item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.mcp-faq .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
}

.mcp-faq .faq-question:hover {
  color: #FF6B35;
}

.mcp-faq .faq-question i {
  transition: transform 0.3s ease;
  color: #333;
}

.mcp-faq .faq-question.open i,
.mcp-faq .faq-question:hover i {
  color: #FF6B35;
}

.mcp-faq .faq-question.open i {
  transform: rotate(180deg);
}

.mcp-faq .faq-answer {
  max-height: 0;
  overflow: hidden;
  font-size: 1rem;
  color: #333;
  padding: 0 2rem;
  transition: max-height 0.3s ease, padding 0.3s ease;
  line-height: 1.8;
  text-align: left;
}

.mcp-faq .faq-answer.open {
  max-height: 500px;
  padding: 2rem;
}

.mcp-faq .faq-answer a {
  color: #FF6B35;
  text-decoration: none;
  font-weight: 500;
}

.mcp-faq .faq-answer a:hover {
  text-decoration: underline;
}

.mcp-faq .faq-answer code {
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  font-size: 0.9em;
  padding: 0.15rem 0.4rem;
  background: #eee;
  border-radius: 4px;
  color: #333;
}

/* ===== CTA ===== */
.mcp-cta {
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  padding: 4rem 0 5rem;
}

.mcp-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.mcp-cta__buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.mcp-cta__buttons .btn-primary,
.mcp-cta__buttons .mcp-cta__primary {
  background: #FF6B35;
  color: #fff;
  border: 2px solid #FF6B35;
}

.mcp-cta__buttons .btn-primary i,
.mcp-cta__buttons .mcp-cta__primary i {
  color: #fff;
}

.mcp-cta__buttons .btn-primary:hover,
.mcp-cta__buttons .mcp-cta__primary:hover {
  background: #e55a2b;
  border-color: #e55a2b;
  color: #fff;
}

.mcp-cta__buttons .btn-primary:hover i,
.mcp-cta__buttons .mcp-cta__primary:hover i {
  color: #fff;
}

.mcp-cta__buttons .btn-secondary {
  background: transparent;
  color: #333;
  border: 2px solid #ddd;
}

.mcp-cta__buttons .btn-secondary:hover {
  border-color: #FF6B35;
  color: #FF6B35;
}

/* Responsive */
@media (max-width: 768px) {
  .mcp-hero {
    padding: 60px 16px 48px;
  }

  .mcp-commands__buttons {
    gap: 0.5rem;
  }

  .mcp-cmd-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  .mcp-cta__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .mcp-cta__buttons .btn {
    justify-content: center;
  }
}
