/* ═══════════════════════════════════════
   DWR Post Manager — Frontend Styles
   ═══════════════════════════════════════ */

/* ─── Section Title ─── */
.dwr-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1d2327;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1e3a5f;
  display: inline-block;
}

/* ═══════════════════════════════════════
   Social Share Icons
   ═══════════════════════════════════════ */

.dwr-social-share {
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid #e5e7eb;
}

.dwr-social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dwr-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.dwr-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.dwr-social-facebook {
  background: #1877f2;
}

.dwr-social-facebook:hover {
  background: #0d6efd;
}

.dwr-social-line {
  background: #06c755;
}

.dwr-social-line:hover {
  background: #05b34c;
}

.dwr-social-twitter {
  background: #1d1d1d;
}

.dwr-social-twitter:hover {
  background: #333;
}

/* ═══════════════════════════════════════
   File Attachments
   ═══════════════════════════════════════ */

.dwr-attachments {
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid #e5e7eb;
}

.dwr-attachment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dwr-attachment-file {
  margin-bottom: 8px;
}

.dwr-attachment-file a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: #1d2327;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
  font-size: 14px;
}

.dwr-attachment-file a:hover {
  background: #e9ecef;
  border-color: #1e3a5f;
  color: #1e3a5f;
}

.dwr-file-ext {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 2px 8px;
  background: #1e3a5f;
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.dwr-file-name {
  font-weight: 500;
}

.dwr-file-size {
  color: #999;
  font-size: 13px;
}

/* ═══════════════════════════════════════
   Related Posts
   ═══════════════════════════════════════ */

.dwr-related-posts {
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid #e5e7eb;
}

.dwr-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.dwr-related-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #1d2327;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.dwr-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  color: #1d2327;
}

.dwr-related-thumb {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f1;
}

.dwr-no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, #e8edf2, #f8f9fa);
}

.dwr-related-info {
  padding: 14px 16px;
}

.dwr-related-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dwr-related-date {
  font-size: 13px;
  color: #999;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .dwr-related-grid {
    grid-template-columns: 1fr;
  }

  .dwr-social-btn {
    width: 40px;
    height: 40px;
  }

  .dwr-social-btn svg {
    width: 18px;
    height: 18px;
  }
}
