/* =========================
   RUŠI&VOZI — Blog UI/UX
   css/blogovi.css
   ========================= */

/* --- Blog Listing Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.blog-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 181, 0, .25);
  box-shadow: var(--shadow2);
  background: rgba(255, 255, 255, .04);
}

.blog-card .thumb {
  height: 187px;
  background-color: #111;
  background-size: contain;
  background-position: center;
  position: relative;
  background-repeat: no-repeat;
}

.blog-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 13, 16, 0.9) 100%);
}

.blog-card .meta {
  position: absolute;
  bottom: 12px;
  left: 16px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.blog-card .content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card h3 {
  margin: 0 0 12px;
  font-family: var(--font2);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.blog-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
  line-height: 1.6;
}

.blog-card .read-more {
  margin-top: auto;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card .read-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.blog-card:hover .read-more svg {
  transform: translateX(4px);
}

/* --- Single Article Layout --- */
.article-header {
  padding: 80px 0 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.article-header h1 {
  font-family: var(--font2);
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 16px 0 24px;
}

.article-header .lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.article-cover {
  width: 100%;
  max-width: 1000px;
  height: 450px;
  margin: 0 auto 56px;
  border-radius: var(--radius2);
  background-size: cover;
  background-position: center;
  /*border: 1px solid var(--line);*/
  box-shadow: var(--shadow);
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(233, 238, 245, .9);
}

.article-body h2 {
  font-family: var(--font2);
  font-size: 32px;
  margin: 48px 0 16px;
  color: #fff;
  letter-spacing: -0.02em;
}

.article-body h3 {
  font-family: var(--font2);
  font-size: 24px;
  margin: 32px 0 12px;
  color: #fff;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body ul {
  margin-bottom: 24px;
  padding-left: 20px;
}

.article-body li {
  margin-bottom: 10px;
  color: var(--muted);
}

.article-body strong {
  color: var(--accent2);
}

/* Minimalist / IKEA style Blockquote */
.article-body blockquote {
  margin: 40px 0;
  padding: 24px 32px;
  background: rgba(247, 181, 0, .05);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
  color: #fff;
}

/* Information Box */
.info-box {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}

.info-box .box-title {
  font-weight: 700;
  font-family: var(--font2);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted2);
  margin-bottom: 12px;
  display: block;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 56px 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.article-author .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #111;
  font-weight: 800;
  font-size: 20px;
}

@media (max-width: 768px) {
  .article-header h1 { font-size: 36px; }
  .article-cover { height: 187px; border-radius: var(--radius); }
  .article-body { font-size: 16px; }
}