/* الأنماط الرئيسية لـ RefPosts Gallery */
.refpost-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: -10px;
}

.refpost-gallery-item {
  margin: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.refpost-gallery-item:hover {
  border-color: #777;
}

.refpost-gallery-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.refpost-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.refpost-content {
  padding: 15px;
}

.refpost-title {
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.refpost-title a {
  text-decoration: none;
}

.refpost-title a:hover {
  text-decoration: underline;
}

.refpost-category {
  margin-bottom: 8px;
}

.refpost-category a {
  text-decoration: none;
  margin-right: 5px;
}

.refpost-category a:hover {
  text-decoration: underline;
}

.refpost-meta {
  border-top: 1px solid #eee;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.refpost-meta span {
  display: inline-block;
}

.refpost-date:before {
  content: "📅 ";
}

.refpost-comments:before {
  content: "💬 ";
}

.refpost-author:before {
  content: "👤 ";
}

.refposts-error,
.refposts-no-posts {
  padding: 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  text-align: center;
  color: #666;
}

.refposts-error {
  border-color: #ff6b6b;
  background: #fff5f5;
  color: #ff6b6b;
}

/* التجاوب الأساسي */
@media only screen and (max-width: 1024px) {
  .refpost-gallery-item {
    width: calc(33.333% - 20px);
  }
}

@media only screen and (max-width: 768px) {
  .refpost-gallery-item {
    width: calc(50% - 20px);
  }
}

@media only screen and (max-width: 480px) {
  .refpost-gallery-item {
    width: calc(100% - 20px);
  }
}