/* ===== BLOG SHARED STYLES ===== */

/* Blog index header */
.blog-index-header {
  background: var(--gradient);
  padding: 8rem 1rem 4rem;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-index-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1), transparent 55%);
}

.blog-index-header > * { position: relative; z-index: 1; }

.blog-index-header h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.blog-index-header p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto;
}

/* Blog grid */
.blog-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border: 1px solid var(--gray-200);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.13);
}

.blog-card-top {
  background: var(--gradient);
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
}

.blog-card-icon { font-size: 2.5rem; line-height: 1; }

.blog-card-tag {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 0.25rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.blog-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-body h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.45;
  background: none;
  -webkit-text-fill-color: var(--gray-900);
}

.blog-card-body p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray-600);
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.blog-card-read {
  color: var(--secondary);
  font-weight: 600;
}

/* ===== ARTICLE PAGE ===== */

/* Article layout: content + sidebar */
.article-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem 2rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

article {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.article-body { padding: 2.5rem; }

/* Prose */
.article-content h2 {
  font-size: 1.45rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 1.75rem 0 0.6rem;
}

.article-content p {
  color: #475569;
  line-height: 1.85;
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}

.article-content strong { color: var(--gray-900); font-weight: 700; }

.article-content ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.5rem;
}

.article-content ul li {
  padding: 0.45rem 0 0.45rem 1.75rem;
  color: #475569;
  position: relative;
  line-height: 1.65;
  font-size: 1.02rem;
}

.article-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.9rem;
  top: 0.55rem;
}

.article-content ol {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.5rem;
  counter-reset: ol-c;
}

.article-content ol li {
  padding: 0.45rem 0 0.45rem 2.25rem;
  color: #475569;
  position: relative;
  counter-increment: ol-c;
  line-height: 1.65;
  font-size: 1.02rem;
}

.article-content ol li::before {
  content: counter(ol-c);
  position: absolute;
  left: 0;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  top: 0.5rem;
}

/* Price table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  font-size: 0.95rem;
}

.price-table th {
  background: var(--gradient);
  color: white;
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-weight: 700;
}

.price-table td {
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  color: #475569;
}

.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) td { background: var(--gray-50); }
.price-table td:last-child { font-weight: 600; color: var(--gray-900); }

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(102,126,234,0.07), rgba(118,75,162,0.07));
  border-left: 4px solid #667eea;
  padding: 1.25rem 1.5rem;
  border-radius: 0 14px 14px 0;
  margin: 1.5rem 0;
}

.highlight-box p { margin: 0; color: var(--gray-900); font-size: 1rem; }

/* In-article CTA */
.article-cta {
  background: var(--gradient);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.article-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 65%);
}

.article-cta > * { position: relative; z-index: 1; }

.article-cta h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.article-cta p { opacity: 0.9; margin-bottom: 1.5rem; font-size: 1rem; }

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 0.9rem 1.75rem;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  border: none;
}

.btn-primary:hover { background: #e49807; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,0.35); }

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 0.9rem 1.75rem;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.btn-secondary:hover { border-color: var(--accent); background: rgba(245,158,11,0.2); transform: translateY(-2px); }

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-cta {
  background: var(--gradient);
  border-radius: 20px;
  padding: 1.75rem;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sidebar-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1), transparent 60%);
}

.sidebar-cta > * { position: relative; z-index: 1; }

.sidebar-cta h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.sidebar-cta p { font-size: 0.875rem; opacity: 0.9; margin-bottom: 1.25rem; }

.sidebar-cta .phone-big {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 0.875rem;
  background: rgba(255,255,255,0.15);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.sidebar-cta .phone-big:hover { background: rgba(255,255,255,0.25); }

.sidebar-cta .wa-btn {
  display: block;
  background: var(--gradient-accent);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar-cta .wa-btn:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(240,147,251,0.35); }

.sidebar-info {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border: 1px solid var(--gray-200);
}

.sidebar-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.sidebar-info ul { list-style: none; padding: 0; }

.sidebar-info li {
  padding: 0.6rem 0;
  color: var(--gray-600);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-info li:last-child { border-bottom: none; }
.sidebar-info li span { font-weight: 700; color: var(--gray-900); }

.sidebar-lang {
  background: white;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.sidebar-lang a {
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  background: rgba(59,130,246,0.08);
  transition: all 0.2s ease;
}

.sidebar-lang a:hover { background: rgba(59,130,246,0.15); }

/* Related posts */
.related-posts {
  padding: 1rem 1rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.related-posts h2 {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

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

.related-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border: 1px solid var(--gray-200);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }

.related-card .tag {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--secondary);
  background: rgba(59,130,246,0.08);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.related-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.related-card p {
  font-size: 0.825rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 960px) {
  .article-wrap { grid-template-columns: 1fr; }
  .article-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-cta { flex: 1 1 300px; }
  .sidebar-info { flex: 1 1 200px; }
}

@media (max-width: 640px) {
  .article-body { padding: 1.75rem 1.25rem; }
  .article-cta { padding: 2rem 1.25rem; }
  .blog-grid { grid-template-columns: 1fr; padding: 2.5rem 1rem 3.5rem; }
  .related-grid { grid-template-columns: 1fr; }
  .article-sidebar { flex-direction: column; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
}
