* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  top: 0;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  color: #667eea;
  font-size: 1.8rem;
  font-weight: 700;
}

header h1 i {
  margin-right: 0.5rem;
}

#main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-btn {
  background: transparent;
  border: 2px solid transparent;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  color: #667eea;
}

.nav-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
}

.nav-btn.active {
  background: #667eea;
  color: white;
}

.profile-btn {
  background: transparent;
  border: 2px solid transparent;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  color: #667eea;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
}

.logout-btn {
  color: #dc3545 !important;
}

.logout-btn:hover {
  background: rgba(220, 53, 69, 0.1) !important;
  border-color: rgba(220, 53, 69, 0.3) !important;
}

.user-info {
  color: #666;
  font-weight: 500;
}

.user-info i {
  margin-right: 0.5rem;
  color: #667eea;
}

#app-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  min-height: calc(100vh - 200px);
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: white;
}

.loading-spinner i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.auth-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  width: 100%;
  max-width: 450px;
  backdrop-filter: blur(10px);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  color: #333;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: #666;
  font-size: 1rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group label i {
  color: #667eea;
  width: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-text {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
}

.auth-submit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.auth-switch {
  text-align: center;
  margin-top: 1rem;
}

.auth-switch a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.dashboard {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.search-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-container {
  flex: 1;
  position: relative;
}

.search-container i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.search-container input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-container input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-container select {
  padding: 0.75rem 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
}

.post-creation-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.post-creation-section h3 {
  color: #333;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-creation-section h3 i {
  color: #667eea;
}

.create-post-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-group.flex-2 {
  flex: 2;
}

.form-group small {
  color: #666;
  font-size: 0.85rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.feed-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f8f9fa;
}

.feed-header h3 {
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feed-header h3 i {
  color: #667eea;
}

.feed-stats {
  color: #666;
  font-weight: 500;
}

.posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.loading-posts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #666;
  grid-column: 1 / -1;
}

.loading-posts i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #667eea;
}

.post-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  position: relative;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: #667eea;
}

.post-image-container {
  width: 100%;
  height: 200px;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #adb5bd;
  font-size: 3rem;
}

.post-card-content {
  padding: 1.5rem;
}

.post-card-header {
  margin-bottom: 1rem;
}

.post-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #667eea;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.post-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.post-card-title:hover {
  color: #667eea;
}

.post-card-excerpt {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
}

.post-author-details {
  display: flex;
  flex-direction: column;
}

.post-author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1;
}

.post-date {
  font-size: 0.75rem;
  color: #6c757d;
  line-height: 2;
}

.post-engagement {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.post-like-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  color: #6c757d;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.post-like-btn:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.post-like-btn.liked {
  color: #dc3545;
}

.post-like-btn.liked i {
  color: #dc3545;
}

.post-comment-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  color: #6c757d;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  text-decoration: none;
}

.post-comment-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.post-status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.draft-badge {
  background: rgba(255, 193, 7, 0.9);
  color: #333;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  backdrop-filter: blur(10px);
}

.scheduled-badge {
  background: rgba(255, 152, 0, 0.9);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  backdrop-filter: blur(10px);
}

.published-badge {
  background: rgba(40, 167, 69, 0.9);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  backdrop-filter: blur(10px);
}

.post-actions-dropdown {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.post-actions-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  color: #6c757d;
}

