/* =========================================
   GAL — Blog Styles
   Blog gallery, post page, home carousel
   ========================================= */

/* ===== Blog Card (shared) ===== */
.blog-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1),
              border-color 0.3s,
              box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(233,30,140,0.25);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(233,30,140,0.08);
}
.blog-card-cover {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(233,30,140,0.15) 0%, rgba(139,92,246,0.1) 100%);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.blog-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-cover img { transform: scale(1.05); }
.blog-card-cover-placeholder {
  width: 100%;
  aspect-ratio: 16/9; /* match parent — don't use height: 100% which expands the card */
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(233,30,140,0.12) 0%, rgba(139,92,246,0.08) 100%);
}
.blog-card-cover-placeholder svg { opacity: 0.4; }
.blog-card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; }
.blog-card-meta { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.blog-card-cat {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  padding: 0.25rem 0.65rem;
  background: rgba(233,30,140,0.1); border: 1px solid rgba(233,30,140,0.2);
  border-radius: 20px;
}
.blog-card-date { font-size: 0.75rem; color: var(--muted); }
.blog-card-read { font-size: 0.75rem; color: var(--muted); margin-left: auto; }
.blog-card-title {
  font-family: var(--font-d); font-size: 1.05rem; font-weight: 600;
  color: var(--white); line-height: 1.35;
  transition: color 0.2s;
}
.blog-card:hover .blog-card-title { color: #ffc0e0; }
.blog-card-excerpt {
  font-size: 0.82rem; color: var(--muted); line-height: 1.7;
  flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-link {
  margin-top: 0.5rem;
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: gap 0.2s;
}
.blog-card:hover .blog-card-link { gap: 0.6rem; }

/* ===== Blog Hero (gallery page) ===== */
.blog-hero {
  padding: 8rem 2rem 3rem;
  max-width: 900px; margin: 0 auto;
  text-align: center;
}
.blog-hero-title {
  font-family: var(--font-d);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700; line-height: 1.1;
  margin: 1rem 0;
}
.blog-hero-sub {
  font-size: 1.1rem; color: var(--muted); line-height: 1.7;
  max-width: 560px; margin: 0 auto 2.5rem;
}

/* ===== Category Filters ===== */
.blog-filters {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.filter-btn {
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem; font-weight: 500; font-family: var(--font-b);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: rgba(233,30,140,0.3); color: var(--white); }
.filter-btn.active {
  background: rgba(233,30,140,0.12);
  border-color: rgba(233,30,140,0.35);
  color: var(--accent);
}

/* ===== Blog Gallery Grid ===== */
.blog-gallery {
  max-width: 1200px; margin: 0 auto;
  padding: 2rem 2rem 6rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start; /* let each card size to its content */
}
.blog-grid-3 { grid-template-columns: repeat(3, 1fr); align-items: start; }
.blog-no-posts {
  text-align: center; padding: 4rem;
  color: var(--muted); font-size: 1rem;
}
.blog-loading {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center;
  padding: 4rem;
}
.blog-spinner {
  width: 32px; height: 32px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.blog-card-skeleton {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  height: 320px;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

/* ===== Home Blog Carousel ===== */
.blog-strip {
  padding: 6rem 2rem 5rem;
  max-width: 1200px; margin: 0 auto;
}
.blog-carousel-wrap {
  position: relative;
  overflow: hidden;
}
.blog-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start; /* let cards size naturally */
}
.blog-strip-footer {
  text-align: center; margin-top: 2.5rem;
}

/* ===== Individual Post Page ===== */
.post-hero {
  padding: 7rem 2rem 3rem;
  max-width: 780px; margin: 0 auto;
}
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; color: var(--muted);
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }
.post-meta-row {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.post-category {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  padding: 0.25rem 0.65rem;
  background: rgba(233,30,140,0.1); border: 1px solid rgba(233,30,140,0.2);
  border-radius: 20px;
}
.post-read-time { font-size: 0.78rem; color: var(--muted); }
.post-title {
  font-family: var(--font-d);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700; line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.post-excerpt {
  font-size: 1.1rem; color: rgba(255,255,255,0.65);
  line-height: 1.7; margin-bottom: 2rem;
}
.post-byline {
  display: flex; align-items: center; gap: 0.9rem;
}
.post-author-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E91E8C, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 700; font-size: 0.85rem;
  color: white; flex-shrink: 0;
}
.post-author-avatar.large {
  width: 52px; height: 52px; font-size: 1.1rem;
}
.post-author { display: block; font-weight: 600; font-size: 0.9rem; color: var(--white); }
.post-date { display: block; font-size: 0.78rem; color: var(--muted); }
.post-cover {
  max-width: 900px; margin: 2.5rem auto 0;
  padding: 0 2rem;
  border-radius: 16px; overflow: hidden;
}
.post-cover img {
  width: 100%; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}

/* ===== Post Body ===== */
.post-body-wrap {
  max-width: 720px; margin: 0 auto;
  padding: 3rem 2rem 4rem;
}
.post-content {
  font-size: 1rem; line-height: 1.85;
  color: rgba(255,255,255,0.82);
}
.post-content h2 {
  font-family: var(--font-d);
  font-size: 1.5rem; font-weight: 700;
  color: var(--white);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.post-content h3 {
  font-family: var(--font-d);
  font-size: 1.2rem; font-weight: 600;
  color: var(--white);
  margin: 2rem 0 0.75rem;
}
.post-content p { margin-bottom: 1.4rem; }
.post-content strong { color: var(--white); }
.post-content em { color: rgba(255,255,255,0.7); font-style: italic; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: #ff70b8; }
.post-content ul, .post-content ol {
  padding-left: 1.5rem; margin-bottom: 1.4rem;
}
.post-content li { margin-bottom: 0.5rem; }
.post-content blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: rgba(233,30,140,0.05);
  border-radius: 0 8px 8px 0;
  font-size: 1.05rem; color: rgba(255,255,255,0.75);
  font-style: italic;
}
.post-content code {
  background: rgba(255,255,255,0.07);
  padding: 0.15rem 0.4rem; border-radius: 4px;
  font-size: 0.88em; font-family: 'Courier New', monospace;
  color: #ff70b8;
}
.post-content pre {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 1.2rem;
  overflow-x: auto; margin-bottom: 1.4rem;
}
.post-content pre code { background: none; padding: 0; color: rgba(255,255,255,0.85); }

/* ===== Post Tags ===== */
.post-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 2.5rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.post-tag {
  font-size: 0.72rem; font-weight: 500;
  padding: 0.3rem 0.75rem; border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--muted);
}

/* ===== Post Author Card ===== */
.post-author-card {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  margin: 2rem 0;
}
.author-name { font-weight: 600; font-size: 0.95rem; color: var(--white); margin-bottom: 0.35rem; }
.author-bio { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.6rem; }
.author-link { font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.author-link:hover { color: #ff70b8; }

/* ===== Post CTA Strip ===== */
.post-cta-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(233,30,140,0.1), rgba(139,92,246,0.07));
  border: 1px solid rgba(233,30,140,0.2);
  border-radius: 16px;
  margin: 2rem 0;
}
.post-cta-text h3 {
  font-family: var(--font-d); font-size: 1.1rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.3rem;
}
.post-cta-text p { font-size: 0.85rem; color: var(--muted); }

/* ===== More Posts Section ===== */
.more-posts {
  max-width: 1200px; margin: 0 auto;
  padding: 3rem 2rem 6rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== Responsive ===== */
@media(max-width: 1024px) {
  .blog-grid, .blog-carousel, .blog-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media(max-width: 640px) {
  .blog-grid, .blog-carousel, .blog-grid-3 {
    grid-template-columns: 1fr;
  }
  .blog-hero { padding: 6rem 1.5rem 2rem; }
  .post-hero { padding: 6rem 1.5rem 2rem; }
  .post-body-wrap { padding: 2rem 1.5rem 3rem; }
  .post-cta-strip { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .more-posts { padding: 2rem 1.5rem 4rem; }
  .blog-card-skeleton { height: 260px; }
}
