/* ===========================================
   SIMPLERLLM HUB - Main Styles
   =========================================== */

/* CSS Variables */
:root {
  --sllm-primary: #534AB7;
  --sllm-primary-hover: #4a42a5;
  --sllm-text: #1a1a2e;
  --sllm-text-muted: #8a8a9a;
  --sllm-text-light: #b0afc0;
  --sllm-text-secondary: #6b6b80;
  --sllm-border: #eae7f2;
  --sllm-border-light: #f0eef5;
  --sllm-bg: #fff;
  --sllm-bg-subtle: #faf9fd;
  --sllm-bg-accent: #f3f1fe;
  --sllm-bg-accent-border: #e8e5f8;
  --sllm-green: #2a9d6e;
  --sllm-yellow: #b8860b;
  --sllm-green-bg: #ecf7e8;
  --sllm-green-text: #3b6d11;
  --sllm-orange-bg: #fef6e4;
  --sllm-orange-text: #854f0b;
  --sllm-red-bg: #fdeee8;
  --sllm-red-text: #993c1d;
}

/* ===========================================
   PAGE CONTAINER
   =========================================== */

.sllm-page {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--sllm-text);
  background: var(--sllm-bg);
}

.sllm-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ===========================================
   BREADCRUMB
   =========================================== */

.sllm-breadcrumb {
  padding: 8px 28px;
  font-size: 12px;
  color: var(--sllm-text-light);
  background: var(--sllm-bg-subtle);
  border-bottom: 1px solid var(--sllm-border-light);
}

.sllm-breadcrumb b {
  color: #7a78a0;
  font-weight: 400;
}

/* ===========================================
   SUB-NAVIGATION
   =========================================== */

.sllm-subnav {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0 28px;
  border-bottom: 1px solid var(--sllm-border-light);
}

.sllm-subnav-item {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--sllm-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  transition: color 0.15s;
}

.sllm-subnav-item:hover {
  color: var(--sllm-text);
}

.sllm-subnav-item--active {
  color: var(--sllm-primary);
  border-bottom-color: var(--sllm-primary);
  font-weight: 500;
}

/* ===========================================
   HERO SECTION
   =========================================== */

.sllm-hero {
  padding: 56px 28px 48px;
  text-align: center;
}

.sllm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sllm-bg-accent);
  color: var(--sllm-primary);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
  border: 1px solid var(--sllm-bg-accent-border);
}

.sllm-hero-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--sllm-text);
  margin-bottom: 10px;
}

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

.sllm-hero-subtitle {
  font-size: 15px;
  color: var(--sllm-text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 28px;
}

.sllm-hero-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.sllm-btn-primary {
  background: var(--sllm-primary);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: monospace;
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: background 0.15s;
}

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

.sllm-btn-outline {
  background: var(--sllm-bg);
  color: var(--sllm-text);
  border: 1px solid #e0dde8;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.sllm-btn-outline:hover {
  background: var(--sllm-bg-subtle);
  border-color: #d0cde0;
}

/* Code Window */
.sllm-code-window {
  background: var(--sllm-bg-subtle);
  border: 1px solid var(--sllm-border);
  border-radius: 14px;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
  overflow: hidden;
}

.sllm-code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--sllm-border);
  background: #f5f3fb;
}

.sllm-code-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sllm-code-dot--red { background: #e8a0a0; }
.sllm-code-dot--yellow { background: #e8d5a0; }
.sllm-code-dot--green { background: #a0d4a0; }

.sllm-code-filename {
  font-size: 11px;
  color: var(--sllm-text-light);
  margin-left: 8px;
}

.sllm-code-body {
  padding: 16px 18px;
  font-family: 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--sllm-text);
}

.sllm-code-keyword { color: var(--sllm-primary); }
.sllm-code-string { color: var(--sllm-green); }
.sllm-code-number { color: var(--sllm-yellow); }
.sllm-code-comment { color: var(--sllm-text-light); }

.sllm-code-output {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--sllm-border);
  color: var(--sllm-text-light);
  font-size: 12px;
}

.sllm-code-output-text {
  color: var(--sllm-text);
}

.sllm-code-cursor {
  display: inline-block;
  width: 2px;
  height: 13px;
  background: var(--sllm-primary);
  vertical-align: text-bottom;
  animation: sllm-blink 1s step-end infinite;
}

@keyframes sllm-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===========================================
   STATS SECTION
   =========================================== */

.sllm-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 28px 28px 24px;
  flex-wrap: wrap;
}

