/* SmartFill Help Center — Simple, Sober & Professional Stylesheet */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8fafc;
  color: #334155;
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.help-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 24px 20px;
}

.header-container {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  border-radius: 50%;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-logo-link:hover .brand-logo {
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-title-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.brand-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.3px;
  margin: 0;
  transition: color 0.15s ease;
}

.brand-title-link:hover .brand-title {
  color: #0284c7;
}

.brand-title-suffix {
  font-weight: 500;
  color: #475569;
}

.brand-guide-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.brand-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 0;
}

.brand-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-top: 0;
}

.btn-support {
  background: #0f172a;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-support:hover {
  background: #1e293b;
}

/* Search Section */
.search-section {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 20px;
}

.search-container {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#help-search-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#help-search-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.search-hint {
  font-size: 12px;
  color: #64748b;
}

/* Main Layout */
.main-container {
  max-width: 1040px;
  margin: 30px auto;
  padding: 0 20px;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

@media (max-width: 860px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

.tool-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px 16px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tool-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.tool-card.active {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
}

.card-indicator {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.tool-card.active .card-indicator {
  background: #0284c7;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
}

.card-link {
  font-size: 12px;
  font-weight: 600;
  color: #0284c7;
  margin-top: auto;
}

/* Detail Sections */
.help-details-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.help-section {
  display: none;
}

.help-section.active {
  display: block;
}

.section-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.guide-block {
  margin-bottom: 22px;
}

.guide-block:last-child {
  margin-bottom: 0;
}

.guide-block h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.guide-block p {
  font-size: 14px;
  color: #334155;
  margin-bottom: 8px;
}

.guide-block ul, .guide-block ol {
  padding-left: 20px;
  font-size: 13.5px;
  color: #334155;
  margin-bottom: 8px;
}

.guide-block li {
  margin-bottom: 6px;
}

.code-box {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  color: #0f172a;
  margin: 8px 0 12px 0;
}

/* Workflow Breadcrumb Strip */
.workflow-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #0284c7;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.workflow-step {
  display: inline-flex;
  align-items: center;
  color: #0f172a;
}

.workflow-arrow {
  color: #94a3b8;
  font-weight: bold;
}

/* Steps List */
.steps-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps-list li {
  font-size: 14px;
  color: #334155;
  line-height: 1.55;
}

.steps-list strong {
  color: #0f172a;
}

/* Mode Box for Photo Studio (Offline vs Online) */
.mode-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
}

.mode-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.mode-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.mode-tag-offline {
  background: #ede9fe;
  color: #6d28d9;
}

.mode-tag-online {
  background: #dcfce7;
  color: #15803d;
}

.mode-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

/* Footer */
.help-footer {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 20px;
  margin-top: 40px;
}

.footer-container {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: #475569;
  text-decoration: none;
}

.footer-links a:hover {
  color: #0f172a;
  text-decoration: underline;
}

.sep {
  margin: 0 6px;
}

/* ── Contact Support Modal ── */
.popup-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.popup-modal-card {
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.popup-modal-header {
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.popup-modal-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.popup-modal-header p {
  margin: 3px 0 0;
  font-size: 11.5px;
  color: #64748b;
}

.popup-modal-close {
  background: transparent;
  border: none;
  font-size: 15px;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: all 0.15s ease;
}

.popup-modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

.contact-cards-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.contact-item-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.contact-item-card:hover {
  border-color: #0284c7;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.12);
  background: #f0f9ff;
}

.contact-item-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-item-content {
  flex: 1;
  min-width: 0;
}

.contact-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.contact-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.contact-item-badge {
  font-size: 10px;
  font-weight: 700;
  background: #dcfce7;
  color: #15803d;
  padding: 2px 7px;
  border-radius: 12px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.contact-item-desc {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 5px;
  line-height: 1.35;
}

.contact-item-val {
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  word-break: break-all;
}

@keyframes apaar-spin {
  to { transform: rotate(360deg); }
}
