/* Faith Defenders Website Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #c8a2c8 0%, #dda0dd  25%, #e6c3e6 50%, #f0d0f0 75%, #c8a2c8 100%);
  min-height: 100vh;
  color: #4a4a4a;
}

.min-h-screen {
  min-height: 100vh;
}

/* Navigation Styles */
.nav-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-brand h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #2d1b2d;
  letter-spacing: -0.025em;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #4a4a4a;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: #2d1b2d;
  background: rgba(255, 255, 255, 0.2);
}

.nav-link.active {
  color: #2d1b2d;
  background: rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

/* Main Content Styles */
.main-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 100px);
  padding: 2rem;
}

/* Main Content for Articles and Resources pages */
.main-content.has-search {
  display: block;
  align-items: unset;
  justify-content: unset;
  min-height: calc(100vh - 100px);
  padding: 0.5rem 0 1rem;
}

.content-container {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #2d1b2d;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.page-subtitle {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .nav-menu {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .main-content {
    padding: 1rem;
    min-height: calc(100vh - 140px);
  }
}

@media (max-width: 480px) {
  .nav-brand h1 {
    font-size: 1.5rem;
  }
  
  .nav-menu {
    gap: 0.5rem;
  }
  
  .nav-link {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }
  
  .page-title {
    font-size: 1.75rem;
  }
  
  .content-container {
    padding: 0 1rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.nav-link:focus {
  outline: 2px solid #2d1b2d;
  outline-offset: 2px;
}

/* User info in navigation */
.user-info {
  color: #2d1b2d !important;
  font-weight: 600;
  cursor: default;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Page header styles */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

/* Button styles */
.btn-primary {
  background: linear-gradient(135deg, #8b45c1 0%, #a855f7 100%);
  color: white;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(139, 69, 193, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 69, 193, 0.4);
}

.btn-primary:hover::before {
  left: 100%;
}

/* Articles and Resources */
.featured-articles {
  margin-top: 3rem;
  max-width: 800px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d1b2d;
  margin-bottom: 1.5rem;
}

.articles-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.article-card,
.article-item {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

.article-card:hover,
.article-item:hover {
  transform: translateY(-2px);
}

.article-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.article-title a {
  color: #2d1b2d;
  text-decoration: none;
}

.article-title a:hover {
  text-decoration: underline;
}

.article-excerpt {
  color: #555;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.article-meta {
  color: #666;
  font-size: 0.9rem;
}

.view-all {
  text-align: center;
  margin-top: 2rem;
}

/* Resources grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.resource-card {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-2px);
}

.resource-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.resource-type {
  background: #2d1b2d;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  display: inline-block;
}

.resource-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.resource-badge.uploaded {
  background: #dcfce7;
  color: #166534;
}

.resource-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.resource-title a {
  color: #2d1b2d;
  text-decoration: none;
}

.resource-title a:hover {
  text-decoration: underline;
}

.resource-description {
  color: #555;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.resource-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.resource-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.resource-link {
  color: #2d1b2d;
  font-weight: 500;
  text-decoration: none;
  flex: 1;
}

.resource-link:hover {
  text-decoration: underline;
}

.resource-download {
  color: #2d1b2d;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.resource-download:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

/* Resource viewing page styles */
.resource-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.resource-description {
  font-size: 1rem;
  line-height: 1.6;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 500px;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.empty-state-icon {
  margin-bottom: 1.5rem;
  color: #8b5a8c;
  opacity: 0.7;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d1b2d;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.empty-state-description {
  color: #5a5a5a;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.empty-state-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-state-login {
  text-align: center;
}

.empty-state-login p {
  color: #666;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

/* Homepage call-to-action */
.homepage-cta {
  margin-top: 3rem;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #2d1b2d;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.cta-description {
  color: #5a5a5a;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  background: transparent;
  color: #2d1b2d;
  border: 2px solid #2d1b2d;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-block;
}

.btn-secondary:hover {
  background: #2d1b2d;
  color: white;
  transform: translateY(-1px);
}

/* Authentication styles */
.auth-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 100px);
  padding: 2rem;
}

.auth-container {
  max-width: 400px;
  width: 100%;
}

.auth-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #2d1b2d;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.auth-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: rgba(255, 255, 255, 0.4);
  color: #2d1b2d;
  font-weight: 500;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2d1b2d;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #2d1b2d;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #2d1b2d;
  background: rgba(255, 255, 255, 0.3);
}

.auth-message,
.dashboard-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.auth-message.info,
.dashboard-message.info {
  background: rgba(59, 130, 246, 0.1);
  color: #1e40af;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.auth-message.success,
.dashboard-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.auth-message.error,
.dashboard-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Article content styles */
.article-content {
  padding: 2rem;
}

.article-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.article-detail {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.breadcrumb {
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: #2d1b2d;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.article-detail .article-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2d1b2d;
  margin-bottom: 1rem;
}

.article-detail .article-meta {
  color: #666;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Article Content Display - Match Custom Editor Formatting */
.article-body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #374151;
  font-size: 1rem;
}

/* Paragraph and text spacing */
.article-body p {
  margin: 0 0 1em 0;
  line-height: 1.6;
}

.article-body p:last-child {
  margin-bottom: 0;
}

/* Headers - Match custom editor exactly */
.article-body h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem 0;
  line-height: 1.2;
  color: #1f2937;
}

.article-body h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin: 1.25rem 0 0.75rem 0;
  line-height: 1.3;
  color: #1f2937;
}

.article-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem 0;
  line-height: 1.4;
  color: #1f2937;
}

.article-body h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.875rem 0 0.5rem 0;
  line-height: 1.4;
  color: #1f2937;
}

.article-body h5 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0.75rem 0 0.5rem 0;
  line-height: 1.4;
  color: #1f2937;
}

.article-body h6 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.75rem 0 0.5rem 0;
  line-height: 1.4;
  color: #1f2937;
}

/* Text formatting */
.article-body strong {
  font-weight: 700;
}

.article-body em {
  font-style: italic;
}

.article-body u {
  text-decoration: underline;
}

.article-body s {
  text-decoration: line-through;
}

.article-body sub {
  font-size: 0.75rem;
  vertical-align: sub;
}

.article-body sup {
  font-size: 0.75rem;
  vertical-align: super;
}

/* Lists */
.article-body ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.article-body ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.article-body li {
  margin: 0.25rem 0;
  line-height: 1.6;
}

.article-body ul ul,
.article-body ol ol,
.article-body ul ol,
.article-body ol ul {
  margin: 0.25rem 0;
}

/* Blockquotes */
.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid #3b82f6;
  background-color: #f8fafc;
  font-style: italic;
  color: #4b5563;
}

