/* =============================================
   MAGA.GE — blog.css
   საერთო სტილი: ბლოგ-ლისტი + სტატიები
   ============================================= */

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

:root {
  --orange: #ff7a00;
  --orange-light: #fff3e8;
  --orange-mid: #ffb366;
  --ink: #0f1117;
  --ink-2: #374151;
  --ink-3: #6b7280;
  --surface: #ffffff;
  --border: #e8eaed;
  --bg: #f7f8fa;
  --radius: 18px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-card: 0 2px 8px rgba(0,0,0,0.04), 0 8px 28px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 20px rgba(0,0,0,0.06), 0 24px 56px rgba(0,0,0,0.12);
}

html { font-family: var(--font-body); background: var(--bg); color: var(--ink); line-height: 1.7; }

/* ─── HEADER ─────────────────────────────── */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 62px;
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.logo span { color: var(--orange); }

.nav-menu ul { list-style: none; display: flex; gap: 6px; align-items: center; }
.nav-menu a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.nav-menu a:hover { background: var(--bg); color: var(--ink); }
.nav-menu a.active { background: var(--orange); color: #fff; }

/* ─── BREADCRUMB ─────────────────────────── */
.breadcrumb {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 13px;
  color: var(--ink-3);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { opacity: 0.4; font-size: 11px; }
.breadcrumb span { color: var(--ink-2); font-weight: 500; }

/* ─── FOOTER ─────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: 52px 24px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.footer-logo span { color: var(--orange); }
footer p { font-size: 13px; line-height: 1.6; }

/* =============================================
   ბლოგ-ლისტი (index.html)
   ============================================= */

.blog-archive-header {
  max-width: 1140px;
  margin: 0 auto;
  padding: 52px 24px 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.blog-header-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.blog-header-kicker::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.blog-archive-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.blog-archive-header p {
  font-size: 16px;
  color: var(--ink-3);
  line-height: 1.7;
  max-width: 520px;
}

.blog-post-count {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
  padding-bottom: 4px;
}
.blog-post-count strong {
  display: block;
  font-size: 40px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
}

.blog-filters {
  max-width: 1140px;
  margin: 0 auto 28px;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }

.blog-grid {
  max-width: 1140px;
  margin: 0 auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.2), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  position: relative;
}
.blog-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-hover); }

.blog-card-img-wrap {
  overflow: hidden;
  position: relative;
  height: 214px;
  background: #f0f1f3;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(.22,.68,0,1.1);
}
.blog-card:hover .blog-card-img { transform: scale(1.05); }

.blog-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 50px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  color: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.6);
}

.blog-card-content {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 11px;
  font-family: var(--font-body);
}
.blog-card-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
}
.blog-read-more svg { transition: transform 0.25s; }
.blog-card:hover .blog-read-more svg { transform: translateX(5px); }

.section-divider {
  max-width: 1140px;
  margin: 0 auto 28px;
  padding: 0 24px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* =============================================
   სტატია (article pages)
   ============================================= */

.blog-wrapper { background: #ffffff; }

.blog-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  text-align: center;
}

.blog-category {
  color: var(--orange);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 15px;
  font-family: var(--font-display);
  text-decoration: none;
}

.blog-hero h1 {
  font-size: clamp(26px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 18px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.blog-meta { color: #999; font-size: 14px; margin-top: 10px; }

.featured-image-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 50px;
  padding: 0 20px;
}
.featured-image-container img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  display: block;
}

.article-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.lead-paragraph {
  font-size: 20px;
  line-height: 1.7;
  color: #444;
  font-weight: 500;
  margin-bottom: 35px;
  padding-left: 25px;
  border-left: 5px solid var(--orange);
}

.article-content p { font-size: 17px; line-height: 1.85; color: #333; margin-bottom: 22px; }

.article-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 45px 0 18px;
  color: var(--ink);
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
  font-family: var(--font-display);
}

.article-content ul,
.article-content ol { margin-bottom: 22px; padding-left: 22px; }
.article-content li { font-size: 17px; line-height: 1.8; margin-bottom: 10px; color: #333; }

/* Product Card */
.blog-product-card {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 14px;
  padding: 22px;
  margin: 35px 0;
  border: 1px solid #e8e8e8;
  gap: 20px;
  text-decoration: none;
}
.blog-product-card img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  background: white;
  border-radius: 10px;
  padding: 8px;
  border: 1px solid #eee;
  flex-shrink: 0;
}
.blog-product-info h4 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--ink); font-family: var(--font-display); }
.blog-product-info p { margin: 0 0 12px !important; font-size: 15px !important; color: #666 !important; }

.blog-buy-btn {
  background: var(--orange);
  color: white;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  display: inline-block;
  transition: all 0.2s;
  text-decoration: none;
  font-family: var(--font-display);
}
.blog-buy-btn:hover { background: #e06a00; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,122,0,0.3); }

/* FAQ */
.faq-box { background: #f9f9f9; border-radius: 12px; padding: 30px; margin-top: 45px; border: 1px solid #eee; }
.faq-box h2 { border-bottom: none !important; margin-top: 0 !important; }
.faq-item { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid #eee; }
.faq-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.faq-question { font-weight: 700; color: var(--orange); display: block; margin-bottom: 6px; font-size: 16px; font-family: var(--font-display); }
.faq-item p { margin-bottom: 0 !important; }

/* Share */
.share-section { max-width: 740px; margin: 0 auto 60px; padding: 0 20px; }
.share-title { font-size: 15px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; font-family: var(--font-display); }
.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.share-fb { background: #1877F2; color: #fff; }
.share-wa { background: #25D366; color: #fff; }
.share-vb { background: #7360F2; color: #fff; }
.share-tg { background: #2AABEE; color: #fff; }
.share-copy { background: #f0f0f0; color: #333; }
.copy-success { display: none; font-size: 13px; color: #28a745; font-weight: 600; margin-left: 6px; }

.share-divider { max-width: 740px; margin: 0 auto 10px; padding: 0 20px; border: none; border-top: 1px solid #eee; }

.back-link { max-width: 740px; margin: 0 auto 20px; padding: 0 20px; display: block; }
.back-link a { color: var(--orange); font-size: 14px; font-weight: 600; text-decoration: none; font-family: var(--font-display); }
.back-link a:hover { text-decoration: underline; }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
  .main-header { padding: 0 16px; }
  .blog-archive-header { flex-direction: column; align-items: flex-start; padding: 36px 16px 32px; }
  .blog-post-count { display: none; }
  .blog-grid { grid-template-columns: 1fr; padding: 0 16px; }
  .blog-filters { padding: 0 16px; }
  .section-divider { margin: 0 16px 24px; padding: 0; }
}
@media (max-width: 640px) {
  .breadcrumb { padding: 12px 16px 0; }
  .blog-hero { padding: 40px 20px 30px; }
  .blog-product-card { flex-direction: column; text-align: center; }
  .blog-product-card img { width: 90px; height: 90px; }
  .lead-paragraph { font-size: 17px; }
  .article-content p { font-size: 16px; }
  .article-content li { font-size: 16px; }
  .faq-box { padding: 22px; }
}
