/* ENLAXOS — blog.css — Blog listing and article pages */

html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: var(--black); color: var(--text); font-family: var(--font-body); overflow-x: hidden; }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Section Label ───────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-glow);
  border: 1px solid rgba(0,229,255,.18);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

/* ── Page Header ─────────────────────────── */
.page-header {
  padding: 140px clamp(24px, 8vw, 160px) 64px;
  position: relative;
  z-index: 1;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.page-title .accent { color: var(--cyan); }

.page-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Blog Section ────────────────────────── */
.blog-section {
  padding: 0 clamp(24px, 8vw, 160px) 120px;
  position: relative;
  z-index: 1;
}

/* ── Tags ────────────────────────────────── */
.blog-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,229,255,.2);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.blog-tag.tag-auto { color: #a78bfa; background: rgba(167,139,250,.1); border-color: rgba(167,139,250,.2); }
.blog-tag.tag-web  { color: #34d399; background: rgba(52,211,153,.1);  border-color: rgba(52,211,153,.2); }
.blog-tag.tag-mkt  { color: #fb923c; background: rgba(251,146,60,.1);  border-color: rgba(251,146,60,.2); }

/* ── Featured Card ───────────────────────── */
.blog-featured {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 28px;
  display: block;
  position: relative;
  transition: border-color .3s;
  text-decoration: none;
}

.blog-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 100% 0%, rgba(0,229,255,.06) 0%, transparent 60%);
  pointer-events: none;
}

.blog-featured:hover { border-color: rgba(0,229,255,.25); }

.blog-featured-content {
  position: relative;
  z-index: 1;
  padding: 52px 56px;
  max-width: 720px;
}

.blog-featured-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 20px 0 16px;
}

.blog-featured-excerpt {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 28px;
  letter-spacing: .04em;
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  transition: gap .2s;
  width: fit-content;
}

.blog-read-link:hover { gap: 14px; }

/* ── Cards Grid ──────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s;
  text-decoration: none;
}

.blog-card:hover {
  border-color: rgba(0,229,255,.2);
  transform: translateY(-4px);
}

.blog-card-top { margin-bottom: 20px; }

.blog-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1.3;
  margin: 16px 0 12px;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 24px;
}

.blog-card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
}

.blog-arrow {
  color: var(--cyan);
  font-size: 20px;
  transition: transform .2s;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.blog-card-link .blog-arrow { font-size: 14px; }

.blog-card:hover .blog-arrow { transform: translateX(5px); }

/* ── Blog CTA ────────────────────────────── */
.blog-cta {
  margin-top: 72px;
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-card);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-cta::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,229,255,.04) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

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

.blog-cta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}

.blog-cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.blog-cta-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan);
  color: #020204;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  transition: opacity .2s, transform .2s;
}

.btn-primary:hover { opacity: .9; transform: translateY(-2px); }

/* ── Article — centered reading column ───── */
.article-wrap {
  max-width: calc(720px + clamp(24px, 8vw, 160px) * 2);
  margin: 0 auto;
  padding: 0 clamp(24px, 8vw, 160px);
  position: relative;
  z-index: 1;
}

/* ── Article — back link ─────────────────── */
.article-back-wrap {
  padding: 100px 0 0;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}

.article-back:hover { color: var(--white); }

/* ── Article — header ────────────────────── */
.article-header {
  padding: 40px 0 0;
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.article-meta-top span:not(.blog-tag) {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .08em;
}

.article-meta-top .sep { color: var(--border-hover); }

.article-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 820px;
}

.article-lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text);
  line-height: 1.8;
  max-width: 680px;
}

/* ── Article — body ──────────────────────── */
.article-body {
  padding: 48px 0 80px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
  margin: 56px 0 20px;
  line-height: 1.3;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin: 40px 0 14px;
  line-height: 1.4;
}

.article-body p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 24px;
}

.article-body strong { color: var(--white); font-weight: 600; }

.article-body ul,
.article-body ol {
  margin: 8px 0 32px;
  padding-left: 0;
  list-style: none;
}

.article-body li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  padding: 12px 0 12px 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.article-body li:last-child { border-bottom: none; }

.article-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 13px;
  top: 14px;
}

.article-body ol { counter-reset: list-counter; }
.article-body ol li { counter-increment: list-counter; }
.article-body ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  top: 15px;
}

.article-body blockquote {
  border-left: 3px solid var(--cyan);
  margin: 40px 0;
  padding: 20px 28px;
  background: var(--surface);
  border-radius: 0 12px 12px 0;
}

.article-body blockquote p {
  font-size: 19px;
  color: var(--white);
  font-style: italic;
  margin: 0;
  line-height: 1.7;
}

.article-body .highlight-box {
  background: var(--cyan-dim);
  border: 1px solid rgba(0,229,255,.2);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 32px 0;
}

.article-body .highlight-box p {
  color: var(--white);
  margin: 0;
  font-size: 15px;
}

/* ── Article — share ─────────────────────── */
.article-share {
  max-width: calc(720px + clamp(24px, 8vw, 160px) * 2);
  margin: 40px auto;
  padding: 16px clamp(24px, 8vw, 160px);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.article-share-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.article-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, transform .2s, background .2s;
}

.share-btn:hover { transform: translateY(-2px); }
.share-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.share-whatsapp { color: #f0f0f8; background: #1fa855; border-color: #1fa855; }
.share-whatsapp:hover { background: #25c264; border-color: #25c264; }

.share-facebook { color: #f0f0f8; background: #1664d6; border-color: #1664d6; }
.share-facebook:hover { background: #1877f2; border-color: #1877f2; }

.share-x { color: var(--white); background: #15151f; border-color: var(--border-hover); }
.share-x:hover { border-color: #3a3a55; }

.share-copy:hover { border-color: rgba(0,229,255,.3); color: var(--white); }
.share-copy.copied { color: var(--cyan); border-color: rgba(0,229,255,.4); }

/* ── Article — CTA ───────────────────────── */
.article-cta-wrap {
  padding: 0 clamp(24px, 8vw, 160px);
  position: relative;
  z-index: 1;
}

.article-cta {
  background: linear-gradient(135deg, var(--surface) 0%, #0c1220 100%);
  border: 1px solid rgba(0,229,255,.15);
  border-radius: var(--radius-card);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-cta::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,229,255,.05) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

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

.article-cta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.article-cta-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.article-cta-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ── More articles ───────────────────────── */
.more-articles-wrap {
  padding: 0 clamp(24px, 8vw, 160px) 80px;
  position: relative;
  z-index: 1;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: 28px;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 960px) {
  .blog-featured-content { padding: 36px 36px 40px; }
  .blog-grid { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-header { padding: 100px 24px 40px; }
  .blog-featured-content { padding: 28px 24px 32px; }
  .blog-cta { padding: 40px 24px; }
  .article-back-wrap { padding-top: 80px; }
  .article-header { padding-top: 20px; }
  .article-cta { padding: 40px 24px; }
}

@media (max-width: 360px) {
  .page-header { padding: 90px 16px 36px; }
}
