/* TUFY Blog Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

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

:root {
  --purple: #2b1761;
  --purple-light: #3d2280;
  --purple-pale: #f0ecf7;
  --warm-white: #faf8f5;
  --text: #2d2d2d;
  --text-light: #5a5a5a;
  --accent: #6c5ce7;
  --green-wa: #25D366;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--warm-white);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.blog-nav {
  background: var(--purple);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.blog-nav a.logo {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}
.blog-nav a.logo span { color: #c4b5fd; }
.blog-nav .nav-links { display: flex; gap: 1.5rem; align-items: center; }
.blog-nav .nav-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  transition: color .2s;
}
.blog-nav .nav-links a:hover { color: #fff; }
.blog-nav .nav-cta {
  background: var(--green-wa);
  color: #fff !important;
  padding: .5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .8rem;
}

/* HERO */
.article-hero {
  background: linear-gradient(135deg, var(--purple) 0%, #1a0e3e 100%);
  color: #fff;
  padding: 4rem 2rem 3rem;
  text-align: center;
}
.article-hero .category-tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #c4b5fd;
  padding: .3rem 1rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}
.article-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto .75rem;
  letter-spacing: -1px;
}
.article-hero .subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

/* ARTICLE BODY */
.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.article-container h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.5px;
}
.article-container h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--purple-light);
  margin: 2rem 0 .75rem;
}
.article-container p {
  margin-bottom: 1.25rem;
  color: var(--text);
}
.article-container ul, .article-container ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.article-container li {
  margin-bottom: .5rem;
}
.article-container a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(108,92,231,.3);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s;
}
.article-container a:hover {
  text-decoration-color: var(--accent);
}
.article-container blockquote {
  border-left: 4px solid var(--purple);
  background: var(--purple-pale);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--purple);
}

/* HIGHLIGHT BOX */
.highlight-box {
  background: linear-gradient(135deg, var(--purple-pale), #e8e0f5);
  border: 1px solid rgba(43,23,97,.1);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.highlight-box h4 {
  color: var(--purple);
  font-weight: 700;
  margin-bottom: .5rem;
}

/* FAQ */
.faq-section {
  background: #fff;
  border: 1px solid rgba(43,23,97,.08);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin: 3rem 0;
  box-shadow: 0 2px 20px rgba(43,23,97,.04);
}
.faq-section h2 {
  margin-top: 0;
  font-size: 1.4rem;
}
.faq-item {
  border-bottom: 1px solid rgba(43,23,97,.06);
  padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: 1.05rem;
  color: var(--purple);
  margin: 0 0 .5rem;
  font-weight: 600;
}
.faq-item p {
  margin: 0;
  color: var(--text-light);
  font-size: .95rem;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--purple) 0%, #1a0e3e 100%);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
  color: #fff;
}
.cta-section h2 {
  color: #fff;
  margin-top: 0;
  font-size: 1.5rem;
}
.cta-section p {
  color: rgba(255,255,255,.8);
  margin-bottom: 1.5rem;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green-wa);
  color: #fff !important;
  text-decoration: none !important;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 15px rgba(37,211,102,.3);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,.4);
}
.cta-btn svg { width: 20px; height: 20px; }

/* RELATED */
.related-articles {
  margin: 3rem 0;
}
.related-articles h2 { font-size: 1.3rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.related-card {
  background: #fff;
  border: 1px solid rgba(43,23,97,.08);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(43,23,97,.08);
}
.related-card .cat {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 600;
}
.related-card h3 {
  font-size: .95rem;
  color: var(--purple);
  margin: .5rem 0 0;
  font-weight: 600;
}

/* FOOTER */
.blog-footer {
  background: var(--purple);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 2rem;
  font-size: .85rem;
}
.blog-footer a { color: #c4b5fd; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .blog-nav { padding: .75rem 1rem; }
  .blog-nav .nav-links { display: none; }
  .article-hero { padding: 3rem 1.25rem 2rem; }
  .article-container { padding: 2rem 1.25rem 3rem; }
  .faq-section { padding: 1.5rem; }
  .cta-section { padding: 2rem 1.5rem; }
}

/* INDEX PAGE */
.index-hero {
  background: linear-gradient(135deg, var(--purple) 0%, #1a0e3e 100%);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}
.index-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
}
.index-hero p {
  color: rgba(255,255,255,.7);
  max-width: 600px;
  margin: 1rem auto 0;
}
.search-box {
  max-width: 500px;
  margin: 2rem auto 0;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.index-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.category-section {
  margin-bottom: 3rem;
}
.category-section h2 {
  font-size: 1.3rem;
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--purple-pale);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.article-card {
  background: #fff;
  border: 1px solid rgba(43,23,97,.06);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(43,23,97,.08);
}
.article-card .vol {
  font-size: .7rem;
  color: var(--text-light);
  font-weight: 500;
}
.article-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple);
  margin: .5rem 0;
  flex: 1;
}
.article-card .desc {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.5;
}
.article-card .lang-badge {
  display: inline-block;
  background: var(--purple-pale);
  color: var(--purple);
  font-size: .65rem;
  font-weight: 600;
  padding: .15rem .6rem;
  border-radius: 50px;
  margin-top: .5rem;
  width: fit-content;
}
