/**
 * public/css/tools/web/web-tools-seo.css
 * SEO content section styles for all Web Tool pages.
 * Blue accent. Matches site design system tokens.
 */

/* ── Ad blocks ── */
.seo-ad-block     { max-width: 760px; margin: 32px auto; padding: 0 20px; position: relative; }
.seo-ad-block--sm { max-width: 340px; }
.seo-ad-label     { display: block; text-align: center; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: #9ca3af; margin-bottom: 6px; }
.seo-ad-inner     { border: 1.5px dashed #d1d5db; border-radius: 10px; background: #f9fafb; display: flex; align-items: center; justify-content: center; min-height: 90px; color: #9ca3af; font-size: .85rem; font-style: italic; }

/* ── Section wrappers ── */
.seo-section          { padding: 64px 0; background: #ffffff; }
.seo-section--alt     { background: #f8fafc; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.seo-related-section  { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border-top: 1px solid #bfdbfe; }
.seo-inner            { max-width: 900px; margin: 0 auto; width: 100%; }

/* ── Typography ── */
.seo-h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.seo-lead {
  font-size: 1.02rem;
  color: #374151;
  line-height: 1.75;
  margin: 0 0 36px;
  max-width: 820px;
}
.seo-lead strong { color: #1a1f2e; font-weight: 700; }

/* ── How-to steps ── */
.seo-steps    { display: flex; flex-direction: column; gap: 16px; }
.seo-step-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}
.seo-step-card:hover     { box-shadow: 0 6px 20px rgba(0,0,0,.09); }
.seo-step-num            { font-size: 2.4rem; font-weight: 900; color: #dbeafe; line-height: 1; flex-shrink: 0; width: 56px; text-align: center; letter-spacing: -.04em; }
.seo-step-body h3        { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin: 0 0 8px; }
.seo-step-body p         { font-size: .93rem; color: #4b5563; line-height: 1.65; margin: 0; }

/* ── Benefits grid ── */
.seo-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 4px; }
.seo-benefit-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
}
.seo-benefit-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.seo-benefit-card strong { display: block; font-size: .95rem; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.seo-benefit-card p      { font-size: .85rem; color: #6b7280; line-height: 1.55; margin: 0; }

/* ── FAQ accordion ── */
.seo-faq      { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin: 0 auto; }
.seo-faq-item { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; transition: box-shadow .2s; }
.seo-faq-item.faq-open { box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: #93c5fd; }
.seo-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .97rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  transition: background .15s;
}
.seo-faq-q:hover          { background: #eff6ff; }
.seo-faq-icon             { flex-shrink: 0; color: #3b82f6; transition: transform .25s ease; }
.seo-faq-q.open .seo-faq-icon { transform: rotate(180deg); }
.seo-faq-a                { padding: 0 22px 18px; border-top: 1px solid #e5e7eb; display: none; }
.seo-faq-a.open           { display: block; }
.seo-faq-a p              { margin: 14px 0 0; font-size: .93rem; color: #4b5563; line-height: 1.7; }

/* ── Related tools grid ── */
.seo-tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 900px; margin: 0 auto; }
.seo-tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
  box-shadow: 0 2px 6px rgba(59,130,246,.06);
}
.seo-tool-card:hover { border-color: #3b82f6; box-shadow: 0 6px 20px rgba(59,130,246,.15); transform: translateY(-2px); background: #eff6ff; }
.seo-tool-card .tc-icon      { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.seo-tool-card .tc-body      { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.seo-tool-card .tc-body strong { font-size: .95rem; font-weight: 700; color: #0f172a; }
.seo-tool-card .tc-body span   { font-size: .82rem; color: #6b7280; }
.seo-tool-card .tc-arrow     { color: #3b82f6; font-size: 1.1rem; font-weight: 700; opacity: .5; transition: opacity .2s; }
.seo-tool-card:hover .tc-arrow { opacity: 1; }

/* ── Icon colour variants ── */
.tc-icon--violet { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }
.tc-icon--pink   { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #db2777; }
.tc-icon--teal   { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #0d9488; }
.tc-icon--orange { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.tc-icon--blue   { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.tc-icon--green  { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #15803d; }
.tc-icon--indigo { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #4338ca; }
.tc-icon--gray   { background: linear-gradient(135deg, #f3f4f6, #e5e7eb); color: #374151; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .seo-benefits   { grid-template-columns: 1fr; }
  .seo-tools-grid { grid-template-columns: 1fr; }
  .seo-steps      { gap: 12px; }
  .seo-step-card  { flex-direction: column; gap: 8px; }
  .seo-step-num   { font-size: 1.8rem; width: auto; }
  .seo-h2         { font-size: 1.35rem; }
}
