/* ─── FREE AI SITE BUILDER — SHARED ARTICLE STYLES ─── */
/* Matches homepage white aesthetic: Inter font, #2563EB blue accent */

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

:root {
  --white:      #FFFFFF;
  --off-white:  #F8F9FA;
  --gray-50:    #F1F5F9;
  --gray-100:   #E2E8F0;
  --gray-300:   #94A3B8;
  --gray-400:   #64748B;
  --gray-600:   #475569;
  --gray-900:   #0F172A;
  --blue:       #2563EB;
  --blue-hover: #1D4ED8;
  --blue-light: #EFF6FF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--gray-900);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 0 2rem;
  height: 60px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
}
.nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  font-size: 0.88rem;
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gray-900); }
.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--blue-hover) !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* ─── ARTICLE HERO ─── */
.article-hero {
  padding: 100px 2rem 3rem;
  text-align: center;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.article-hero .breadcrumb {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.article-hero .breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}
.article-hero .breadcrumb a:hover { text-decoration: underline; }
.article-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 760px;
  margin: 0 auto 1rem;
  color: var(--gray-900);
}
.article-hero h1 span { color: var(--blue); }
.article-meta {
  font-size: 0.88rem;
  color: var(--gray-400);
  font-weight: 500;
}
.article-thumbnail {
  max-width: 800px;
  margin: 2rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.article-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── ARTICLE BODY ─── */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  background: var(--white);
}
.article-body p {
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.article-body h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 2.5rem 0 1rem;
  color: var(--gray-900);
}
.article-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 2rem 0 0.8rem;
  color: var(--gray-900);
}
.article-body strong {
  color: var(--gray-900);
  font-weight: 700;
}
.article-body em {
  color: var(--gray-600);
  font-style: italic;
}
.article-body a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.article-body a:hover { text-decoration: underline; }
.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--gray-600);
  font-size: 1.08rem;
  line-height: 1.85;
}
.article-body li {
  margin-bottom: 0.7rem;
}
.article-body blockquote {
  border-left: 3px solid var(--blue);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--blue-light);
  border-radius: 0 8px 8px 0;
  color: var(--gray-600);
  font-style: italic;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.95rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
}
.article-body th {
  text-align: left;
  padding: 0.8rem 1rem;
  background: var(--off-white);
  color: var(--gray-900);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--gray-100);
}
.article-body td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
}
.article-body tr:last-child td { border-bottom: none; }
.article-body tr:nth-child(even) td { background: var(--off-white); }

/* ─── IN-ARTICLE CTA ─── */
.article-cta {
  background: var(--blue-light);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem 0;
}
.article-cta h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
  color: var(--gray-900);
}
.article-cta p {
  color: var(--gray-600);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.article-cta .cta-btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 0.85rem 2.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
}
.article-cta .cta-btn:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  text-decoration: none;
}
.article-cta .cta-sub {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--gray-400);
}

/* ─── SHARE BAR ─── */
.share-bar {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--gray-100);
}
.share-bar .share-label {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.share-bar .share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.share-bar .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  color: var(--gray-400);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.share-bar .share-btn:hover {
  background: var(--blue-light);
  color: var(--blue);
  border-color: rgba(37,99,235,0.2);
}
.share-bar .share-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ─── BLOG INDEX HERO ─── */
.blog-hero {
  padding: 100px 2rem 3rem;
  text-align: center;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.blog-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 0.8rem;
  color: var(--gray-900);
}
.blog-hero h1 span { color: var(--blue); }
.blog-hero p {
  color: var(--gray-400);
  font-size: 1.05rem;
  font-weight: 400;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── BLOG GRID ─── */
.blog-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.blog-card {
  display: flex;
  gap: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  border-color: rgba(37,99,235,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.blog-card-img,
.blog-card-thumb {
  width: 200px;
  min-width: 200px;
  overflow: hidden;
  background: var(--gray-50);
}
.blog-card-img img,
.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.blog-card:hover .blog-card-img img,
.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
.blog-card-body,
.blog-card-content {
  padding: 1.5rem 1.5rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-card-content h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--gray-900);
  margin: 0.4rem 0 0.5rem;
}
.blog-card-content p {
  font-size: 0.88rem;
  color: var(--gray-400);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.blog-card-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.blog-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta,
.blog-card-date {
  font-size: 0.78rem;
  color: var(--gray-300);
  margin-top: 0.75rem;
  font-weight: 500;
}
.blog-card-read {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 600;
  margin-top: 0.75rem;
}

/* ─── FOOTER ─── */
footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-300);
  border-top: 1px solid var(--gray-100);
  background: var(--white);
}
footer a {
  color: var(--gray-400);
  text-decoration: none;
}
footer a:hover { color: var(--gray-900); }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .article-body { padding: 2rem 1.2rem 4rem; }
  .article-body table { font-size: 0.82rem; }
  .article-body th, .article-body td { padding: 0.5rem 0.6rem; }
  .blog-card { flex-direction: column; }
  .blog-card-img, .blog-card-thumb { width: 100%; min-width: unset; height: 180px; }
  .blog-card-body, .blog-card-content { padding: 1rem; }
}

/* ─── STICKY SIDEBAR CTA ─── */
.sticky-sidebar {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 260px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.sticky-sidebar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-sidebar h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.sidebar-btn {
  display: block;
  background: var(--blue);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 0.5rem;
}
.sidebar-btn:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  text-decoration: none;
}
.sidebar-sub {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-align: center;
  margin: 0;
}
.sidebar-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--gray-300);
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
  transition: color 0.2s;
}
.sidebar-close:hover { color: var(--gray-900); }

/* ─── MOBILE CTA BANNER ─── */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  padding: 1rem 1.5rem;
  z-index: 900;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.mobile-cta h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.mobile-cta .sidebar-btn {
  margin-bottom: 0.25rem;
}
@media (max-width: 900px) {
  .sticky-sidebar { display: none; }
  .mobile-cta { display: block; }
}

/* ─── RELATED ARTICLES ─── */
.related-articles {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  border-top: 1px solid var(--gray-100);
}
.related-articles h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.related-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  background: var(--white);
}
.related-card:hover {
  border-color: rgba(37,99,235,0.2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.related-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.related-card-body {
  padding: 0.75rem;
}
.related-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ─── COMMENTS SECTION ─── */
.comments-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  border-top: 1px solid var(--gray-100);
}
.comments-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}
#comments-list { margin-bottom: 2rem; }
.comment-item {
  padding: 1rem;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  margin-bottom: 1rem;
  background: var(--off-white);
}
.comment-author {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}
.comment-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.comment-form input,
.comment-form textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-900);
  outline: none;
  transition: border-color 0.2s;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--blue);
}
.comment-form textarea { min-height: 100px; resize: vertical; }
.comment-form button {
  align-self: flex-start;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.comment-form button:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}
