/* Pawtel Documentation — matches Support Portal & App design system */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #F6F6F6;
  color: #000000;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* Layout */
.layout { min-height: 100vh; display: flex; flex-direction: column; }

.header {
  background-color: #000000;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.header-logo { height: 40px; width: auto; }

.header-subtitle {
  font-size: 12px;
  color: #B8B8B8;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav {
  background: #fff;
  border-bottom: 1px solid #E8E8E8;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 0;
}

.nav a {
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #545454;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}

.nav a:hover, .nav a.active { color: #000; border-bottom-color: #000; }

.main {
  flex: 1;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px;
}

.footer {
  text-align: center;
  padding: 24px;
  color: #8F8F8F;
  font-size: 12px;
  border-top: 1px solid #E8E8E8;
  background: #FFFFFF;
}

/* Page */
.page { animation: fadeIn 0.25s ease; }

/* Hero */
.hero { text-align: center; padding: 24px 0 32px; }
.hero-title { font-size: 32px; font-weight: 700; color: #000; margin-bottom: 8px; letter-spacing: -0.5px; }
.hero-subtitle { font-size: 16px; color: #545454; line-height: 24px; max-width: 440px; margin: 0 auto; }

/* Page title */
.page-title { font-size: 24px; font-weight: 700; color: #000; margin-bottom: 4px; }
.page-subtitle { font-size: 15px; color: #545454; margin-bottom: 24px; line-height: 22px; }

/* Breadcrumb */
.breadcrumb { font-size: 14px; color: #8F8F8F; margin-bottom: 24px; }
.breadcrumb a { color: #000; font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* List group */
.list-group {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E8E8E8;
  overflow: hidden;
}

.list-item {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 16px;
  cursor: pointer;
  transition: background-color 0.15s;
  border-bottom: 1px solid #E8E8E8;
  text-decoration: none;
  color: inherit;
}

.list-item:last-child { border-bottom: none; }
.list-item:hover { background-color: #FAFAFA; }
.list-item:active { background-color: #F6F6F6; }

.list-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #F6F6F6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.list-item-content { flex: 1; min-width: 0; }
.list-item-title { display: block; font-size: 16px; font-weight: 600; color: #000; margin-bottom: 2px; }
.list-item-description { display: block; font-size: 14px; color: #8F8F8F; line-height: 20px; }

/* Content sections */
.section {
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 16px;
}

.section h2 {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E8E8E8;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section h3 { font-size: 16px; font-weight: 700; color: #000; margin-top: 20px; margin-bottom: 8px; }
.section p { font-size: 15px; color: #545454; line-height: 24px; margin-bottom: 12px; }
.section ul, .section ol { margin-left: 20px; margin-bottom: 12px; }
.section li { font-size: 15px; color: #545454; line-height: 24px; margin-bottom: 6px; }
.section strong { color: #000; }
.section a { color: #000; font-weight: 600; text-decoration: underline; }

/* Table of contents */
.toc {
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.toc-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8F8F8F;
  padding: 20px 20px 12px;
}

.toc a {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  border-top: 1px solid #E8E8E8;
  transition: background-color 0.15s;
}

.toc a:hover { background-color: #FAFAFA; }

/* Tips & Notes */
.tip {
  background: #F0FDF4;
  border-left: 4px solid #0E8345;
  padding: 16px;
  border-radius: 0 12px 12px 0;
  margin: 16px 0;
}
.tip p { color: #166534; margin: 0; }
.tip strong { color: #0E8345; }

.note {
  background: #FFF9E6;
  border-left: 4px solid #F6B100;
  padding: 16px;
  border-radius: 0 12px 12px 0;
  margin: 16px 0;
}
.note p { color: #92400E; margin: 0; }
.note strong { color: #D97706; }

/* FAQ */
.tab-bar {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E8E8E8;
  overflow: hidden;
}

.tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #545454;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s;
  font-family: inherit;
}

.tab.active { background: #000; color: #fff; }

.faq-section { display: none; }
.faq-section.active { display: block; }

.faq-category { margin-bottom: 24px; }
.faq-category-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-left: 4px;
  color: #000;
}

.faq-item {
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.faq-question:hover { background: #FAFAFA; }

.faq-arrow {
  font-size: 18px;
  color: #8F8F8F;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 15px;
  color: #545454;
  line-height: 24px;
}

.faq-item.open .faq-answer { display: block; }
.faq-answer p { margin-bottom: 8px; }
.faq-answer ul { margin-left: 20px; margin-bottom: 8px; }
.faq-answer li { margin-bottom: 4px; }
.faq-answer a { color: #000; font-weight: 600; }

/* Support banner */
.support-banner {
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin-top: 32px;
}

.support-banner h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #000; }
.support-banner p { font-size: 15px; color: #545454; margin-bottom: 20px; }

.support-banner a {
  display: inline-block;
  padding: 14px 32px;
  background: #000;
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s;
}

.support-banner a:hover { background: #292929; }

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 26px; }
  .page-title { font-size: 20px; }
  .section { padding: 20px; }
  .main { padding: 24px 16px; }
  .list-item { padding: 16px; }
  .nav a { padding: 12px 14px; font-size: 14px; }
}
