/**
 * CSS für FluentCommunity Posts Shortcode
 * Author: Nicole Y. Männl
 * Version: 1.1
 */

.fcom-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin: 2rem 0;
  padding: 0;
  max-width: 1200px;
  width: 100%;
}

.fcom-post {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.06), 0 1.5px 6px 0 rgba(0,0,0,0.04);
  flex: 1 1 calc(33.333% - 1.5rem);
  max-width: calc(33.333% - 1.5rem);
  min-width: 280px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem 1.25rem 1.25rem;
  transition: box-shadow 0.2s;
}

.fcom-post:hover {
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.10), 0 3px 12px 0 rgba(0,0,0,0.08);
}

.fcom-post-image {
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.fcom-post-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.2s;
}

.fcom-post-image a:hover img {
  transform: scale(1.03);
}

.fcom-post h3 {
  font-size: 1.2rem;
  margin: 0 0 0.7rem 0;
  font-weight: 700;
  line-height: 1.2;
}

.fcom-post h3 a {
  color: #C01A54;
  text-decoration: none;
  transition: color 0.2s;
}

.fcom-post h3 a:hover {
  color: #1d3557;
}

.fcom-post-content {
  font-size: 1rem;
  color: #1d3557;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.fcom-post a {
  color: #C01A54;
  text-decoration: underline;
  transition: color 0.2s;
}

.fcom-post a:hover {
  color: #1d3557;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .fcom-posts {
    padding: 0 1rem;
  }
  .fcom-post {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

@media (max-width: 767px) {
  .fcom-posts {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .fcom-post {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }
}