/* ========================================
   Posts/s Page Styles
   ======================================== */

/* Page Header */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #5b9bd5 0%, #4a8ac4 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

/* Community Banner */
.community-banner {
  padding: 30px 0;
  background: #f8f9fa;
}

.community-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 40px;
  background: linear-gradient(135deg, #075e54 0%, #128c7e 50%, #25d366 100%);
  border-radius: 4px;
  color: white;
  box-shadow: 0 10px 40px rgba(37, 211, 102, 0.3);
}

.community-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.community-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.community-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.community-text p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

.btn-join-community {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: white;
  color: #128c7e;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-join-community:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: #128c7e;
}

.btn-join-community i {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .community-card {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }
  
  .community-content {
    flex-direction: column;
  }
  
  .btn-join-community {
    width: 100%;
    justify-content: center;
  }
}

/* Posts Section */
.posts-section {
    padding: 80px 0 100px;
    background: #f8f9fa;
}

/* Post Card */
.post-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Post Image */
.post-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image {
    transform: scale(1.1);
}

.post-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #0066cc;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Post Content */
.post-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Post Meta */
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-placeholder {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #5b9bd5, #5b9bd5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #5b9bd5;
}

.post-stats {
    display: flex;
    gap: 15px;
    font-size: 0.875rem;
    color: #6c757d;
}

.post-date,
.post-reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-date i,
.post-reading-time i {
    font-size: 0.875rem;
}

/* Post Title */
.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

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

.post-title a:hover {
    color: #0066cc;
}

/* Post Excerpt */
.post-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: #6c757d;
    margin-bottom: 20px;
    flex: 1;
}

/* Post Footer */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: #f0f7ff;
    color: #0066cc;
    border-radius: 3px;
    font-weight: 500;
}

.post-actions {
    display: flex;
    gap: 15px;
}

.post-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Read More Button */
.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0066cc;
    color: #ffffff;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-read-more:hover {
    background: #0052a3;
    gap: 12px;
    color: #ffffff;
}

/* Dark Mode */
[data-theme="dark"] .posts-section {
    background: #5b9bd5;
}

[data-theme="dark"] .post-card {
    background: #4a8ac4;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .post-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .post-title a {
    color: #ffffff;
}

[data-theme="dark"] .post-title a:hover {
    color: #00d9ff;
}

[data-theme="dark"] .author-name {
    color: #ffffff;
}

[data-theme="dark"] .post-excerpt {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .post-meta,
[data-theme="dark"] .post-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .post-tag {
    background: rgba(0, 217, 255, 0.1);
    color: #00d9ff;
}

[data-theme="dark"] .post-category {
    background: #00d9ff;
    color: #3a7cbd;
}

/* Responsive */
@media (max-width: 991px) {
    .page-header {
        padding: 100px 0 50px;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .posts-section {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 2rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .post-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}
