/* ============================================
   Reevio Documentation Page Styles
   ============================================ */

/* Search */
.docs-search {
  background: linear-gradient(135deg, #f3f0fa 0%, #fff 100%);
  padding: 40px;
  border-radius: 20px;
  margin-top: 16px;
  margin-bottom: 48px;
  text-align: center;
}
.docs-search-input {
  width: 100%;
  max-width: 500px;
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}
.docs-search-input:focus {
  border-color: #7266AB;
  box-shadow: 0 0 0 4px rgba(114,102,171,0.1);
}

/* Categories Grid */
.docs-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
.docs-cat-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.docs-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.docs-cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.docs-cat-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}
.docs-cat-info {
  display: flex;
  flex-direction: column;
}
.docs-cat-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}
.docs-cat-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* FAQ Sections */
.docs-section {
  margin-bottom: 56px;
}
.docs-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-top: 32px;
  border-top: 2px solid #f3f4f6;
}
.docs-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.docs-section-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}
.docs-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

/* Details/Summary Accordion */
.docs-faq {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.docs-faq summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #1f2937;
  background: white;
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  transition: color 0.2s;
}
.docs-faq summary::-webkit-details-marker {
  display: none;
}
.docs-faq summary::after {
  content: '';
  margin-left: auto;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.docs-faq[open] summary::after {
  transform: rotate(180deg);
}
.docs-faq summary:hover {
  color: #7266AB;
}
.docs-faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.docs-faq-icon svg {
  width: 14px;
  height: 14px;
  color: white;
}
.docs-faq-content {
  padding: 0 24px 24px;
  color: #4b5563;
  line-height: 1.8;
  font-size: 14px;
}
.docs-faq-content p {
  margin-bottom: 12px;
}
.docs-faq-content ul, .docs-faq-content ol {
  margin: 12px 0 12px 20px;
}
.docs-faq-content li {
  margin-bottom: 6px;
}
.docs-faq-content strong {
  color: #1f2937;
}
.docs-faq-content code {
  padding: 3px 8px;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: 13px;
}

/* Tip boxes */
.docs-tip {
  background: #f3f0fa;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 13px;
  color: #5a4f8c;
  margin: 12px 0;
  line-height: 1.6;
}

/* Quota Table */
.docs-quota-table {
  width: 100%;
  border-collapse: collapse;
  background: #f9fafb;
  border-radius: 12px;
  overflow: hidden;
  margin: 24px 0;
}
.docs-quota-table th {
  padding: 14px 16px;
  font-weight: 600;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}
.docs-quota-table th:first-child {
  text-align: left;
}
.docs-quota-table td {
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}
.docs-quota-table td:first-child {
  text-align: left;
  font-weight: 500;
}
.docs-quota-unlimited {
  color: #7266AB;
  font-weight: 600;
}
.docs-quota-check {
  color: #22c55e;
  font-weight: 700;
}
.docs-quota-none {
  color: #d1d5db;
}

/* Responsive */
@media (max-width: 768px) {
  .docs-search {
    padding: 24px;
  }
  .docs-categories {
    grid-template-columns: 1fr;
  }
  .docs-faq summary {
    padding: 14px 16px;
    font-size: 14px;
  }
  .docs-faq-content {
    padding: 0 16px 16px;
  }
  .docs-quota-table {
    font-size: 12px;
  }
  .docs-quota-table th, .docs-quota-table td {
    padding: 8px 10px;
  }
}