.post-actions-btn:hover {
  background: white;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.post-tag {
  background: #f8f9fa;
  color: #6c757d;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-post-page {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.blog-post-header {
  padding: 1.5rem 2rem;
  border-bottom: 2px solid #f8f9fa;
  background: #fafbfc;
}

.blog-post-layout {
  display: flex;
  min-height: calc(100vh - 200px);
}

.blog-post-main {
  flex: 1;
  padding: 2rem;
  max-width: calc(100% - 400px);
}

.blog-post-sidebar {
  width: 400px;
  background: #f8f9fa;
  border-left: 2px solid #e9ecef;
  position: relative;
}

.sidebar-sticky-container {
  position: sticky;
  top: 2rem;
  height: calc(100vh - 4rem);
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-engagement-sidebar {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.engagement-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.like-btn-sidebar {
  background: none;
  border: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  justify-content: center;
}

.like-btn-sidebar:hover {
  background: rgba(220, 53, 69, 0.1);
  border-color: #dc3545;
  color: #dc3545;
  transform: translateY(-2px);
}

.like-btn-sidebar.liked {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
  border-color: #dc3545;
}

.like-btn-sidebar.liked i {
  color: #dc3545;
}

.like-count-sidebar {
  font-weight: 600;
  color: #666;
  font-size: 0.9rem;
}

.blog-post-article {
  max-width: 800px;
}

.blog-post-article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #f8f9fa;
}

.blog-post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.blog-post-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-post-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.publish-date {
  color: #666;
  font-size: 0.9rem;
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-tag {
  background: #667eea;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tag {
  background: #e9ecef;
  color: #495057;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 3rem;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3 {
  color: #333;
  margin: 2rem 0 1rem 0;
  font-weight: 700;
}

.blog-post-content h1 {
  font-size: 2.2rem;
  border-bottom: 3px solid #667eea;
  padding-bottom: 0.5rem;
}

.blog-post-content h2 {
  font-size: 1.8rem;
}

.blog-post-content h3 {
  font-size: 1.4rem;
}

.blog-post-content p {
  margin-bottom: 1.5rem;
}

.blog-post-content blockquote {
  border-left: 4px solid #667eea;
  padding-left: 2rem;
  margin: 2rem 0;
  color: #666;
  font-style: italic;
  background: #f8f9fa;
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.blog-post-content pre {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid #e9ecef;
}

.blog-post-content code {
  background: #f8f9fa;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.9em;
  color: #e83e8c;
}

.blog-post-content pre code {
  background: none;
  padding: 0;
  color: #333;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-post-engagement {
  padding: 1.5rem 0;
  border-top: 2px solid #f8f9fa;
  border-bottom: 2px solid #f8f9fa;
  margin-bottom: 2rem;
}

.engagement-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.like-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  font-size: 1rem;
  font-weight: 500;
}

.like-btn:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.like-btn.liked {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}

.like-btn.liked i {
  color: #dc3545;
}

.like-count {
  font-weight: 500;
  color: #666;
  margin-left: 0.5rem;
}

.comments-sidebar {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.comments-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f8f9fa;
}

.comments-header h3 {
  color: #333;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.comment-form {
  margin-bottom: 1.5rem;
}

.comment-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  margin-bottom: 0.75rem;
}

.comment-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-submit-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-submit-btn:hover {
  background: #5a6fd8;
}

.comment-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.comments-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.comment-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.comment-item:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.comment-date {
  color: #666;
  font-size: 0.75rem;
}

.comment-content {
  color: #555;
  line-height: 1.5;
  margin: 0;
  font-size: 0.85rem;
}

.no-comments {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.login-to-comment {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  margin-bottom: 1.5rem;
}

.loading-comments {
  text-align: center;
  color: #666;
  padding: 2rem;
}

.error-loading-comments {
  text-align: center;
  color: #dc3545;
  padding: 1.5rem;
  background: #f8d7da;
  border-radius: 8px;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: #a2a2a2;
  color: white;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5a6fd8;
  transform: translateY(-1px);
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-success:hover {
  background: #218838;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
}

.btn-outline {
  background: transparent;
  border: 1px solid #e9ecef;
  color: #666;
}

.btn-outline:hover {
  background: #f8f9fa;
  border-color: #667eea;
  color: #667eea;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

.drafts-page {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f8f9fa;
}

.page-header h2 {
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.page-header h2 i {
  color: #667eea;
}

.page-header p {
  color: #666;
}

.drafts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.draft-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  position: relative;
}

.draft-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: #ffc107;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  text-align: center;
  color: #666;
  grid-column: 1 / -1;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  text-align: center;
  color: #dc3545;
  grid-column: 1 / -1;
}

.error-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.message {
  padding: 1rem;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

footer {
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background-color: #f0f2f5;
  color: #555;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-toggle:hover {
  background-color: #e0e2e5;
  color: #333;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 5px;
  padding: 5px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  color: #333;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  font-size: 0.9em;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  z-index: 10;
}

.dropdown-item:hover {
  background-color: #f1f1f1;
}

.dropdown-item i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.avatar-img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-page {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.profile-container {
  display: flex;
  min-height: 600px;
}

.profile-sidebar {
  width: 300px;
  background: #f8f9fa;
  border-right: 2px solid #e9ecef;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-header {
  text-align: center;
}

.profile-avatar {
  margin-bottom: 1rem;
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #667eea;
}

.profile-info h2 {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.profile-info p {
  color: #666;
  margin-bottom: 1rem;
}

.user-roles {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.role-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.role-badge.admin {
  background: #dc3545;
  color: white;
}

.role-badge.author {
  background: #28a745;
  color: white;
}

.profile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-nav-btn {
  background: transparent;
  border: 2px solid transparent;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  color: #667eea;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.profile-nav-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
}

.profile-nav-btn.active {
  background: #667eea;
  color: white;
}

.profile-nav-btn.logout-btn {
  color: #dc3545;
  margin-top: auto;
}

.profile-nav-btn.logout-btn:hover {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.3);
}

.profile-content {
  flex: 1;
  padding: 2rem;
}

.profile-section {
  max-width: 600px;
}

.section-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f8f9fa;
}

.section-header h3 {
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.section-header h3 i {
  color: #667eea;
}

.section-header p {
  color: #666;
  margin: 0;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-preview-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e9ecef;
}

.form-actions {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #f8f9fa;
}

.admin-page {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.admin-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.admin-section {
  border: 2px solid #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  background: #fafbfc;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f8f9fa;
}

.section-header h3 {
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.section-header h3 i {
  color: #667eea;
}

.section-stats {
  color: #666;
  font-weight: 500;
}

.admin-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.admin-item-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.admin-item-card:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.admin-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.admin-item-info {
  flex: 1;
}

.admin-item-info h4 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.1rem;
}

.admin-item-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.admin-item-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.user-management-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-management-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

.user-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.user-avatar-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-admin-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e9ecef;
  transition: border-color 0.3s ease;
}

.user-management-card:hover .user-admin-avatar {
  border-color: #667eea;
}

.user-basic-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-admin-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.user-admin-email {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.user-status-indicator {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.admin-status {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.author-status {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.user-roles-section {
  margin-bottom: 1.5rem;
}

.roles-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.roles-label {
  font-weight: 600;
  color: #555;
  font-size: 0.9rem;
}

.user-roles-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.user-actions-section {
  display: flex;
  gap: 1rem;
}

.role-management {
  display: flex;
  justify-content: center;
}

.user-management {
  display: flex;
  justify-content: center;
}

.current-user-badge {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.text-muted {
  color: #6c757d;
  font-style: italic;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 0;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 2px solid #f8f9fa;
}

.modal-header h3 {
  margin: 0;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #f8f9fa;
  color: #333;
}

.modal-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #f8f9fa;
}

.create-blog-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.create-blog-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border: 2px dashed #e1e5e9;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.create-blog-card:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.02);
}

.create-blog-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.create-blog-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.create-blog-text h3 {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.create-blog-text p {
  color: #666;
  margin: 0;
}

.create-blog-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.create-blog-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.create-blog-page {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.blog-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid #f8f9fa;
  background: #fafbfc;
}

.back-btn {
  background: none;
  border: 1px solid #e1e5e9;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  color: #666;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.back-btn:hover {
  background: #f8f9fa;
  border-color: #667eea;
  color: #667eea;
}

.editor-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.blog-editor-container {
  padding: 2rem;
}

.blog-meta-section {
  margin-bottom: 2rem;
}

.blog-title-input {
  width: 100%;
  padding: 1rem;
  border: none;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  background: transparent;
  outline: none;
  border-bottom: 2px solid #f8f9fa;
  transition: border-color 0.3s ease;
}

.blog-title-input:focus {
  border-bottom-color: #667eea;
}

.blog-title-input::placeholder {
  color: #ccc;
}

.meta-row {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.meta-row .form-group {
  flex: 1;
}

.editor-main {
  border: 2px solid #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #fafbfc;
  border-bottom: 1px solid #e1e5e9;
}

.toolbar-group {
  display: flex;
  gap: 0.5rem;
}

.toolbar-btn {
  background: none;
  border: 1px solid #e1e5e9;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  color: #666;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toolbar-btn:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.editor-content {
  background: white;
}

.editor-tabs {
  display: flex;
  border-bottom: 1px solid #e1e5e9;
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  color: #666;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  color: #667eea;
  border-bottom-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.editor-panes {
  position: relative;
}

.editor-pane {
  display: none;
  min-height: 500px;
}

.editor-pane.active {
  display: block;
}

#markdown-editor {
  width: 100%;
  min-height: 500px;
  padding: 2rem;
  border: none;
  outline: none;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}

.markdown-preview {
  padding: 2rem;
  min-height: 500px;
  line-height: 1.6;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3 {
  color: #333;
  margin: 1.5rem 0 1rem 0;
}

.markdown-preview p {
  margin-bottom: 1rem;
}

.markdown-preview blockquote {
  border-left: 4px solid #667eea;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #666;
  font-style: italic;
}

.markdown-preview pre {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
}

.markdown-preview code {
  background: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
}

.markdown-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1rem 0;
}

.preview-placeholder {
  color: #ccc;
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

.admin-navigation {
  margin-bottom: 2rem;
}

.admin-nav-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-nav-btn {
  background: transparent;
  border: 2px solid #e1e5e9;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-nav-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: #667eea;
  color: #667eea;
}

.admin-nav-btn.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.admin-content {
  min-height: 400px;
}

.post-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  #main-nav {
    flex-direction: column;
    width: 100%;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  #app-container {
    padding: 0 1rem;
    margin: 1rem auto;
  }

  .auth-card {
    padding: 2rem;
    margin: 1rem;
  }

  .search-section {
    flex-direction: column;
    align-items: stretch;
  }

  .posts-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .drafts-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .admin-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-row {
    flex-direction: column;
  }

  .meta-row {
    flex-direction: column;
    gap: 1rem;
  }

  .editor-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .toolbar-group {
    gap: 0.25rem;
  }

  .profile-container {
    flex-direction: column;
  }

  .profile-sidebar {
    width: 100%;
  }

  .admin-nav-buttons {
    justify-content: center;
  }

  .admin-nav-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  .blog-post-layout {
    flex-direction: column;
  }

  .blog-post-main {
    max-width: 100%;
    padding: 1.5rem;
  }

  .blog-post-sidebar {
    width: 100%;
    position: static;
  }

  .sidebar-sticky-container {
    position: static;
    height: auto;
    padding: 1.5rem;
  }

  .blog-post-title {
    font-size: 2rem;
  }

  .blog-editor-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .editor-actions {
    justify-content: center;
  }

  .modal-content {
    margin: 1rem;
    width: calc(100% - 2rem);
  }

  .user-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .user-avatar-section {
    flex-direction: column;
    text-align: center;
  }

  .user-actions-section {
    width: 100%;
  }

  .role-management,
  .user-management {
    justify-content: stretch;
  }

  .role-management .btn,
  .user-management .btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
  }

  .blog-title-input {
    font-size: 1.5rem;
  }

  .blog-post-title {
    font-size: 1.75rem;
  }

  .create-blog-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .create-blog-content {
    flex-direction: column;
    text-align: center;
  }

  .editor-tabs {
    justify-content: center;
  }

  .tab-btn {
    flex: 1;
    text-align: center;
  }
}

.welcome-page {
  min-height: calc(100vh - 200px);
}

.welcome-hero {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%), 
              url('/placeholder.svg?height=600&width=1200') center/cover;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  border-radius: 16px;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.welcome-hero > div {
  position: relative;
  z-index: 2;
}

.welcome-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.welcome-hero h1 .fas {
  margin-right: 1rem;
  color: #ffd700;
}

.welcome-hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-hero .welcome-cta-buttons { 
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.welcome-cta-btn {
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.welcome-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

#welcome-signup-btn, #welcome-signup-btn-2 {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  font-weight: 600;
  backdrop-filter: blur(10px);
}

#welcome-login-btn, #welcome-explore-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.welcome-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-card div:first-child {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.feature-card:nth-child(1) div:first-child {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-card:nth-child(2) div:first-child {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.feature-card:nth-child(3) div:first-child {
  background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.feature-card h3 {
  color: #333;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

.popular-posts-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: #333;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.section-header h2 .fas {
  color: #ff6b35;
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

#popular-posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.loading-posts {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #666;
}

.loading-posts .fas {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #667eea;
}

.popular-post-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  position: relative;
  cursor: pointer;
}

.popular-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15) !important;
}

.popular-post-card .rank-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.popular-post-card .post-image-container {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.popular-post-card .post-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-post-card .post-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 3rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.popular-post-card .post-content {
  padding: 1.5rem;
}

.popular-post-card .post-category {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #667eea;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.popular-post-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.popular-post-card .post-preview-text {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-post-card .post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.popular-post-card .author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.popular-post-card .author-info img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
}

.popular-post-card .author-username {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1;
}

.popular-post-card .post-date {
  font-size: 0.75rem;
  color: #6c757d;
  line-height: 2;
}

.popular-post-card .post-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.popular-post-card .like-count {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #666;;
  font-size: 0.85rem;
  font-weight: 600;
}

.popular-post-card .read-more-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.no-posts-message, .error-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
}

.no-posts-message {
  color: #666;
}

.no-posts-message .fas {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.error-message {
  color: #dc3545;
}

.error-message .fas {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.preview-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.welcome-cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  color: white;
}

.welcome-cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.welcome-cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.welcome-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}