/* Post Hero Section */
/* Uses site-grid-rails.css for layout and style.css for typography/colors */

/* Fade-in animations for smooth loading */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.post-hero {
  background-color: #C6D62B70;
  padding: 4rem 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.post-hero__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 60vh;
}

.post-hero__content-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-hero__image-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Breadcrumbs */
.post-hero__breadcrumbs {
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.1s;
  order: 2;
}

.breadcrumb-nav {
  font-family: 'Termina', sans-serif;
  font-size: 0.875rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--ica-green-deep, #1E312F);
  opacity: 0.6;
}

.breadcrumb-link {
  color: var(--ica-green-deep, #1E312F);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: var(--ica-teal, #17968c);
}

.breadcrumb-current {
  color: var(--ica-green-deep, #1E312F);
  font-weight: 600;
}

/* Post Category */
.post-hero__category {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.2s;
  order: 1;
}

.post-hero__category-tag {
  background-color: var(--ica-green-deep, #1E312F);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-family: 'Termina', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}

/* Post Title */
.post-hero__title {
  font-family: "ivypresto-display", sans-serif;
  font-size: 55px;
  font-weight: 500;
  color: var(--ica-green-deep, #1E312F);
  margin: 0;
  margin-top: 5px;
  margin-bottom: 8px;
  line-height: 1.2;
  text-align: left;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.3s;
  order: 3;
}

/* Meta Row (Row 3) */
.post-hero__meta-row {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.4s;
  order: 4;
}

/* Author Info (Column 1) */
.post-hero__author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-hero__author-avatar {
  flex-shrink: 0;
}

.author-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ica-teal, #17968c);
}

.post-hero__author-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-hero__author-name {
  font-family: 'Termina', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ica-green-deep, #1E312F);
}

/* Date Info (Column 2) */
.post-hero__date-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-hero__date-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--ica-mint, #DCF4EF);
  border-radius: 50%;
}

.post-hero__date-icon img {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.post-hero__date-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.post-hero__date-details time {
  font-family: var(--font-ui, 'Termina', sans-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ica-green-deep, #1E312F);
}

/* Featured Image */
.post-hero__image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 500px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.5s;
}

.post-hero__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.post-hero__image:hover img {
  transform: scale(1.02);
}

/* Tablet and Mobile Responsive */
@media (max-width: 1024px) {
  .post-hero__title {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .post-hero {
    padding: 3rem 0;
    min-height: 50vh;
  }
  
  .post-hero__content {
    gap: 1.5rem;
  }
  
  .post-hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
  }
  
  .post-hero__content-column {
    order: 1;
    text-align: left;
  }
  
  .post-hero__image-column {
    order: 2;
  }
  
  /* Mobile Order: Category (1), Breadcrumb (2), Title (3), Author & Date (4) */
  .post-hero__category {
    order: 1;
  }
  
  .post-hero__breadcrumbs {
    order: 2;
  }
  
  .post-hero__title {
    order: 3;
  }
  
  .post-hero__meta-row {
    order: 4;
  }
  
  .post-hero__breadcrumbs {
    text-align: left;
  }
  
  .breadcrumb-list {
    justify-content: flex-start;
  }
  
  .breadcrumb-current {
    display: none;
  }
  
  .post-hero__category {
    justify-content: flex-start;
  }
  
  .post-hero__title {
    font-size: 50px;
    text-align: left;
  }
  
  .post-hero__meta-row {
    flex-direction: row;
    gap: 1.5rem;
    text-align: left;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  
  .post-hero__author-info {
    justify-content: flex-start;
    flex-shrink: 0;
  }
  
  .post-hero__date-info {
    justify-content: flex-start;
    flex-shrink: 0;
  }
  
  .post-hero__author-name,
  .post-hero__date-details time {
    font-size: 0.9rem;
  }
  
  .post-hero__image {
    max-width: 100%;
    margin: 0 auto;
    aspect-ratio: 16/9;
  }
  
  .post-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .post-hero {
    padding: 2rem 0;
  }
  
  .post-hero__title {
    font-size: 50px
  }
  
  .post-hero__category-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}