.sllm-stat {
  text-align: center;
}

.sllm-stat-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--sllm-text);
}

.sllm-stat-label {
  font-size: 12px;
  color: #9a99ae;
  margin-top: 2px;
}

/* ===========================================
   DIVIDER
   =========================================== */

.sllm-divider {
  border: none;
  border-top: 1px solid var(--sllm-border-light);
  margin: 0 28px;
}

/* ===========================================
   SECTION
   =========================================== */

.sllm-section {
  padding: 36px 28px 0;
}

.sllm-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sllm-section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--sllm-text);
}

.sllm-section-link {
  font-size: 13px;
  color: var(--sllm-primary);
  text-decoration: none;
  cursor: pointer;
}

.sllm-section-link:hover {
  text-decoration: underline;
}

.sllm-section-subtitle {
  font-size: 14px;
  color: var(--sllm-text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

/* ===========================================
   FEATURES GRID
   =========================================== */

.sllm-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px) {
  .sllm-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .sllm-features-grid {
    grid-template-columns: 1fr;
  }
}

.sllm-feature-card {
  background: var(--sllm-bg);
  border: 1px solid var(--sllm-border);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.15s;
  text-decoration: none;
  display: block;
}

.sllm-feature-card:hover {
  border-color: #d0cde8;
}

.sllm-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  background: var(--sllm-bg-accent);
  color: var(--sllm-primary);
  border: 1px solid var(--sllm-bg-accent-border);
}

.sllm-feature-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--sllm-text);
  margin-bottom: 4px;
}

.sllm-feature-desc {
  font-size: 12.5px;
  color: var(--sllm-text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.sllm-feature-link {
  font-size: 12px;
  color: var(--sllm-primary);
  font-weight: 500;
}

/* ===========================================
   PLAYGROUND GRID
   =========================================== */

.sllm-playground-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 700px) {
  .sllm-playground-grid {
    grid-template-columns: 1fr;
  }
}

.sllm-playground-card {
  background: var(--sllm-bg);
  border: 1px solid var(--sllm-border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
  text-decoration: none;
  display: block;
}

.sllm-playground-card:hover {
  border-color: #d0cde8;
}

.sllm-playground-preview {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sllm-bg-subtle);
}

.sllm-playground-body {
  padding: 14px 18px;
}

.sllm-playground-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--sllm-text);
  margin-bottom: 3px;
}

.sllm-playground-desc {
  font-size: 12.5px;
  color: var(--sllm-text-muted);
  line-height: 1.4;
}

/* ===========================================
   PROJECTS GRID
   =========================================== */

.sllm-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px) {
  .sllm-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .sllm-projects-grid {
    grid-template-columns: 1fr;
  }
}

.sllm-project-card {
  background: var(--sllm-bg);
  border: 1px solid var(--sllm-border);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.15s;
  text-decoration: none;
  display: block;
}

.sllm-project-card:hover {
  border-color: #d0cde8;
}

.sllm-project-card--featured {
  border-width: 1.5px;
  border-color: #d0cde8;
}

.sllm-project-badge {
  background: var(--sllm-bg-accent);
  color: var(--sllm-primary);
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 500;
  border: 1px solid var(--sllm-bg-accent-border);
  display: inline-block;
  margin-bottom: 8px;
}

.sllm-project-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--sllm-text);
  margin-bottom: 4px;
}

