/* ══════════════════════════════════════════
   blog.css — Shared Blog Post Styles
   InstantToolsPro | /blog/assets/css/blog.css
   Used by all blog post pages
══════════════════════════════════════════ */

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform:scale(1); opacity:1; }
  50%       { transform:scale(.7); opacity:.5; }
}

/* ══ HERO ══ */
.post-hero {
  background: #fff;
  border-bottom: 1px solid #f0f0f5;
  padding: 56px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeUp .5s ease both;
}
.post-hero::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 260px;
  background: radial-gradient(ellipse, rgba(255,77,77,.07) 0%, transparent 70%);
  pointer-events: none;
}
.post-hero-inner { position: relative; z-index: 1; }

/* Breadcrumb */
.post-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .8rem;
  color: #9ca3af;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.post-breadcrumb a { color: #6b7280; text-decoration: none; transition: color .2s; }
.post-breadcrumb a:hover { color: #ff4d4d; }
.post-breadcrumb span { color: #d1d5db; }

.post-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff5f5;
  border: 1px solid #ffd5d5;
  color: #ff4d4d;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.post-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin: 0 0 18px;
  letter-spacing: -.02em;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.post-hero h1 span { color: #ff4d4d; }
.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: .83rem;
  color: #9ca3af;
  flex-wrap: wrap;
}
.post-meta-item { display: flex; align-items: center; gap: 5px; }

/* ══ LAYOUT ══ */
.post-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.post-main { animation: fadeUp .5s .1s ease both; min-width: 0; }

/* ══ TOC ══ */
.post-toc {
  background: #f9fafb;
  border: 1.5px solid #f0f0f5;
  border-left: 4px solid #ff4d4d;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 36px;
}
.post-toc h4 {
  font-family: 'Sora', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-toc ol {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.post-toc ol li { font-size: .87rem; color: #6b7280; }
.post-toc ol li a { color: #374151; text-decoration: none; transition: color .2s; }
.post-toc ol li a:hover { color: #ff4d4d; }

/* ══ ARTICLE BODY ══ */
.post-body h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #111827;
  margin: 40px 0 14px;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-body h2::before {
  content: '';
  display: inline-block;
  width: 4px; height: 22px;
  background: #ff4d4d;
  border-radius: 2px;
  flex-shrink: 0;
}
.post-body h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin: 28px 0 10px;
}
.post-body p {
  font-size: .97rem;
  color: #374151;
  line-height: 1.8;
  margin: 0 0 16px;
}
.post-body ul, .post-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.post-body li {
  font-size: .95rem;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 6px;
}
.post-body strong { color: #111827; }
.post-body a {
  color: #ff4d4d;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,77,77,.3);
  transition: border-color .2s;
}
.post-body a:hover { border-color: #ff4d4d; }

/* ══ ARTICLE IMAGES ══ */

/* Simple image wrapper */
.post-img {
  margin: 24px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #f0f0f5;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.post-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Figure with caption */
.post-figure {
  margin: 24px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #f0f0f5;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.post-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.post-figure figcaption {
  background: #f9fafb;
  border-top: 1px solid #f0f0f5;
  padding: 10px 16px;
  font-size: .82rem;
  color: #6b7280;
  text-align: center;
}

/* Before / After compare */
.post-img-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}

/* Responsive */
@media(max-width: 600px) {
  .post-img-compare {
    grid-template-columns: 1fr;
  }
}

/* ── Tip / Note Boxes ── */
.post-tip {
  background: #fff5f5;
  border: 1.5px solid #ffd5d5;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.post-tip p { margin: 0; font-size: .92rem; color: #7f1d1d; }
.post-note {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.post-note p { margin: 0; font-size: .92rem; color: #14532d; }
.post-tip-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }

/* ── Step Boxes ── */
.post-steps { display: flex; flex-direction: column; gap: 14px; margin: 20px 0 28px; }
.post-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid #f0f0f5;
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color .2s, box-shadow .2s;
}
.post-step:hover {
  border-color: #ffd5d5;
  box-shadow: 0 4px 16px rgba(255,77,77,.06);
}
.post-step-num {
  width: 36px; height: 36px;
  background: #ff4d4d;
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
}
.post-step-content h4 {
  font-family: 'Sora', sans-serif;
  font-size: .97rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 5px;
}
.post-step-content p { font-size: .88rem; color: #6b7280; margin: 0; line-height: 1.6; }

/* ── Table ── */
.post-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: .9rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #f0f0f5;
}
.post-table th {
  background: #f9fafb;
  padding: 12px 16px;
  text-align: left;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1.5px solid #f0f0f5;
}
.post-table td { padding: 12px 16px; color: #374151; border-bottom: 1px solid #f9fafb; }
.post-table tr:last-child td { border-bottom: none; }
.post-table tr:hover td { background: #fafafa; }
.check { color: #16a34a; font-weight: 700; }
.cross  { color: #dc2626; font-weight: 700; }

/* ── CTA Box ── */
.post-cta {
  background: linear-gradient(135deg, #fff5f5, #ffe8e8);
  border: 1.5px solid #ffd5d5;
  border-radius: 16px;
  padding: 28px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.post-cta-icon {
  width: 56px; height: 56px;
  background: #fff;
  border: 1.5px solid #ffd5d5;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(255,77,77,.10);
}
.post-cta-text { flex: 1; }
.post-cta-text h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 4px;
}
.post-cta-text p { font-size: .87rem; color: #6b7280; margin: 0; }
.post-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ff4d4d;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .2s, transform .15s;
  white-space: nowrap;
  border-bottom: none !important;
}
.post-cta-btn:hover { background: #e03c3c; transform: translateY(-1px); }

/* ── Tags ── */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f5;
}
.post-tag {
  background: #f3f4f6;
  color: #374151;
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
  border-bottom: none !important;
  transition: background .2s, color .2s;
}
.post-tag:hover { background: #ff4d4d; color: #fff; }

/* ── Related Posts ── */
.post-related { margin-top: 48px; padding-top: 32px; border-top: 1.5px solid #f0f0f5; }
.post-related h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 20px;
}
.post-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-related-card {
  border: 1.5px solid #f0f0f5;
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  display: block;
  border-bottom: 1.5px solid #f0f0f5 !important;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.post-related-card:hover {
  border-color: #ffd5d5 !important;
  box-shadow: 0 4px 16px rgba(255,77,77,.08);
  transform: translateY(-2px);
}
.post-related-card span {
  display: block;
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #ff4d4d;
  margin-bottom: 6px;
}
.post-related-card h4 {
  font-family: 'Sora', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.4;
}

/* ══ SIDEBAR ══ */
.post-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeUp .5s .2s ease both;
}
.sidebar-box {
  background: #fff;
  border: 1.5px solid #f0f0f5;
  border-radius: 16px;
  padding: 22px;
}
.sidebar-box h4 {
  font-family: 'Sora', sans-serif;
  font-size: .9rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sidebar-tool {
  background: linear-gradient(135deg, #fff5f5, #ffe8e8);
  border: 1.5px solid #ffd5d5;
}
.sidebar-tool-icon {
  width: 52px; height: 52px;
  background: #fff;
  border: 1.5px solid #ffd5d5;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(255,77,77,.10);
}
.sidebar-tool p { font-size: .85rem; color: #6b7280; line-height: 1.6; margin: 0 0 16px; }
.sidebar-tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #ff4d4d;
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  padding: 11px;
  border-radius: 10px;
  text-decoration: none;
  border-bottom: none !important;
  transition: background .2s;
  width: 100%;
  box-sizing: border-box;
}
.sidebar-tool-btn:hover { background: #e03c3c; }
.sidebar-facts { list-style: none; padding: 0; margin: 0; }
.sidebar-facts li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: .85rem;
  border-bottom: 1px solid #f3f4f6;
}
.sidebar-facts li:last-child { border-bottom: none; }
.sidebar-facts li span:first-child { color: #6b7280; }
.sidebar-facts li span:last-child { font-weight: 700; color: #111827; }
.sidebar-links { display: flex; flex-direction: column; gap: 10px; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-bottom: none !important;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f9fafb;
  transition: background .2s;
}
.sidebar-link:hover { background: #fff5f5; }
.sidebar-link-icon {
  width: 32px; height: 32px;
  background: #fff5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-link span { font-size: .84rem; font-weight: 600; color: #374151; line-height: 1.3; }

/* ══ RESPONSIVE ══ */
@media(max-width: 900px) {
  .post-wrap { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}
@media(max-width: 600px) {
  .post-related-grid { grid-template-columns: 1fr; }
  .post-cta { flex-direction: column; }
  .post-hero { padding: 40px 20px 36px; }
}