/* =========================================================
   Ri MARKETING — blog & article pages
   Built on top of ../styles.css (tokens, header, footer, buttons)
   ========================================================= */

body { padding-top: 0; }

/* ---------- shared page hero (blog index) ---------- */
.blog-hero {
  padding: 170px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
  height: 70vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.blog-hero .container { position: relative; z-index: 1; }

.blog-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  color: var(--text);
  max-width: 720px;
  margin: 0 auto 16px;
}

.blog-hero p {
  color: var(--text-muted);
  font-size: 16.5px;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- featured stories slider ---------- */
.aktuelne-teme {
  padding: 10px 0 60px;
}

.aktuelne-wrapper {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
}

.tema-eyebrow-wrap { margin-bottom: 26px; }

.tema-slider {
  display: flex;
  gap: 20px;
  transition: transform .6s var(--ease);
  will-change: transform;
}

.tema-box {
  flex: 0 0 100%;
  box-sizing: border-box;
}

.tema-link {
  display: block;
  position: relative;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
  height: 240px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--ease) .35s, border-color var(--ease) .35s;
}

.tema-link:hover { transform: translateY(-6px); border-color: rgba(168, 85, 247, .45); }

.tema-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--ease) .5s;
}

.tema-link:hover .tema-img { transform: scale(1.06); }

.tema-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,6,15,.15) 0%, rgba(9,6,15,.55) 55%, rgba(9,6,15,.92) 100%);
}

.tema-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 24px;
}

.tema-tag {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(124, 58, 237, .18);
  border: 1px solid rgba(168, 85, 247, .4);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.tema-text h3 {
  font-family: 'Nexa Heavy', sans-serif;
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--text);
}

.tema-text p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 0;
  line-height: 1.5;
}

@media (min-width: 768px) and (max-width: 1023px) { .tema-box { flex: 0 0 48%; } }
@media (min-width: 1024px) { .tema-box { flex: 0 0 31.5%; } }

/* ---------- blog grid ---------- */
.blog-section { padding: 20px 0 110px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.blog-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--ease) .35s, border-color var(--ease) .35s, box-shadow var(--ease) .35s;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, .4);
  box-shadow: var(--shadow-soft);
}

.blog-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.blog-text { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }

.blog-text h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.35;
}

.blog-text h2 a { text-decoration: none; color: var(--text); transition: color var(--ease) .2s; }
.blog-text h2 a:hover { color: var(--accent); }

.blog-text p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 18px;
  flex: 1;
}

.blog-read-more {
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-read-more::after { content: '→'; transition: transform var(--ease) .25s; }
.blog-card:hover .blog-read-more::after { transform: translateX(4px); }

@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- article pages ---------- */
.article-bg { padding: 150px 0 30px; }

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 26px;
  transition: color var(--ease) .2s;
}
.back-to-blog:hover { color: var(--accent); }
.back-to-blog::before { content: '←'; }

.article-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.article-container h1 {
  font-family: 'Nexa Heavy', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 26px;
}

.article-container img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 6px 0 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.article-container h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  margin: 40px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--primary-2);
}

.article-container p {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 20px;
  white-space: pre-line;
}

.article-container p strong { color: var(--text); }

/* ---------- related posts ---------- */
.related-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--container);
  margin: 20px auto 0;
  padding: 60px 24px 110px;
}

.related-post {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform var(--ease) .3s, border-color var(--ease) .3s;
  display: block;
}

.related-post:hover { transform: translateY(-6px); border-color: rgba(168, 85, 247, .4); }

.related-post img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  border: none;
}

.related-post h3 {
  padding: 18px 20px 22px;
  font-family: 'Manrope', sans-serif;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 900px) {
  .related-posts { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .blog-hero { padding: 150px 0 40px; }
  .article-bg { padding: 130px 0 20px; }
}
