/* ----------------------------------------------------
   Shrusti Ads Blog stylesheet
   Vibrant, creative, modern and responsive typography
   ---------------------------------------------------- */

.blog-hero {
  background: linear-gradient(135deg, var(--bg-dark), hsl(220, 25%, 15%));
  color: var(--text-light);
  padding: clamp(6rem, 10vw, 8rem) 0 4rem;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(243, 112, 33, 0.15);
}

.blog-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background-color: var(--bg-light);
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card:hover .blog-card-img {
  transform: scale(1.06);
}

.blog-tag-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-orange);
  color: var(--text-light);
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.blog-read-time {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: var(--text-light);
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 4px;
  z-index: 2;
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card:hover .blog-card-title {
  color: var(--primary-orange);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.blog-author-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.1);
}

.blog-read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-orange);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-fast);
}

.blog-read-more:hover {
  gap: 0.5rem;
}

/* ----------------------------------------------------
   Single Post Detail View Styles
   ---------------------------------------------------- */

.post-wrapper {
  padding: 4rem 0;
  background-color: var(--bg-light);
}

.post-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.post-category {
  display: inline-block;
  color: var(--primary-orange);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.post-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.post-meta-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-featured-image-wrapper {
  max-width: 900px;
  margin: 0 auto 3rem;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.post-featured-image {
  width: 100%;
  height: auto;
  display: block;
}

.post-content-container {
  max-width: 750px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: hsl(220, 15%, 25%);
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 2.5rem 0 1rem;
}

.post-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 2rem 0 0.75rem;
}

.post-body blockquote {
  border-left: 4px solid var(--primary-orange);
  background-color: var(--bg-light);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dark);
  border-radius: 0 8px 8px 0;
}

.post-body ul, .post-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.post-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-light);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.post-share-btn:hover {
  background-color: var(--primary-orange);
  color: var(--text-light);
  transform: translateY(-2px);
}

.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-tag {
  background-color: var(--bg-light);
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  border-radius: 4px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.post-tag:hover {
  color: var(--primary-orange);
  background-color: rgba(243, 112, 33, 0.08);
}
