/* ============================================================
   EXPORT OrderPro — Blog Styles
   ============================================================ */

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

body {
  margin: 0;
  font-family:
    'Manrope',
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111827;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #2563eb;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--sm {
  max-width: 740px;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 14px 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav__link {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition:
    background 0.15s,
    color 0.15s;
}
.site-nav__link:hover {
  background: #f3f4f6;
  color: #111827;
}
.logo {
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  color: #111827;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-right: auto;
}
.logo span {
  color: #2563eb;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    opacity 0.15s,
    transform 0.1s;
  white-space: nowrap;
}
.btn:hover {
  opacity: 0.88;
}
.btn:active {
  transform: scale(0.98);
}
.btn--primary {
  background: #2563eb;
  color: #fff;
}
.btn--outline {
  background: transparent;
  color: #374151;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
}
.btn--outline:hover {
  background: #f9fafb;
  opacity: 1;
}
.btn--sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* ── Tags ────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #6b7280;
  text-transform: capitalize;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.tag:hover,
.tag.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* ── Blog Index ──────────────────────────────────────────── */
.blog-hero {
  padding: 56px 0 40px;
}
.blog-hero h1 {
  font-size: 38px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.blog-hero p {
  font-size: 18px;
  color: #6b7280;
  margin: 0;
}

.blog-controls {
  margin-bottom: 24px;
}
#search {
  width: 100%;
  max-width: 380px;
  padding: 10px 16px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
#search:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 0.2s,
    transform 0.15s;
}
.post-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.post-card__img {
  width: 100%;
  border-radius: 12px 12px 0 0;
  height: 180px;
  object-fit: cover;
  display: block;
}
.post-card .post-info {
  padding: 24px;
}
.post-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 12px;
}
.post-card .tags .tag {
  pointer-events: none;
  cursor: default;
}
.post-card .tags .tag:hover {
  background: transparent;
  color: #6b7280;
  border-color: rgba(0, 0, 0, 0.12);
}
.post-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.35;
  color: #111827;
}
.post-card .excerpt {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.65;
  flex-grow: 1;
  margin: 0 0 16px;
}
.post-meta {
  font-size: 13px;
  color: #9ca3af;
}
.post-meta span + span::before {
  content: ' · ';
}

#no-results {
  display: none;
  padding: 48px 0;
  text-align: center;
  color: #9ca3af;
  font-size: 15px;
}

/* ── Blog Post ───────────────────────────────────────────── */
.post-header {
  padding: 40px 0 28px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.15s;
}
.back-link:hover {
  color: #2563eb;
}
.back-link svg {
  flex-shrink: 0;
}

.post-header .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.post-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #111827;
}
.post-meta-bar {
  font-size: 14px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}
.post-meta-bar .dot {
  opacity: 0.4;
}

.post-hero {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.14);
}

/* ── Article typography ──────────────────────────────────── */
.post-content {
  font-size: 17px;
  line-height: 1.78;
  color: #1f2937;
}
.post-content h2 {
  font-size: 25px;
  font-weight: 700;
  margin: 52px 0 14px;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.post-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 10px;
  color: #111827;
}
.post-content p {
  margin: 0 0 20px;
}
.post-content ul,
.post-content ol {
  padding-left: 24px;
  margin: 0 0 20px;
}
.post-content li {
  margin-bottom: 10px;
}
.post-content a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-content strong {
  font-weight: 700;
  color: #111827;
}
.post-content em {
  font-style: italic;
}

/* ── CTA block ───────────────────────────────────────────── */
.post-cta {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.cta-inner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0.12) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.cta-app {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}
.cta-app-name {
  font-weight: 700;
  font-size: 14px;
  color: #111827;
  margin: 0 0 2px;
}
.cta-app-tagline {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 4px;
}
.cta-stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 1px;
}
.cta-headline {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.cta-sub {
  font-size: 15px;
  color: #4b5563;
  margin: 0;
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  padding: 28px 0;
  margin-top: 80px;
}
.site-footer p {
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}
.site-footer a {
  color: #6b7280;
  text-decoration: none;
}
.site-footer a:hover {
  color: #2563eb;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .blog-hero h1 {
    font-size: 26px;
  }
  .post-header h1 {
    font-size: 26px;
  }
  .post-content {
    font-size: 16px;
  }
  .post-content h2 {
    font-size: 22px;
  }
  .cta-inner {
    padding: 20px;
  }
  .btn--header {
    display: none;
  }
  .site-nav {
    display: none;
  }
}
