﻿
@import url("assets/fonts/site-fonts.css");

body {
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

.font-display {
  font-family: "Fredoka", "Inter", Arial, sans-serif;
}

body > header,
body > main,
body > article,
.article-body,
.blog-content,
.blog-card,
.blog-search {
  font-family: "Inter", Arial, sans-serif !important;
}

.blog-card {
  height: 100%;
  border-radius: 16px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, .10);
  border-color: #fde68a;
}

body > main h1,
body > main h2,
body > main h3,
body > header h1,
body > header h2,
body > header h3,
.article-body h1,
.article-body h2,
.article-body h3 {
  font-family: "Fredoka", "Inter", Arial, sans-serif !important;
}

.blog-card h2 {
  font-family: "Fredoka", "Inter", Arial, sans-serif !important;
  font-weight: 700;
  line-height: 1.28;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
}

.blog-home-title {
  font-weight: 600 !important;
}

.blog-card p {
  font-weight: 400;
}

.blog-card p[class*="uppercase"] {
  font-weight: 700;
}

.blog-card p.text-slate-600 {
  font-weight: 400;
  line-height: 1.72;
}

.article-body h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  line-height: 1.22;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2.4rem;
  margin-bottom: 1rem;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 1.8rem;
  margin-bottom: .75rem;
}

.article-body p,
.article-body li {
  color: #475569;
  line-height: 1.82;
  font-size: 1.05rem;
}

.article-body p {
  margin-bottom: 1.15rem;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0 1.4rem 1.2rem;
}

.article-body li {
  margin-bottom: .65rem;
  padding-left: .25rem;
}

.article-body a {
  color: #ca8a04;
  font-weight: 700;
}

.article-body .highlight-box {
  border: 1px solid #fde68a;
  background: linear-gradient(135deg, #fffbeb, #ffffff);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.seo-link-box {
  display: block;
  clear: both;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  padding: 1.35rem;
  margin: 2.5rem 0 1.25rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

.seo-link-box h2 {
  margin-top: 0;
  margin-bottom: .9rem;
  font-size: 1.35rem;
}

.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 0;
}

.seo-link-grid a {
  display: block;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: .8rem .9rem;
  color: #334155;
  background: #f8fafc;
  font-size: .95rem;
  line-height: 1.35;
  text-decoration: none;
}

.seo-link-grid a:hover {
  border-color: #fde68a;
  color: #ca8a04;
  background: #fffbeb;
}

.search-empty {
  display: none;
}

.search-empty.active {
  display: block;
}

.article-feedback-widget {
  position: static;
  display: none !important;
  width: min(330px, calc(100vw - 36px));
  width: min(760px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
  padding: 13px;
  z-index: 1;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  transition: box-shadow .25s ease, border-color .25s ease;
}

.article-feedback-widget[hidden] {
  display: none !important;
}

.article-feedback-widget.visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.article-feedback-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.article-feedback-stars {
  display: flex;
  gap: 4px;
  margin: 8px 0 10px;
}

.article-feedback-star {
  width: 31px;
  height: 31px;
  border-radius: 999px;
  color: #cbd5e1;
  background: #f8fafc;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.article-feedback-star.active {
  color: #eab308;
  background: #fef9c3;
  transform: translateY(-1px);
}

.article-feedback-star svg {
  width: 18px;
  height: 18px;
  margin: auto;
  filter: drop-shadow(0 1px 1px rgba(15, 23, 42, .12));
}

.article-feedback-emoji svg {
  width: 38px;
  height: 38px;
}

.article-feedback-widget textarea {
  width: 100%;
  min-height: 70px;
  resize: vertical;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
}

.article-feedback-widget textarea:focus {
  border-color: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, .18);
}

.article-feedback-submit {
  width: 100%;
  margin-top: 10px;
  border-radius: 999px;
  background: #020617;
  color: #fff;
  padding: 9px 13px;
  font-weight: 800;
}

.article-feedback-submit:hover {
  background: #1e293b;
}

.article-feedback-status {
  min-height: 18px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.article-feedback-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 6px 4px;
}

.article-feedback-success svg {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.article-feedback-success h3 {
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
}

.article-feedback-success p {
  margin-top: 4px;
  font-size: .88rem;
  line-height: 1.45;
  color: #64748b;
}

@media (max-width: 640px) {
  .blog-card {
    border-radius: 14px;
    padding: 1.15rem !important;
  }

  body > header .container,
  body > main .container,
  .article-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .article-body p,
  .article-body li {
    font-size: 1rem;
    line-height: 1.76;
  }

  .seo-link-grid {
    grid-template-columns: 1fr;
  }

  .article-feedback-widget {
    display: block !important;
    width: calc(100% - 1.5rem);
    margin: 1.5rem auto 2.25rem;
    padding: 14px;
  }
}