.article-body blockquote p {
  margin: 0;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Code */
.article-body code {
  background-color: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875rem;
  color: #dc2626;
}

.article-body pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.article-body pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.875rem;
}

/* Links */
.article-body a {
  color: #3b82f6;
  text-decoration: underline;
}

.article-body a:hover {
  color: #1d4ed8;
  text-decoration: none;
}

/* Images */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

/* Text alignment classes (matching editor) */
.article-body .text-left {
  text-align: left;
}

.article-body .text-center {
  text-align: center;
}

.article-body .text-right {
  text-align: right;
}

.article-body .text-justify {
  text-align: justify;
}

/* Font sizes (matching editor) */
.article-body .text-xs {
  font-size: 0.75rem;
}

.article-body .text-sm {
  font-size: 0.875rem;
}

.article-body .text-lg {
  font-size: 1.125rem;
}

.article-body .text-xl {
  font-size: 1.25rem;
}

.article-body .text-2xl {
  font-size: 1.5rem;
}

/* Font families (matching editor) */
.article-body .font-serif {
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.article-body .font-sans {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.article-body .font-mono {
  font-family: 'Courier New', Courier, monospace;
}

/* Highlight/background colors */
.article-body .bg-yellow-200 {
  background-color: #fef3c7;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

.article-body .bg-blue-100 {
  background-color: #dbeafe;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

.article-body .bg-green-100 {
  background-color: #dcfce7;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

.article-body .bg-red-100 {
  background-color: #fee2e2;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

.article-body .bg-purple-100 {
  background-color: #f3e8ff;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

/* Ensure proper spacing between elements */
.article-body > *:first-child {
  margin-top: 0;
}

.article-body > *:last-child {
  margin-bottom: 0;
}

/* Tables (if any) */
.article-body table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}

.article-body th,
.article-body td {
  border: 1px solid #d1d5db;
  padding: 0.5rem;
  text-align: left;
}

.article-body th {
  background-color: #f3f4f6;
  font-weight: 600;
}

/* Horizontal rules */
.article-body hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid #d1d5db;
}

/* Dashboard styles */
.dashboard-content {
  padding: 2rem;
}

.dashboard-container {
  max-width: 1000px;
  margin: 0 auto;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 3rem;
}

.dashboard-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  gap: 1rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: #2d1b2d;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.tab-content {
  display: block;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.stat-card h3 {
  color: #2d1b2d;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #2d1b2d;
}

.form-card {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.form-card h2 {
  color: #2d1b2d;
  margin-bottom: 1.5rem;
  text-align: center;
}

.content-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2d1b2d;
  font-weight: 500;
}

.content-item {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.content-item h5 {
  color: #2d1b2d;
  margin-bottom: 0.5rem;
}

.content-item a {
  color: #2d1b2d;
  text-decoration: none;
}

.content-item a:hover {
  text-decoration: underline;
}

/* Responsive updates */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .dashboard-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* Rich Text Editor Styles */
.editor-toolbar {
  border: 1px solid #e2e8f0;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 8px;
  background: #f8fafc;
  flex-wrap: wrap;
}

.ql-toolbar {
  border: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-family: 'Inter', sans-serif !important;
  padding: 8px !important;
}

.ql-container {
  border-radius: 0 0 6px 6px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  border-color: #e2e8f0 !important;
}

.ql-editor {
  min-height: 300px !important;
  padding: 12px 15px !important;
  line-height: 1.6 !important;
}

.ql-editor.ql-blank::before {
  font-style: normal !important;
  color: #94a3b8 !important;
  left: 15px !important;
}

.ql-snow .ql-tooltip {
  background-color: white !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.ql-snow .ql-tooltip input {
  border: 1px solid #e2e8f0 !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
}

/* Enhanced toolbar button styling */
.ql-snow .ql-toolbar button,
.ql-snow .ql-toolbar select {
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
}

.ql-snow .ql-toolbar button:hover,
.ql-snow .ql-toolbar button:focus,
.ql-snow .ql-toolbar select:hover {
  background-color: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
}

.ql-snow .ql-toolbar button.ql-active {
  background-color: #3b82f6 !important;
  color: white !important;
  border-color: #2563eb !important;
}

/* Tooltip styling for all toolbar elements */
.ql-snow .ql-toolbar button[title]:hover::after,
.ql-snow .ql-toolbar select[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
}

.ql-snow .ql-toolbar button[title],
.ql-snow .ql-toolbar select[title] {
  position: relative;
}

/* Format group spacing */
.ql-formats {
  margin-right: 8px !important;
}

.ql-formats:last-child {
  margin-right: 0 !important;
}

/* Dashboard editor specific styles */
#article-content-editor .ql-editor {
  min-height: 300px !important;
}

/* Enhanced font and size dropdowns */
.ql-snow .ql-picker.ql-font .ql-picker-label::before,
.ql-snow .ql-picker.ql-font .ql-picker-item::before {
  content: 'Font';
}

.ql-snow .ql-picker.ql-size .ql-picker-label::before,
.ql-snow .ql-picker.ql-size .ql-picker-item::before {
  content: 'Size';
}

.ql-snow .ql-picker.ql-header .ql-picker-label::before,
.ql-snow .ql-picker.ql-header .ql-picker-item::before {
  content: 'Normal';
}

.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
  content: 'Heading 1';
  font-size: 1.5em;
  font-weight: bold;
}

.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
  content: 'Heading 2';
  font-size: 1.3em;
  font-weight: bold;
}

.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
  content: 'Heading 3';
  font-size: 1.1em;
  font-weight: bold;
}

.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before {
  content: 'Heading 4';
  font-size: 1.0em;
  font-weight: bold;
}

.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before {
  content: 'Heading 5';
  font-size: 0.9em;
  font-weight: bold;
}

.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before {
  content: 'Heading 6';
  font-size: 0.8em;
  font-weight: bold;
}

/* Custom inline header styles */
.ql-editor .header-1 {
  font-size: 2em;
  font-weight: bold;
  color: #1e40af;
  line-height: 1.2;
}

.ql-editor .header-2 {
  font-size: 1.5em;
  font-weight: bold;
  color: #1e40af;
  line-height: 1.3;
}

.ql-editor .header-3 {
  font-size: 1.25em;
  font-weight: bold;
  color: #1e40af;
  line-height: 1.4;
}

.ql-editor .header-4 {
  font-size: 1.1em;
  font-weight: bold;
  color: #1e40af;
  line-height: 1.4;
}

.ql-editor .header-5 {
  font-size: 1em;
  font-weight: bold;
  color: #1e40af;
  line-height: 1.4;
}

.ql-editor .header-6 {
  font-size: 0.9em;
  font-weight: bold;
  color: #1e40af;
  line-height: 1.4;
}

/* ===== SEARCH AND FILTER COMPONENTS ===== */

/* Search and Filter Container */
.search-filter-container {
  max-width: 1200px;
  margin: 0.5rem auto 1.5rem;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .search-filter-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Search Bar */
.search-bar {
  flex: 1;
  max-width: 400px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.search-input-wrapper:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(139, 69, 193, 0.3);
  box-shadow: 0 4px 12px rgba(139, 69, 193, 0.1);
}

.search-input-wrapper.focused {
  background: rgba(255, 255, 255, 1);
  border-color: #8b45c1;
  box-shadow: 0 0 0 3px rgba(139, 69, 193, 0.1);
}

.search-icon {
  color: #9ca3af;
  margin-right: 0.75rem;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.search-input-wrapper.focused .search-icon {
  color: #8b45c1;
}

.search-input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 1rem;
  color: #374151;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.search-input::placeholder {
  color: #9ca3af;
}

.clear-search {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.clear-search:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* Filter Controls */
.filter-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .filter-controls {
    display: none;
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .filter-controls.show-mobile {
    display: flex;
  }
}

.filter-select {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: #374151;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
  backdrop-filter: blur(10px);
}

.filter-select:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(139, 69, 193, 0.3);
}

.filter-select:focus {
  outline: none;
  background: rgba(255, 255, 255, 1);
  border-color: #8b45c1;
  box-shadow: 0 0 0 3px rgba(139, 69, 193, 0.1);
}

.filter-toggle {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #374151;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
}

.filter-toggle:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(139, 69, 193, 0.3);
}

@media (min-width: 768px) {
  .filter-toggle {
    display: none;
  }
}

/* Search Results Info */
.search-results-info {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(139, 69, 193, 0.1);
  border: 1px solid rgba(139, 69, 193, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #6b46c1;
  font-weight: 500;
}

.search-results-info span {
  display: flex;
  align-items: center;
}

.clear-filters-btn {
  background: none;
  border: none;
  color: #6b46c1;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.clear-filters-btn:hover {
  background: rgba(139, 69, 193, 0.1);
  color: #553c9a;
}

/* Category Badges */
.article-category,
.resource-category {
  margin: 0.5rem 0;
}

.category-badge {
  display: inline-block;
  background: linear-gradient(135deg, #8b45c1, #a855f7);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 4px rgba(139, 69, 193, 0.2);
}

/* Enhanced Empty State for Search */
.empty-state .fa-search {
  color: #c4b5fd;
  margin-bottom: 1rem;
}

/* Content Container Adjustments */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content-container.with-search {
  padding: 1rem 2rem 0;
}

.page-header {
  text-align: center;
  margin-bottom: 1rem;
}

.page-header.with-search {
  margin-bottom: 0.5rem;
  padding-top: 1rem;
}

/* Articles and Resources List Adjustments */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-bottom: 2rem;
}

.article-item {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.article-item:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(139, 69, 193, 0.3);
  box-shadow: 0 8px 25px rgba(139, 69, 193, 0.1);
  transform: translateY(-2px);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

.resource-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.resource-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(139, 69, 193, 0.3);
  box-shadow: 0 8px 25px rgba(139, 69, 193, 0.1);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .search-filter-container,
  .content-container,
  .articles-list,
  .resources-grid {
    padding: 0 1rem;
  }
  
  .filter-controls {
    gap: 0.5rem;
  }
  
  .filter-select {
    min-width: 100px;
    font-size: 0.85rem;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== COMMENTS AND LIKES STYLES ===== */

/* Responsive Layout for Article/Resource Content */
.content-layout {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0.5rem 0 1rem; /* Reduced right padding */
  min-height: 100vh;
}

.main-content-area {
  flex: 0 0 62%; /* Reduced from 66.66% to 62% */
  min-width: 0; /* Prevents flex item from overflowing */
}

.comments-sidebar {
  flex: 0 0 37%; /* Fixed width instead of flex: 1, slightly larger for better readability */
  position: sticky;
  top: 2rem;
  height: fit-content;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  transition: all 0.3s ease;
}

.comments-sidebar::-webkit-scrollbar {
  width: 6px;
}

.comments-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.comments-sidebar::-webkit-scrollbar-thumb {
  background: rgba(139, 69, 193, 0.3);
  border-radius: 3px;
}

.comments-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 69, 193, 0.5);
}

.content-interactions {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  justify-content: flex-start;
}

/* Mobile Layout - Comments at bottom */
@media (max-width: 1024px) {
  .content-layout {
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .main-content-area {
    flex: none;
  }
  
  .comments-sidebar {
    flex: none;
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  
  .content-interactions {
    justify-content: center;
  }
}

.comments-likes-container {
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 0 2rem;
}

/* Likes Section */
.likes-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.like-stats {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
}

.like-button {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid rgba(139, 69, 193, 0.15);
  border-radius: 25px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 250, 252, 0.8) 100%);
  color: #8b45c1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.like-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 69, 193, 0.1), transparent);
  transition: left 0.5s ease;
}

.like-button:hover {
  background: linear-gradient(135deg, rgba(139, 69, 193, 0.08) 0%, rgba(168, 85, 247, 0.05) 100%);
  border-color: rgba(139, 69, 193, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 69, 193, 0.15);
}

.like-button:hover::before {
  left: 100%;
}

.like-button.liked {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border-color: #f472b6;
  color: #ec4899;
}

.like-button.liked i {
  color: #ec4899;
  animation: heartbeat 0.6s ease-in-out;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1.1); }
  75% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Comment Moderation and Management Styles */
.comment-header {
  position: relative;
}

.comment-menu {
  position: relative;
  margin-left: auto;
}

.comment-menu-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  opacity: 0.7;
  font-size: 0.875rem;
}

.comment:hover .comment-menu-btn,
.comment-menu-btn:hover {
  opacity: 1;
  background: #f3f4f6;
  color: #374151;
}

.comment-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 120px;
}

.comment-menu-dropdown button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: none;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.comment-menu-dropdown button:first-child {
  border-radius: 6px 6px 0 0;
}

.comment-menu-dropdown button:last-child {
  border-radius: 0 0 6px 6px;
}

.comment-menu-dropdown button:only-child {
  border-radius: 6px;
}

.comment-menu-dropdown button:hover {
  background: #f3f4f6;
  color: #111827;
}

.comment-menu-dropdown button.delete-btn:hover {
  background: #fef2f2;
  color: #dc2626;
}

.comment-menu-dropdown button.moderate-btn:hover {
  background: #fffbeb;
  color: #d97706;
}

/* Role badges */
.role-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.role-badge.admin {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
}

.role-badge.moderator {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: white;
}

/* Comment edit form */
.comment-edit-form {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(139, 69, 193, 0.05);
  border-radius: 12px;
  border: 2px solid rgba(139, 69, 193, 0.1);
}

.edit-textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.75rem;
  border: 2px solid rgba(139, 69, 193, 0.15);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease;
}

