/* Profile Page Styles */
.profile-page {
  padding-top: 60px;
}

.profile-header {
  margin-bottom: 2rem;
}

.profile-cover-wrapper {
  position: relative;
  height: 250px;
  margin-bottom: 80px;
}

.profile-cover {
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  position: relative;
}

.profile-cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
  border-radius: 8px;
}

.profile-avatar-wrapper {
  position: absolute;
  bottom: -60px;
  left: 50px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  object-fit: cover;
}

.profile-info {
  padding: 0 1rem;
}

.profile-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.profile-bio {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 1rem;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-meta-item {
  color: #6c757d;
  font-size: 0.9rem;
}

.profile-meta-item i {
  margin-right: 0.5rem;
}

.profile-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.profile-stat {
  text-align: center;
}

.profile-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4a6fa5;
}

.profile-stat-label {
  font-size: 0.9rem;
  color: #6c757d;
}

.profile-tabs {
  margin-top: 2rem;
}

.profile-tabs .nav-tabs {
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 2rem;
}

.profile-tabs .nav-link {
  color: #6c757d;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border: none;
  border-bottom: 3px solid transparent;
}

.profile-tabs .nav-link.active {
  color: #4a6fa5;
  background-color: transparent;
  border-bottom: 3px solid #4a6fa5;
}

.profile-tabs .nav-link i {
  margin-right: 0.5rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 0;
}

.empty-state-icon {
  font-size: 3rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.post-card {
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.post-card .card-img-top {
  height: 180px;
  object-fit: cover;
}

.post-card-placeholder {
  height: 180px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 2rem;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.social-links .list-group-item {
  padding: 0.75rem 1rem;
}

.social-links .list-group-item a {
  display: flex;
  align-items: center;
  color: #495057;
  text-decoration: none;
  transition: color 0.3s;
}

.social-links .list-group-item a:hover {
  color: #4a6fa5;
}

.social-links .list-group-item i {
  width: 24px;
  margin-right: 0.75rem;
  text-align: center;
}

.interests-tags .badge {
  padding: 0.5rem 0.75rem;
  font-weight: 500;
}

/* Posts Page Styles */
.posts-page {
  padding-top: 60px;
}

.posts-header {
  background-color: #f8f9fa;
  padding: 3rem 0;
  margin-bottom: 2rem;
}
 
.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-description {
  color: #6c757d;
  font-size: 1.1rem;
}

.dark-theme .page-title {
  color: var(--dark-color) !important;
}

.dark-theme .page-description {
  color: var(--gray-color-2);
}

.posts-filter {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.dark-theme .posts-filter {
  background-color: var(--light-color-2);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stats-card {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stats-icon {
  font-size: 2rem;
  margin-right: 1rem;
}

.stats-number {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0;
}

.stats-label {
  margin-bottom: 0;
  opacity: 0.9;
}

.posts-table {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.posts-table th {
  font-weight: 600;
  color: #495057;
  border-top: none;
  padding: 1rem;
}

.posts-table td {
  vertical-align: middle;
  padding: 1rem;
}

.post-title-cell {
  display: flex;
  align-items: center;
}

.post-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 1rem;
  flex-shrink: 0;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-thumbnail-placeholder {
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 1.5rem;
}

.post-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.post-excerpt {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0;
}

.post-views {
  font-size: 0.875rem;
  color: #6c757d;
}

.post-actions {
  display: flex;
  gap: 0.5rem;
}

/* New Post Page Styles */
.new-post-page {
  padding-top: 60px;
}

.new-post-header {
  background-color: #f8f9fa;
  padding: 3rem 0;
  margin-bottom: 2rem;
  text-align: center;
}

.cover-image-upload {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cover-image-preview {
  height: 250px;
  background-color: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 1.5rem;
  overflow: hidden;
}

.cover-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-image-actions {
  display: flex;
  gap: 1rem;
}

/* Post Preview Modal Styles */
.preview-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  color: #6c757d;
}

.preview-author {
  display: flex;
  align-items: center;
}

.preview-author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 0.5rem;
  object-fit: cover;
}

.preview-cover-image {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.preview-cover-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

.preview-content {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.preview-tags {
  margin-top: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .profile-cover-wrapper {
    height: 200px;
    margin-bottom: 100px;
  }

  .profile-avatar-wrapper {
    left: 50%;
    transform: translateX(-50%);
  }

  .profile-info {
    text-align: center;
    margin-top: 1rem;
  }

  .profile-meta {
    justify-content: center;
  }

  .profile-stats {
    justify-content: center;
    margin-top: 1.5rem;
  }

  .posts-header {
    padding: 2rem 0;
    text-align: center;
  }

  .post-title-cell {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-thumbnail {
    margin-bottom: 0.5rem;
    margin-right: 0;
  }
}
