/* Modern Post Grid CSS - 4 oszlop egységes megjelenéssel */

.modern-post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
    font-family: "Poppins", Sans-serif;
}

.post-item {
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Egységes post hero minden elemhez */
.post-hero {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

/* Egységes osztály minden posthoz */
.uniform-post {
  grid-column: span 1;
}

/* Post overlay stílusok */
.post-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  color: #fff;
  padding: 20px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Kategória stílusok az overlay-ben */
.post-overlay .post-category {
  margin-bottom: 8px;
}

.post-overlay .post-category a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.post-overlay .post-category a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Dátum stílusok az overlay-ben */
.post-overlay .post-date {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.2px;
}

/* Cím stílusok az overlay-ben */
.post-overlay .post-title {
  margin: 0;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.32px;
}

.post-overlay .post-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-overlay .post-title a:hover {
  color: #AFD9AD;
}

/* Üres állapot */
.modern-post-grid.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  color: #6c757d;
}

.modern-post-grid.no-posts p {
  margin: 0;
  font-size: 16px;
  font-style: italic;
}

/* Reszponzív beállítások */
@media (max-width: 1200px) {
  .modern-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .modern-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .post-overlay {
    padding: 18px;
  }
  
  .post-overlay .post-title {
    font-size: 15px;
    line-height: 20px;
  }
}

@media (max-width: 600px) {
  .modern-post-grid {
    grid-template-columns: 1fr;

  }
  
  .post-hero {
    aspect-ratio: 16 / 10;
  }
  
  .post-overlay {
    padding: 15px;
  }
  
  .post-overlay .post-title {
    font-size: 14px;
    line-height: 18px;
  }
  
  .post-overlay .post-date {
    font-size: 12px;
  }
  
  .post-overlay .post-category a {
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* Accessibility és performance */
@media (prefers-reduced-motion: reduce) {
  .post-item,
  .post-overlay .post-category a,
  .post-overlay .post-title a {
    transition: none;
  }
}

/* Focus stílusok */
.post-overlay .post-title a:focus,
.post-overlay .post-category a:focus {
  outline: 2px solid #AFD9AD;
  outline-offset: 2px;
}