.edit-textarea:focus {
  outline: none;
  border-color: #8b45c1;
  box-shadow: 0 0 0 3px rgba(139, 69, 193, 0.1);
}

.edit-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.like-login-prompt a {
  color: #6b7280;
}

/* Comments Section */
.comments-section {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  width: 100%;
  box-sizing: border-box;
}

.comments-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.comments-header h3 {
  color: #111827;
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.comment-count-badge {
  background: #f97316;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 10px;
  min-width: 1.25rem;
  text-align: center;
}

/* Full-width sidebar design for desktop */
@media (min-width: 1025px) {
  .comments-section {
    margin-top: 0;
    padding: 1.5rem;
    width: 100%;
  }
  
  .comments-header h3 {
    font-size: 1.1rem;
  }
  
  .comment-form {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .comment {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .comment-form-body textarea {
    min-height: 100px;
    font-size: 0.9rem;
  }
  
  .comment-avatar {
    width: 40px;
    height: 40px;
  }
  
  .comment.comment-reply .comment-avatar {
    width: 36px;
    height: 36px;
  }
  
  /* Better use of wide comment space */
  .comment-content p {
    line-height: 1.6;
    font-size: 0.95rem;
  }
}

.comments-header i {
  color: #8b45c1;
  font-size: 1.1rem;
}

.comment-login-prompt {
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(139, 69, 193, 0.05) 0%, rgba(168, 85, 247, 0.03) 100%);
  border: 2px solid rgba(139, 69, 193, 0.15);
  border-radius: 18px;
  margin-bottom: 2rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 25px rgba(139, 69, 193, 0.08);
  position: relative;
}

.comment-login-prompt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b45c1, #a855f7, #c084fc);
  border-radius: 18px 18px 0 0;
}

.comment-login-prompt a {
  color: #8b45c1;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(135deg, #8b45c1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  position: relative;
}

.comment-login-prompt a:hover {
  text-decoration: underline;
  text-decoration-color: #a855f7;
}

.comment-form {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 252, 0.9) 100%);
  border: 2px solid rgba(139, 69, 193, 0.12);
  border-radius: 18px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 25px rgba(139, 69, 193, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.comment-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b45c1, #a855f7, #c084fc);
  border-radius: 18px 18px 0 0;
}