.sllm-project-desc {
  font-size: 12.5px;
  color: var(--sllm-text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.sllm-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.sllm-tag {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.sllm-tag--feature {
  background: var(--sllm-bg-accent);
  color: var(--sllm-primary);
}

.sllm-tag--beginner {
  background: var(--sllm-green-bg);
  color: var(--sllm-green-text);
}

.sllm-tag--intermediate {
  background: var(--sllm-orange-bg);
  color: var(--sllm-orange-text);
}

.sllm-tag--advanced {
  background: var(--sllm-red-bg);
  color: var(--sllm-red-text);
}

/* ===========================================
   MCP BANNER
   =========================================== */

.sllm-mcp-banner {
  background: var(--sllm-bg-subtle);
  border: 1px solid var(--sllm-border);
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 680px;
  margin: 36px auto 0;
}

@media (max-width: 700px) {
  .sllm-mcp-banner {
    flex-direction: column;
    text-align: center;
  }
}

.sllm-mcp-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sllm-bg-accent);
  border: 1px solid var(--sllm-bg-accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sllm-mcp-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--sllm-text);
  margin-bottom: 4px;
}

.sllm-mcp-content p {
  font-size: 13px;
  color: var(--sllm-text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.sllm-mcp-url {
  font-family: monospace;
  font-size: 12px;
  background: var(--sllm-bg);
  border: 1px solid var(--sllm-border);
  border-radius: 8px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sllm-primary);
}

.sllm-mcp-copy {
  background: var(--sllm-primary);
  color: #fff;
  border: none;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 500;
}

.sllm-mcp-copy:hover {
  background: var(--sllm-primary-hover);
}

/* ===========================================
   QUICKSTART
   =========================================== */

.sllm-quickstart {
  margin: 36px 28px 0;
  padding: 28px;
  background: var(--sllm-bg-subtle);
  border: 1px solid var(--sllm-border);
  border-radius: 14px;
}

.sllm-quickstart-title {
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  color: var(--sllm-text);
}

.sllm-quickstart-grid {
  display: flex;
  gap: 10px;
}

@media (max-width: 800px) {
  .sllm-quickstart-grid {
    flex-direction: column;
  }
}

.sllm-quickstart-step {
  flex: 1;
  background: var(--sllm-bg);
  border: 1px solid var(--sllm-border);
  border-radius: 10px;
  padding: 14px;
}

.sllm-quickstart-label {
  font-size: 11px;
  color: var(--sllm-text-light);
  margin-bottom: 5px;
  font-weight: 500;
}

.sllm-quickstart-code {
  font-family: monospace;
  font-size: 11px;
  color: var(--sllm-text);
  line-height: 1.6;
}

/* ===========================================
   PROVIDERS
   =========================================== */

.sllm-providers {
  text-align: center;
  padding: 28px 28px 36px;
}

.sllm-providers p {
  font-size: 12px;
  color: var(--sllm-text-light);
  margin-bottom: 10px;
}

.sllm-providers-list {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sllm-provider {
  background: var(--sllm-bg-subtle);
  border: 1px solid var(--sllm-border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--sllm-text-secondary);
}

/* ===========================================
   RESPONSIVE ADJUSTMENTS
   =========================================== */

@media (max-width: 640px) {
  .sllm-hero {
    padding: 40px 20px 32px;
  }

  .sllm-hero-title {
    font-size: 28px;
  }

  .sllm-hero-subtitle {
    font-size: 14px;
  }

  .sllm-code-window {
    border-radius: 10px;
  }

  .sllm-code-body {
    font-size: 11px;
    padding: 12px 14px;
  }

  .sllm-stats {
    gap: 24px;
  }

  .sllm-section {
    padding: 28px 20px 0;
  }

  .sllm-divider {
    margin: 0 20px;
  }

  .sllm-breadcrumb,
  .sllm-subnav {
    padding-left: 20px;
    padding-right: 20px;
  }

  .sllm-subnav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sllm-subnav-item {
    white-space: nowrap;
    padding: 12px 14px;
  }

  .sllm-mcp-banner,
  .sllm-quickstart {
    margin-left: 20px;
    margin-right: 20px;
  }

  .sllm-providers {
    padding-left: 20px;
    padding-right: 20px;
  }
}
