/* ========================================
   SkySearch - Sub Pages Styles
   ======================================== */

/* ========== Navigation ========== */
.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========== Scroll to Top ========== */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f43f5e;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.45);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  z-index: 200;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: #e11d48;
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.55);
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 7px 22px 7px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  width: 60px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23fff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 8px;
}

.lang-select:hover {
  opacity: 0.85;
}


/* ========== Page Layout ========== */
.page-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.page-content h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1.3;
}

.page-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.page-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.page-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-light);
  color: var(--text-primary);
}

.page-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.page-content p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.page-content ul,
.page-content ol {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 6px;
}

.page-content a {
  color: var(--accent);
  text-decoration: none;
}

.page-content a:hover {
  text-decoration: underline;
}

.page-content code {
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ========== Footer Links ========== */
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ========== Guide Specific ========== */
.guide-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.guide-toc h3 {
  font-size: 0.9rem;
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.guide-toc ol {
  margin-bottom: 0;
  padding-left: 20px;
}

.guide-toc a {
  color: var(--accent);
  text-decoration: none;
}

.guide-toc a:hover {
  text-decoration: underline;
}

.guide-step {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content p {
  margin-bottom: 4px;
}

.step-note {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
}

.guide-example {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 12px 0 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.guide-table {
  overflow-x: auto;
  margin: 12px 0 16px;
}

.guide-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.guide-table th,
.guide-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.guide-table th {
  background: var(--bg-input);
  font-weight: 600;
  color: var(--text-primary);
}

.guide-tip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.guide-tip h3 {
  margin-top: 0;
  font-size: 0.9rem;
  color: var(--accent);
}

.guide-tip p {
  margin-bottom: 0;
}

.guide-cta {
  text-align: center;
  margin-top: 40px;
}

.guide-cta .btn-search {
  display: inline-flex;
  width: auto;
  padding: 14px 40px;
  text-decoration: none;
  color: white;
  -webkit-text-fill-color: white;
}

/* ========== FAQ ========== */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 10px;
}

.faq-item h3 {
  margin-top: 0;
  font-size: 0.9rem;
  color: var(--accent);
}

.faq-item p {
  margin-bottom: 0;
}

/* ========== About - Feature Grid ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.15s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  color: var(--accent);
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 0.9rem;
  margin-top: 0;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.8rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ========== Contact Form ========== */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
}

.contact-group {
  margin-bottom: 16px;
}

.contact-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.contact-group textarea {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  width: 100%;
  resize: vertical;
  transition: border-color 0.2s;
}

.contact-group textarea:focus {
  outline: none;
  border-color: var(--border-focus);
}

.contact-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1.5px solid #fecaca;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

[data-theme="dark"] .contact-error {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.3);
  color: #f87171;
}

.contact-note {
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin: 24px 0;
}

.contact-note p {
  color: var(--accent);
  font-weight: 600;
}

.contact-info {
  margin-top: 32px;
}

.contact-response {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
}

/* ========== Responsive ========== */
@media (max-width: 640px) {
  .nav {
    gap: 12px;
  }

  .nav a {
    font-size: 0.75rem;
  }

  .page-content h1 {
    font-size: 1.4rem;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .guide-step {
    gap: 10px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .footer-links {
    gap: 10px;
  }
}

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