.comment-form:focus-within {
  border-color: rgba(139, 69, 193, 0.25);
  box-shadow: 0 12px 35px rgba(139, 69, 193, 0.12);
  transform: translateY(-2px);
}

.comment-form-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(139, 69, 193, 0.08);
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(139, 69, 193, 0.2);
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #8b45c1;
  box-shadow: 0 4px 12px rgba(139, 69, 193, 0.15);
  transition: all 0.3s ease;
  position: relative;
}

.comment-avatar::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b45c1, #a855f7);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.comment:hover .comment-avatar::after {
  opacity: 0.1;
}

.comment.comment-reply .comment-avatar {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
  border-width: 2px;
}

.comment-author {
  font-weight: 700;
  color: #2d1b2d;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.comment-form-body textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 2px solid rgba(139, 69, 193, 0.1);
  border-radius: 12px;
  resize: vertical;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.comment-form-body textarea:focus {
  outline: none;
  border-color: #8b45c1;
  box-shadow: 0 0 0 4px rgba(139, 69, 193, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.comment-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(139, 69, 193, 0.06);
}

.character-count {
  font-size: 0.85rem;
  color: #8b5cf6;
  font-weight: 600;
  opacity: 0.8;
}

.form-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-cancel {
  padding: 0.75rem 1.5rem;
  border: 2px solid rgba(139, 69, 193, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #8b45c1;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.btn-cancel:hover {
  background: rgba(139, 69, 193, 0.05);
  border-color: rgba(139, 69, 193, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 69, 193, 0.15);
}

.comment {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
  position: relative;
}

.comment:hover {
  background: #fafafa;
  border-color: #d1d5db;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.comment-reply {
  margin-left: 1.5rem;
  margin-top: 0.25rem;
  border-left: 2px solid rgba(139, 69, 193, 0.3);
  padding-left: 1rem;
  position: relative;
}

.comment-reply::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 0;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #8b45c1, #a855f7);
  border-radius: 50%;
  opacity: 0.7;
}

.comment-reply .comment {
  background: linear-gradient(135deg, rgba(247, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.85) 100%);
  border-color: rgba(139, 69, 193, 0.06);
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.comment-reply .comment:hover {
  background: linear-gradient(135deg, rgba(250, 252, 254, 0.95) 0%, rgba(244, 248, 251, 0.9) 100%);
  border-color: rgba(139, 69, 193, 0.15);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(139, 69, 193, 0.06);
}

.comment-meta {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex-grow: 1;
}

.comment-time {
  font-size: 0.85rem;
  color: #8b5cf6;
  font-weight: 500;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.comment-time::before {
  content: '•';
  color: #c084fc;
  font-weight: bold;
}

.comment-content {
  margin-top: 0.5rem;
}

.comment-content p {
  color: #374151;
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
}

.comment-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.comment-reply-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  min-height: 32px;
}

.comment-reply-btn:hover {
  color: #475569;
  background: rgba(100, 116, 139, 0.08);
}

/* Comment Like/Dislike Buttons - Modern Clean Style */
.comment-like-btn,
.comment-dislike-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  min-height: 32px;
}

.comment-like-btn i,
.comment-dislike-btn i {
  font-size: 0.875rem;
}

.comment-like-btn:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.comment-like-btn.liked {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.comment-like-btn.liked i {
  color: #3b82f6;
}

.comment-dislike-btn:hover {
  color: #64748b;
  background: rgba(100, 116, 139, 0.08);
}

.comment-dislike-btn.disliked {
  color: #64748b;
  background: rgba(100, 116, 139, 0.1);
}

.comment-dislike-btn.disliked i {
  color: #64748b;
}

.like-count,
.dislike-count {
  font-weight: 700;
  font-size: 0.8rem;
  min-width: auto;
  text-align: center;
  line-height: 1;
}

.reply-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px solid rgba(139, 69, 193, 0.08);
  position: relative;
}

.reply-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #8b45c1, #a855f7);
}

.comment-replies {
  margin-top: 1.25rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.no-comments {
  text-align: center;
  padding: 3.5rem 2rem;
  color: #8b5cf6;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 2px solid rgba(139, 69, 193, 0.1);
  border-radius: 18px;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 25px rgba(139, 69, 193, 0.08);
  position: relative;
}

.no-comments::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b45c1, #a855f7, #c084fc);
  border-radius: 18px 18px 0 0;
}

.no-comments i {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
  color: #a855f7;
  background: linear-gradient(135deg, #8b45c1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Alert/Message Styles */
.alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-success {
  background: #10b981;
  color: white;
}

.alert-error {
  background: #ef4444;
  color: white;
}

.alert-info {
  background: #3b82f6;
  color: white;
}

/* Responsive adjustments for comments */
@media (max-width: 1024px) {
  .content-layout {
    padding: 0 1rem;
  }
  
  .comments-section {
    margin-top: 2rem;
    padding: 1.5rem;
  }
  
  .content-interactions {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .comments-likes-container {
    padding: 0 1rem;
  }
  
  .comment-reply {
    margin-left: 1rem;
  }
  
  .comment-form-actions {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .form-buttons {
    align-self: flex-end;
  }
  
  .comment-form {
    padding: 1rem;
  }
  
  .comment {
    padding: 1rem;
  }
  
  .article-container {
    padding: 1rem;
  }
  
  .content-layout {
    gap: 1rem;
    padding: 0;
  }
}