/* ClashPro AI — Shared Guides Stylesheet */

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f0f2f5;
  color: #1a202c;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.site-header {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  border-bottom: 3px solid #6b46c1;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}
.site-logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.04em;
}
.site-logo span { color: #63b3ed; }
.site-logo .ai-badge { color: #b794f4; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-nav a {
  color: #cbd5e0;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s;
}
.header-nav a:hover { color: #fff; }
.header-cta {
  background: #6b46c1;
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.85rem !important;
  transition: background 0.15s !important;
}
.header-cta:hover { background: #553c9a !important; color: #fff !important; }

/* ── Breadcrumb ── */
.breadcrumb {
  max-width: 860px;
  margin: 20px auto 0;
  padding: 0 20px;
  font-size: 0.8rem;
  color: #718096;
}
.breadcrumb a { color: #6b46c1; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ── Article layout ── */
.article-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 10px;
  font-size: 0.8rem;
  color: #718096;
  flex-wrap: wrap;
}
.article-meta .tag {
  background: #e9d8fd;
  color: #553c9a;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.75rem;
}
article h1 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
  color: #1a202c;
  margin: 0 0 24px;
}
article h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #2d3748;
  margin: 36px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e9d8fd;
}
article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #553c9a;
  margin: 24px 0 8px;
}
article p { margin: 0 0 16px; color: #2d3748; }
article ul, article ol {
  margin: 0 0 16px 20px;
  color: #2d3748;
}
article li { margin-bottom: 6px; }
article strong { color: #1a202c; }
article a { color: #6b46c1; }
article a:hover { text-decoration: underline; }

/* ── Callout boxes ── */
.callout {
  background: #faf5ff;
  border-left: 4px solid #6b46c1;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 24px 0;
}
.callout p { margin: 0; font-size: 0.92rem; }
.callout strong { color: #553c9a; }

.callout-yellow {
  background: #fffbeb;
  border-left-color: #d97706;
}
.callout-yellow strong { color: #92400e; }

.callout-green {
  background: #f0fdf4;
  border-left-color: #059669;
}
.callout-green strong { color: #065f46; }

/* ── Stat table ── */
.stat-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}
.stat-table th {
  background: #2d3748;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}
.stat-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #2d3748;
}
.stat-table tr:nth-child(even) td { background: #f7fafc; }

/* ── CTA Box ── */
.cta-box {
  background: linear-gradient(135deg, #6b46c1 0%, #d53f8c 100%);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 40px 0 20px;
  text-align: center;
  color: #fff;
}
.cta-box h3 {
  color: #fff;
  font-size: 1.3rem;
  margin: 0 0 8px;
  font-weight: 900;
}
.cta-box p { color: rgba(255,255,255,0.85); margin: 0 0 18px; font-size: 0.95rem; }
.cta-btn-white {
  display: inline-block;
  background: #fff;
  color: #6b46c1;
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s;
}
.cta-btn-white:hover { transform: translateY(-2px); color: #553c9a; text-decoration: none; }

/* ── Related articles ── */
.related-section { margin-top: 40px; }
.related-section h3 { color: #2d3748; font-size: 1rem; margin-bottom: 14px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.related-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block;
}
.related-card:hover {
  border-color: #6b46c1;
  box-shadow: 0 4px 12px rgba(107,70,193,0.1);
  text-decoration: none;
}
.related-card .rc-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6b46c1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.related-card .rc-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.3;
}

/* ── Guides index ── */
.guides-hero {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  padding: 48px 20px 40px;
  text-align: center;
  border-bottom: 3px solid #6b46c1;
}
.guides-hero h1 {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 12px;
}
.guides-hero p { color: #a0aec0; font-size: 1rem; margin: 0; }
.guides-grid-section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px 60px;
}
.guides-grid-section h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.guides-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.guide-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 20px 16px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: block;
}
.guide-card:hover {
  border-color: #6b46c1;
  box-shadow: 0 6px 20px rgba(107,70,193,0.12);
  transform: translateY(-2px);
  text-decoration: none;
}
.guide-card .gc-emoji { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.guide-card .gc-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: #6b46c1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.guide-card .gc-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1a202c;
  line-height: 1.3;
  margin: 4px 0 6px;
}
.guide-card .gc-desc {
  font-size: 0.82rem;
  color: #718096;
  line-height: 1.5;
}

/* ── Footer ── */
.site-footer-guide {
  background: #1a202c;
  color: #a0aec0;
  text-align: center;
  padding: 28px 20px;
  font-size: 0.8rem;
}
.site-footer-guide a { color: #b794f4; text-decoration: none; }
.site-footer-guide a:hover { text-decoration: underline; }

/* ── Mobile ── */
@media (max-width: 600px) {
  article h1 { font-size: 1.5rem; }
  article h2 { font-size: 1.1rem; }
  .guides-hero h1 { font-size: 1.8rem; }
  .header-nav .header-nav-guides { display: none; }
  .cta-box { padding: 22px 18px; }
}
