/* =============================================
   BLOG STYLES — TenderAtlas
   ============================================= */

/* Blog-specific background - slightly lighter than main */
body.blog-page {
  background:
    radial-gradient(ellipse at 15% 10%, rgba(56, 134, 151, 0.12), transparent 50%),
    radial-gradient(ellipse at 85% 30%, rgba(181, 255, 225, 0.05), transparent 45%),
    radial-gradient(ellipse at 25% 55%, rgba(56, 134, 151, 0.08), transparent 40%),
    radial-gradient(ellipse at 75% 75%, rgba(181, 255, 225, 0.04), transparent 45%),
    radial-gradient(ellipse at 40% 95%, rgba(56, 134, 151, 0.09), transparent 40%),
    #0d2330;
  background-attachment: fixed;
}

body.blog-page::before {
  opacity: 0.03;
}

/* --- Blog Hero (listing page) --- */
.blog-hero {
  padding: 160px 0 60px;
  text-align: center;
}

.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--pacific-cyan), var(--aquamarine));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 16px;
}

.blog-hero-sub {
  color: var(--text-muted);
  font-size: 1.1em;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Blog Grid (listing) --- */
.blog-section {
  padding-bottom: 80px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

/* --- Blog Card --- */
.blog-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(56, 134, 151, 0.2);
  border-color: rgba(181, 255, 225, 0.35);
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(8, 65, 92, 0.5);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}

.blog-card-body {
  padding: 24px 24px 28px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.85em;
}

.blog-card-meta time {
  color: var(--text-dimmed);
}

.blog-tag {
  background: rgba(56, 134, 151, 0.2);
  color: var(--pacific-cyan);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.blog-card-body h2 {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--text-light);
  margin: 0 0 10px;
  line-height: 1.4;
  background: none;
  -webkit-text-fill-color: unset;
}

.blog-card-body p {
  color: var(--text-muted);
  font-size: 0.92em;
  line-height: 1.55;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  color: var(--aquamarine);
  font-weight: 600;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-read-more {
  color: #d4fff0;
}

/* --- Blog Post (single article) --- */
.blog-post {
  padding-top: 80px;
}

.blog-post-hero {
  max-width: 960px;
  margin: 0 auto 0;
  padding: 0 20px;
}

.blog-post-hero img {
  width: 100%;
  border-radius: 14px;
  display: block;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.blog-post-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Breadcrumb */
.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 28px 0 24px;
  font-size: 0.85em;
}

.blog-breadcrumb a {
  color: var(--text-dimmed);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-breadcrumb a:hover {
  color: var(--aquamarine);
}

.blog-breadcrumb span {
  color: var(--text-dimmed);
}

/* Post header */
.blog-post-header {
  margin-bottom: 40px;
}

.blog-post-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.3;
  margin: 12px 0 0;
  background: none;
  -webkit-text-fill-color: unset;
}

/* Article content */
.blog-content {
  color: var(--text-muted);
  font-size: 1.05em;
  line-height: 1.75;
}

.blog-content h2 {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--text-light);
  margin: 48px 0 16px;
  background: none;
  -webkit-text-fill-color: unset;
  text-align: left;
}

.blog-content h3 {
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-light);
  margin: 32px 0 12px;
}

.blog-content p {
  margin: 0 0 20px;
  text-align: left;
  max-width: none;
}

.blog-content a {
  color: var(--aquamarine);
  text-decoration: underline;
  text-decoration-color: rgba(181, 255, 225, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.blog-content a:hover {
  text-decoration-color: var(--aquamarine);
}

.blog-content ul,
.blog-content ol {
  padding-left: 24px;
  margin: 0 0 24px;
}

.blog-content li {
  margin-bottom: 8px;
}

.blog-content li strong {
  color: var(--text-light);
}

.blog-content blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--pacific-cyan);
  background: rgba(56, 134, 151, 0.08);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.6;
}

/* Figures */
.blog-figure {
  margin: 32px 0;
}

.blog-figure img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* Placeholder za slike koje još nisu dodane */
.blog-figure img[src*="SLIKA"],
.blog-figure img[src*="HERO"],
.blog-post-hero img[src*="SLIKA"],
.blog-post-hero img[src*="HERO"] {
  min-height: 220px;
  background: linear-gradient(135deg, rgba(56,134,151,0.15), rgba(181,255,225,0.08));
  border: 2px dashed rgba(56,134,151,0.35);
  position: relative;
}

.blog-figure figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.85em;
  color: var(--text-dimmed);
}

/* CTA box */
.blog-cta {
  margin: 56px 0 40px;
  padding: 36px 32px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  text-align: center;
}

.blog-cta h3 {
  color: var(--text-light);
  font-size: 1.25em;
  margin: 0 0 10px;
}

.blog-cta p {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 0.95em;
}

.blog-cta-btn {
  display: inline-block;
  padding: 12px 36px;
  background: linear-gradient(135deg, var(--pacific-cyan), var(--aquamarine));
  color: #0a1e28;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 134, 151, 0.35);
}

/* Back link */
.blog-back {
  padding-top: 8px;
}

.blog-back a {
  color: var(--text-dimmed);
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.2s;
}

.blog-back a:hover {
  color: var(--aquamarine);
}

/* --- Responsive --- */
@media (max-width: 700px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    padding: 130px 0 40px;
  }

  .blog-post-hero {
    padding: 0 12px;
  }

  .blog-post-wrap {
    padding: 0 16px 60px;
  }

  .blog-content h2 {
    font-size: 1.2em;
  }

  .blog-cta {
    padding: 28px 20px;
  }
}
