/* ==========================================================================
   Cloud 476 – blogg.css
   Bloggindex "Pia to the Point" (home.php) + arkiv. Förutsätter base.css.
   ========================================================================== */

/* ── BLOG HEADER ── */
.blog-header {
  background: var(--navy);
  padding: 72px 52px 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end;
}
.blog-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.blog-eyebrow-line { width: 24px; height: 2px; background: var(--rose); border-radius: 2px; }
.blog-eyebrow span {
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--rose);
}
.blog-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 52px; font-weight: 800;
  line-height: 1.04; letter-spacing: -.025em;
  color: #fff; margin-bottom: 16px;
}
.blog-title em { font-style: normal; color: var(--rose); }
.blog-tagline { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.55); max-width: 440px; }
.blog-header-right { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 4px; }
.author-card {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 16px 20px; width: 100%;
}
.author-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--rose); }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; }
.author-info strong { display: block; font-size: 14px; font-weight: 700; color: white; }
.author-info span { font-size: 12px; color: rgba(255,255,255,.45); }
.blog-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-pill {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 6px 14px;
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,.65);
  text-decoration: none; transition: all .2s;
}
.topic-pill:hover, .topic-pill.active { background: var(--rose); border-color: var(--rose); color: white; }

/* ── FEATURED POST ── */
.featured-post { padding: 56px 52px 0; }
.featured-inner {
  background: white; border: 1px solid var(--border); border-radius: 20px;
  display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; transition: box-shadow .25s;
  text-decoration: none;
}
.featured-inner:hover { box-shadow: 0 16px 48px rgba(0,0,0,.1); }
.featured-image {
  background: linear-gradient(135deg, #1a0a2e 0%, #3b1f5e 40%, #c9637a 100%);
  min-height: 380px; display: flex; align-items: flex-end; padding: 36px;
  position: relative; overflow: hidden;
}
.featured-image.has-img { padding: 0; }
.featured-image.has-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-image::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(184,159,212,.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201,99,122,.2) 0%, transparent 40%);
}
.featured-label {
  position: absolute; top: 28px; left: 28px;
  background: var(--rose); color: white; border-radius: 6px; padding: 5px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; z-index: 2;
}
.featured-quote {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px; font-weight: 800; color: white; line-height: 1.3;
  position: relative; z-index: 1; font-style: italic;
}
.featured-content { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.post-tag {
  display: inline-block; background: var(--cream2); border-radius: 20px; padding: 4px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 16px; width: fit-content;
}
.featured-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px; font-weight: 800; line-height: 1.25; color: var(--navy);
  margin-bottom: 14px; letter-spacing: -.01em;
}
.featured-excerpt { font-size: 14px; line-height: 1.75; color: var(--muted); margin-bottom: 24px; }
.read-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--rose);
  text-decoration: none; transition: gap .2s;
}
.read-link:hover { gap: 10px; }
.post-meta {
  margin-top: auto; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 8px;
}
.post-meta::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--rose); }

/* ── POST GRID ── */
.post-grid-section { padding: 48px 52px 80px; }
.post-grid-section .sec-title { font-size: 22px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card {
  background: white; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; text-decoration: none;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.post-card-image { height: 140px; display: flex; align-items: flex-end; padding: 16px; position: relative; }
.post-card-image.has-img { padding: 0; }
.post-card-image.has-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.post-card-image.g0 { background: linear-gradient(135deg, #0d1b3e 0%, #1c2f5a 50%, #2563eb 100%); }
.post-card-image.g1 { background: linear-gradient(135deg, #1a0a2e 0%, #3b1f5e 100%); }
.post-card-image.g2 { background: linear-gradient(135deg, #3d1520 0%, #c9637a 100%); }
.post-card-image.g3 { background: linear-gradient(135deg, #0d3b2e 0%, #059669 100%); }
.post-card-image.g4 { background: linear-gradient(135deg, #1a0a2e 0%, #7c3aed 100%); }
.post-card-image.g5 { background: linear-gradient(135deg, #1e1a0e 0%, #d97706 100%); }
.post-card-image::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.1) 0%, transparent 60%);
}
.card-image-tag {
  position: relative; z-index: 1; background: rgba(0,0,0,.35); color: white;
  border-radius: 6px; padding: 4px 10px; font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.post-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--navy); margin-bottom: 10px;
}
.post-card-excerpt { font-size: 12px; line-height: 1.6; color: var(--muted); flex: 1; }
.post-card-meta {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; align-items: center;
}

/* ── EMPTY STATE ── */
.blog-empty { padding: 80px 52px; text-align: center; }
.blog-empty h2 { font-size: 26px; color: var(--navy); margin-bottom: 12px; }
.blog-empty p { color: var(--muted); font-size: 15px; }

/* ── NEWSLETTER ── */
.newsletter {
  background: var(--plum); padding: 64px 52px;
  display: flex; justify-content: space-between; align-items: center; gap: 48px; flex-wrap: wrap;
}
.nl-tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lilac); margin-bottom: 12px; }
.nl-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 30px; font-weight: 800; color: white; letter-spacing: -.01em; line-height: 1.2; margin-bottom: 10px;
}
.nl-desc { font-size: 14px; color: rgba(255,255,255,.55); max-width: 420px; line-height: 1.65; }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-input {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px; padding: 12px 18px; font-size: 13px; color: white; font-family: inherit;
  width: 280px; outline: none; transition: border-color .2s;
}
.nl-input::placeholder { color: rgba(255,255,255,.35); }
.nl-input:focus { border-color: rgba(255,255,255,.5); }
.nl-btn {
  background: var(--rose); color: white; border: none; border-radius: 8px; padding: 12px 22px;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap;
}

/* ── RESPONSIVT ── */
@media (max-width: 980px) {
  .blog-header { grid-template-columns: 1fr; gap: 32px; padding: 56px 24px 48px; }
  .blog-title { font-size: 38px; }
  .featured-post { padding: 40px 24px 0; }
  .featured-inner { grid-template-columns: 1fr; }
  .featured-image { min-height: 220px; }
  .post-grid-section { padding: 40px 24px 64px; }
  .post-grid { grid-template-columns: 1fr; }
  .newsletter { padding: 48px 24px; }
  .nl-input { width: 100%; }
}
