/* ── terminfrei Help Center – Shared Styles ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #1B3F7A;
  --navy-dark: #152f5c;
  --navy-light: #2a5299;
  --teal: #2DD4CC;
  --teal-light: #e0faf9;
  --teal-dark: #22a8a2;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --amber: #f59e0b;
  --amber-light: #fef3c7;
  --amber-border: #fbbf24;
  --green: #10b981;
  --green-light: #d1fae5;
  --red: #ef4444;
  --red-light: #fee2e2;
  --purple: #8b5cf6;
  --purple-light: #ede9fe;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.06);
  --transition: .2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }

img { max-width: 100%; display: block; }

/* ── Navbar ── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
}
.navbar-logo span.dot { color: var(--teal); }
.navbar-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.navbar-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
}
.navbar-links a:hover { color: var(--navy); }
.navbar-links a.active { color: var(--navy); font-weight: 600; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  font-size: .875rem;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: .875rem;
  padding: 10px 20px;
  border-radius: 8px;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 64px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45,212,204,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
}
.hero p {
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  margin-bottom: 32px;
}
.search-wrap {
  max-width: 600px;
  margin: 0 auto 24px;
  position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transition: border var(--transition);
  outline: none;
}
.search-wrap input:focus { border-color: var(--teal); }
.search-wrap .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1.25rem;
}
.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}
.chip:hover { background: rgba(45,212,204,.3); color: var(--white); }

/* ── Section wrapper ── */
.section { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}
.section-subtitle {
  color: var(--gray-500);
  margin-bottom: 32px;
}

/* ── Category grid ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.category-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}
.category-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--navy);
}
.category-card p {
  color: var(--gray-500);
  font-size: .9rem;
  margin-bottom: 8px;
}
.category-card .count {
  font-size: .8rem;
  font-weight: 600;
  color: var(--teal-dark);
}

/* ── Featured cards ── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.featured-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.featured-card .thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 3rem;
}
.featured-card .body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.featured-card .tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 8px;
  width: fit-content;
}
.featured-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}
.featured-card p {
  font-size: .875rem;
  color: var(--gray-500);
  flex: 1;
}
.featured-card .read-more {
  margin-top: 12px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--teal-dark);
}
.featured-card .read-more:hover { color: var(--navy); }

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 32px 24px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .85rem; }
.footer-links a:hover { color: var(--teal); }
.footer-brand { font-size: .85rem; }
.footer-brand strong { color: var(--teal); }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--gray-500);
  padding: 16px 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { color: var(--gray-300); }

/* ── Article layout ── */
.article-layout {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 40px;
  align-items: start;
}
.article-sidebar {
  position: sticky;
  top: 80px;
}
.toc { list-style: none; }
.toc-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.toc li { margin-bottom: 8px; }
.toc a {
  font-size: .85rem;
  color: var(--gray-500);
  display: block;
  padding: 4px 12px;
  border-left: 2px solid transparent;
  transition: all var(--transition);
}
.toc a:hover, .toc a.active {
  color: var(--navy);
  border-left-color: var(--teal);
  background: var(--teal-light);
  border-radius: 0 4px 4px 0;
}

/* ── Article content ── */
.article-content h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}
.article-content .article-tags { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.article-content .article-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: .75rem;
  font-weight: 600;
}
.article-content .intro {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 32px;
}
.article-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-content h2 .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--navy);
  font-size: .9rem;
  font-weight: 800;
  flex-shrink: 0;
}
.article-content p { margin-bottom: 16px; color: var(--gray-700); }
.article-content ul, .article-content ol { margin-bottom: 16px; padding-left: 20px; }
.article-content li { margin-bottom: 6px; color: var(--gray-700); }

.info-box, .warning-box {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.info-box {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
}
.info-box .box-icon { color: var(--teal-dark); font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.info-box p { color: var(--gray-700); margin: 0; }
.warning-box {
  background: var(--amber-light);
  border-left: 4px solid var(--amber-border);
}
.warning-box .box-icon { color: var(--amber); font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.warning-box p { color: var(--gray-700); margin: 0; }

.screenshot-placeholder {
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: .9rem;
  margin: 20px 0;
  flex-direction: column;
  gap: 8px;
}
.screenshot-placeholder i { font-size: 2rem; }
.screenshot-caption {
  text-align: center;
  font-size: .8rem;
  color: var(--gray-400);
  margin-top: -12px;
  margin-bottom: 20px;
}

/* ── Helpful widget ── */
.helpful {
  border-top: 1px solid var(--gray-200);
  padding-top: 32px;
  margin-top: 40px;
  text-align: center;
}
.helpful p { font-weight: 600; margin-bottom: 12px; color: var(--navy); }
.helpful-btns { display: flex; gap: 12px; justify-content: center; }
.helpful-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 8px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all var(--transition);
}
.helpful-btn:hover { border-color: var(--teal); color: var(--navy); }
.helpful-btn.active-yes { border-color: var(--green); background: var(--green-light); color: var(--green); }
.helpful-btn.active-no { border-color: var(--red); background: var(--red-light); color: var(--red); }

/* ── Related articles ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.related-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related-card h4 { font-size: .95rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.related-card p { font-size: .8rem; color: var(--gray-500); }

/* ── Roadmap ── */
.roadmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 4px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-tab:hover { color: var(--navy); }
.filter-tab.active {
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.kanban-col {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 20px;
}
.kanban-col-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
}
.kanban-col-title .col-count {
  background: var(--gray-200);
  color: var(--gray-600);
  font-size: .75rem;
  padding: 2px 8px;
  border-radius: 10px;
}
.kanban-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.kanban-card:last-child { margin-bottom: 0; }
.kanban-card h4 { font-size: .95rem; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; }
.kanban-card p { font-size: .8rem; color: var(--gray-500); margin-bottom: 10px; }
.kanban-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kanban-tag {
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--purple-light);
  color: var(--purple);
}
.kanban-tag.designer { background: #fce7f3; color: #be185d; }
.kanban-tag.portal { background: #dbeafe; color: #1d4ed8; }
.kanban-tag.api { background: #fef3c7; color: #b45309; }
.kanban-tag.push { background: #d1fae5; color: #065f46; }
.upvote-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-500);
  transition: all var(--transition);
}
.upvote-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.upvote-btn.active {
  background: var(--teal-light);
  border-color: var(--teal);
  color: var(--teal-dark);
}
.status-badge {
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}
.status-planned { background: var(--gray-100); color: var(--gray-600); }
.status-dev { background: #dbeafe; color: #1d4ed8; }
.status-done { background: var(--green-light); color: var(--green); }
.status-rejected { background: var(--red-light); color: var(--red); }

/* ── Idea form ── */
.idea-form-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.idea-form-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  transition: border var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--teal); }
.form-group textarea { min-height: 100px; resize: vertical; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .article-sidebar-right { display: none; }
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .mobile-toggle { display: block; }
  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  .hero h1 { font-size: 1.75rem; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .search-chips { gap: 6px; }
  .roadmap-header { flex-direction: column; align-items: stretch; }
}
