/* ==========================================================================
   Blog.css - Premium Editorial & Interactive Styles for Telugu Font (telugufont.co.in)
   ========================================================================== */

/* ── Article Layout & Containers ── */
.blog-article {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.2rem 4rem;
}

.blog-hero {
  position: relative;
  padding: 3.5rem 1.2rem 2.2rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 2.5rem;
}

.blog-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.blog-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.blog-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.blog-subtitle {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* ── Meta Byline ── */
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 1rem;
  border-top: 1px solid var(--line-2);
}

.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
}

.author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-family: var(--body);
  font-weight: 700;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Editorial Typography ── */
.blog-body {
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--ink);
}

.blog-body p {
  margin-bottom: 1.4rem;
  color: var(--ink-soft);
}

.blog-body p strong {
  color: var(--ink);
  font-weight: 700;
}

.blog-lead {
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 1.8rem !important;
}

.blog-body h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  color: var(--forest);
  margin: 2.8rem 0 1.1rem;
  letter-spacing: -0.015em;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-body h3 {
  font-family: var(--display);
  font-size: 1.28rem;
  color: var(--forest);
  margin: 2rem 0 0.8rem;
}

.blog-body ul, .blog-body ol {
  margin: 1rem 0 1.5rem 1.6rem;
  color: var(--ink-soft);
}

.blog-body li {
  margin-bottom: 0.6rem;
  line-height: 1.65;
}

.blog-body li strong {
  color: var(--ink);
}

/* ── Interactive Wedding & Font Sampler Studio ── */
.interactive-studio {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(20, 39, 27, 0.06);
  padding: 1.6rem;
  margin: 2rem 0 2.8rem;
}

.studio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-2);
}

.studio-title {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.studio-select, .studio-theme-select {
  padding: 7px 12px;
  font-family: var(--body);
  font-size: 0.88rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.studio-select:focus, .studio-theme-select:focus {
  border-color: var(--accent);
}

.studio-preview-box {
  background: #FFFDF7;
  color: #8B0000;
  border: 2px dashed rgba(139, 0, 0, 0.25);
  border-radius: 10px;
  padding: 2.2rem 1.5rem;
  text-align: center;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.25s ease;
  position: relative;
}

.studio-preview-box.theme-cream-red {
  background: #FFFDF0;
  color: #8B0000;
  border-color: #8B0000;
}

.studio-preview-box.theme-yellow-maroon {
  background: #FFF9DB;
  color: #670000;
  border-color: #670000;
}

.studio-preview-box.theme-white-gold {
  background: #FFFFFF;
  color: #8A6D05;
  border-color: #D4AF37;
}

.studio-preview-box.theme-pink-brown {
  background: #FFF0F2;
  color: #4A2E18;
  border-color: #4A2E18;
}

.studio-preview-box.theme-dark-green {
  background: #F4F8F3;
  color: #0B5C2C;
  border-color: #0B5C2C;
}

.studio-preview-text {
  font-size: 2.1rem;
  line-height: 1.4;
  outline: none;
  width: 100%;
  cursor: text;
  word-break: break-word;
}

.studio-preview-sub {
  font-size: 1.15rem;
  margin-top: 0.6rem;
  opacity: 0.9;
  outline: none;
  width: 100%;
}

.studio-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
}

.btn-sample {
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--forest);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-sample:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Font Specimen Showcase Cards ── */
.specimen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.4rem;
  margin: 1.8rem 0 2.5rem;
}

.specimen-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(20, 39, 27, 0.03);
}

.specimen-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(20, 39, 27, 0.08);
}

.specimen-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0.8rem;
}

.specimen-number {
  display: inline-block;
  width: 26px;
  height: 26px;
  background: var(--paper-2);
  color: var(--forest);
  border-radius: 50%;
  text-align: center;
  line-height: 26px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  margin-right: 8px;
}

.specimen-title {
  font-family: var(--display);
  font-size: 1.18rem;
  color: var(--forest);
  margin: 0;
}

.specimen-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  background: rgba(19, 138, 92, 0.09);
  color: var(--forest);
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}

.specimen-preview {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
  font-size: 1.7rem;
  color: var(--ink);
  line-height: 1.35;
  margin: 0.8rem 0;
  min-height: 80px;
  display: grid;
  place-items: center;
  word-break: break-word;
}

.specimen-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 0.8rem;
}

.specimen-tip {
  background: rgba(127, 178, 62, 0.12);
  border-left: 3px solid var(--accent-2);
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 0 6px 6px 0;
  color: var(--ink-soft);
  margin-top: auto;
}

.specimen-tip strong {
  color: var(--forest);
}

/* ── Visual Color Swatches ── */
.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.palette-card {
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.palette-swatch {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.palette-details {
  background: var(--card);
  padding: 12px 14px;
  font-size: 0.85rem;
  border-top: 1px solid var(--line-2);
}

.palette-details div {
  margin-bottom: 4px;
}

/* ── Technical Info Boxes & Code Snippets ── */
.callout-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0;
}

.callout-box.tip {
  border-left-color: var(--accent-2);
  background: rgba(127, 178, 62, 0.08);
}

.callout-box.warning {
  border-left-color: #D97706;
  background: #FFFBEB;
}

.callout-box h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--forest);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-box {
  background: #14271B;
  color: #E3EFDD;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1rem 0 1.4rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  position: relative;
  overflow-x: auto;
}

.code-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-code-copy {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--mono);
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-code-copy:hover {
  background: var(--accent);
}

/* ── Step-by-Step Card Flow ── */
.app-step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 2px 10px rgba(20, 39, 27, 0.03);
}

.app-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.app-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--forest);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.app-step-title {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--forest);
  margin: 0;
}

.step-sub {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--mono);
}

/* ── FAQ Accordion ── */
.blog-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 1.5rem 0;
}

.blog-faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.blog-faq-question {
  padding: 14px 18px;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-faq-question::-webkit-details-marker {
  display: none;
}

.blog-faq-question i {
  color: var(--accent);
  transition: transform 0.2s ease;
}

.blog-faq-item[open] .blog-faq-question i {
  transform: rotate(180deg);
}

.blog-faq-answer {
  padding: 0 18px 16px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-2);
}

/* ── Author Bio Box ── */
.author-box {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 3.5rem 0 2.5rem;
}

.author-box-img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--accent);
}

.author-box h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--forest);
  margin: 0 0 4px;
}

.author-box p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

/* ── Related Posts Hub Grid ── */
.related-hub {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--line-2);
}

.related-hub-title {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--forest);
  margin-bottom: 1.2rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.related-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(20, 39, 27, 0.08);
  border-color: var(--accent);
}

.related-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--forest);
  background: var(--paper-2);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  align-self: flex-start;
}

.related-card h4 {
  font-family: var(--display);
  font-size: 1.08rem;
  color: var(--forest);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.related-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.related-read-more {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media(max-width: 600px) {
  .specimen-grid {
    grid-template-columns: 1fr;
  }
  .palette-grid {
    grid-template-columns: 1fr;
  }
  .author-box {
    flex-direction: column;
    text-align: center;
  }
}
