/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  min-height: 100vh;
  line-height: 1.6;
}

/* Container */
.container {
  position: relative;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Corner Ornaments */
.corner-ornament {
  position: absolute;
  width: 80px;
  height: 80px;
  border-color: #ff9500;
  border-style: solid;
  opacity: 0.1;
}

.corner-top-left {
  top: 0;
  left: 0;
  border-width: 4px 0 0 4px;
  border-radius: 12px 0 0 0;
}

.corner-top-right {
  top: 0;
  right: 0;
  border-width: 4px 4px 0 0;
  border-radius: 0 12px 0 0;
}

.corner-bottom-left {
  bottom: 0;
  left: 0;
  border-width: 0 0 4px 4px;
  border-radius: 0 0 0 12px;
}

.corner-bottom-right {
  bottom: 0;
  right: 0;
  border-width: 0 4px 4px 0;
  border-radius: 0 0 12px 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 24px;
  border-bottom: 1px solid #d2d2d7;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: #ff9500;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.site-title {
  font-size: 20px;
  font-weight: 600;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Buttons */
.btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-outline {
  border: 1px solid #d2d2d7;
  background: transparent;
  color: #1d1d1f;
}

.btn-outline:hover {
  background: #f0f0f2;
}

.btn-primary {
  background: #ff9500;
  color: #fff;
}

.btn-primary:hover {
  background: #cc7700;
}

.btn-large {
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 24px;
}

/* Hero Section */
.hero {
  padding: 80px 32px;
  background: #fff;
  text-align: center;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-subtitle {
  font-weight: 500;
  font-size: 20px;
  color: #86868b;
}

.hero-description {
  font-size: 16px;
  color: #48484a;
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Recent Discussions Section */
.recent-section {
  padding: 64px 32px;
  background: #f5f5f7;
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-description {
  font-size: 16px;
  color: #86868b;
  max-width: 640px;
  margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(320px, 1fr)
  ); /* Responsive grid */
  gap: 24px;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 24px;
  transition: all 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.blog-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.blog-card:hover .blog-info h3 {
  color: #ff9500;
}

.blog-author {
  color: #86868b;
}

.blog-date {
  color: #c0c0c5;
  font-size: 12px;
}

.blog-likes {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #86868b;
}

.blog-excerpt {
  color: #48484a;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

/* Tags */
.tag {
  background: #e8e8ed;
  color: #48484a;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.read-more {
  width: 100%;
  padding: 10px;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  background: transparent;
  color: #ff9500;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: block;
  text-align: center;
  text-decoration: none;
}

.read-more:hover {
  background: #f0f0f2;
}

/* Footer */
.footer-bottom {
  padding: 48px 24px;
  background: #f0f0f2;
  border-top: 1px solid #d2d2d7;
  text-align: center;
}

.copyright {
  color: #86868b;
  font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    gap: 12px;
  }

  .hero-title {
    font-size: 36px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 20px;
  }

  .recent-section {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .header {
    padding: 12px 16px;
  }

  .hero-title {
    font-size: 32px;
  }
}
/* Auth Pages (Login & Register) */

/* Auth page wrapper */
.auth-page .header,
.auth-page .footer-bottom {
  padding-left: 0;
  padding-right: 0;
}

.auth-page .header-content {
  max-width: none;
  padding: 0 24px;
}

/* Logo link */
.logo-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}

.logo-link:hover {
  opacity: 0.8;
}

/* Main container */
.login-main {
  padding: 60px 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 150px);
}

/* Form card */
.login-container {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 40px;
}

.login-content {
  width: 100%;
}

/* Header section */
.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header .decorative-line {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.login-header .decorative-line .line {
  width: 40px;
  height: 2px;
  background: #e8e8ed;
  border-radius: 1px;
}

.login-title {
  font-size: 32px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 16px;
  color: #86868b;
}

/* Form structure */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #48484a;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 16px;
  color: #1d1d1f;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: #ff9500;
  box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.2);
  outline: none;
}

/* Submit button */
.login-button {
  background: #ff9500;
  color: #fff;
  padding: 12px 24px;
  border-radius: 24px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
  width: 100%;
}

.login-button:hover {
  background: #cc7700;
}

/* Login options (remember me & forgot password) */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox {
  width: 16px;
  height: 16px;
  accent-color: #ff9500;
}

.checkbox-label {
  color: #48484a;
}

.forgot-link {
  color: #ff9500;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #c0c0c5;
  margin: 24px 0;
}

.divider-line {
  flex-grow: 1;
  height: 1px;
  background: #e8e8ed;
}

.divider-text {
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Alternative options */
.alt-options {
  text-align: center;
  font-size: 14px;
  margin-top: 10px;
}

.alt-text {
  color: #86868b;
  margin-bottom: 8px;
}

.register-link {
  color: #ff9500;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.register-link:hover {
  color: #cc7700;
  text-decoration: underline;
}

/* Logout page */
.logout-message {
  text-align: center;
  margin: 30px 0;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.logout-text {
  font-size: 16px;
  color: #48484a;
  line-height: 1.5;
}

.logout-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.redirect-notice {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #86868b;
}

.redirect-timer {
  font-weight: 600;
  color: #ff9500;
}

/* Responsive */
@media (max-width: 600px) {
  .login-main {
    padding: 30px 16px;
  }

  .login-container {
    padding: 30px 20px;
  }

  .login-title {
    font-size: 28px;
  }

  .form-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
/* 
   Full Width Header & Footer
   */

/* Make header and footer full viewport width */
.header,
.footer-bottom {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-left: 24px;
  padding-right: 24px;
}

/* Keep header content centered */
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* Auth pages */
.auth-page .header,
.auth-page .footer-bottom {
  width: 100%;
  position: static;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
}

/* Mobile responsive header */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 12px 16px;
  }

  .header-content {
    gap: 16px;
  }

  .nav {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
/*
   DISCUSSIONS PAGE STYLES */

/* Container wrapper */
.container-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main content layout */
.main-content {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* Sidebar */
.sidebar {
  flex: 0 0 280px;
}

.sidebar-content {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Decorative lines */
.decorative-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.decorative-line.small {
  margin: 12px 0;
}

.line {
  flex: 1;
  height: 1px;
  background: #e8e8ed;
  border-radius: 1px;
}

.line.short-line {
  flex: 0 0 30px;
}

.ornament {
  color: #ff9500;
  font-size: 14px;
}

.ornament.small {
  font-size: 12px;
}

/* Sidebar sections */
.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1d1d1f;
  text-align: center;
}

/* Search box */
.search-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 10px 40px 10px 12px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: #ff9500;
  box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.1);
  outline: none;
}

.search-icon {
  position: absolute;
  right: 12px;
  color: #86868b;
  pointer-events: none;
}

/* Content area */
.content-area {
  flex: 1;
}

.content-header {
  text-align: center;
  margin-bottom: 32px;
}

.content-title {
  font-size: 32px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: #1d1d1f;
}

.content-subtitle {
  font-size: 16px;
  color: #86868b;
}

/* Discussion grid */
.discussion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.discussion-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 24px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.discussion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.discussion-header {
  margin-bottom: 16px;
}

.discussion-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  color: #1d1d1f;
}

.discussion-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #86868b;
}

.discussion-author {
  color: #86868b;
}

.discussion-date {
  color: #c0c0c5;
  font-size: 12px;
}

.discussion-preview {
  margin-bottom: 16px;
  flex: 1;
}

.discussion-preview p {
  font-size: 14px;
  color: #48484a;
  line-height: 1.5;
}

.discussion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.discussion-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.discussion-stats {
  display: flex;
  gap: 16px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #86868b;
}

.stat-icon {
  font-size: 14px;
}

.stat-count {
  font-weight: 500;
}

/* Pagination */
.pagination {
  text-align: center;
  margin-top: 40px;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.page-btn {
  padding: 8px 16px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background: #fff;
  color: #1d1d1f;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(.disabled) {
  background: #f0f0f2;
  border-color: #c0c0c5;
}

.page-btn.disabled {
  color: #c0c0c5;
  cursor: not-allowed;
  opacity: 0.6;
}

.page-numbers {
  display: flex;
  gap: 8px;
}

.page-number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background: #fff;
  color: #1d1d1f;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.page-number:hover {
  background: #f0f0f2;
}

.page-number.active {
  background: #ff9500;
  color: #fff;
  border-color: #ff9500;
}

.page-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #86868b;
}

/* Navigation links */
.nav-link {
  color: #86868b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  padding: 6px 12px;
  border-radius: 6px;
}

.nav-link:hover {
  color: #1d1d1f;
  background: #f0f0f2;
}

.nav-link.active {
  color: #ff9500;
  background: rgba(255, 149, 0, 0.1);
}
/*
   START DISCUSSION PAGE STYLES
   */

/* Editor layout */
.editor-main {
  padding: 40px 0;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 200px);
}

.editor-container {
  width: 100%;
  max-width: 800px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
}

.editor-header {
  text-align: center;
  margin-bottom: 32px;
}

.editor-title {
  font-size: 32px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: #1d1d1f;
}

.editor-subtitle {
  font-size: 16px;
  color: #86868b;
}

/* Editor form */
.editor-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-title-input {
  width: 100%;
  padding: 16px;
  border: 2px solid #e8e8ed;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafafa;
}

.post-title-input:focus {
  border-color: #ff9500;
  box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.1);
  outline: none;
  background: #fff;
}

.post-title-input::placeholder {
  color: #c0c0c5;
  font-weight: 500;
}

.post-body-input {
  width: 100%;
  padding: 20px;
  border: 2px solid #e8e8ed;
  border-radius: 12px;
  font-size: 16px;
  color: #1d1d1f;
  line-height: 1.6;
  resize: vertical;
  min-height: 300px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafafa;
  font-family: inherit;
}

.post-body-input:focus {
  border-color: #ff9500;
  box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.1);
  outline: none;
  background: #fff;
}

.post-body-input::placeholder {
  color: #c0c0c5;
}

.tags-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 14px;
  color: #1d1d1f;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tags-input:focus {
  border-color: #ff9500;
  box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.1);
  outline: none;
}

.input-help {
  font-size: 12px;
  color: #86868b;
  margin-top: 4px;
}

/* Editor actions */
.editor-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e8e8ed;
}

.editor-actions .btn {
  min-width: 120px;
  text-decoration: none;
  text-align: center;
}
/* 
   READ POST PAGE STYLES
  */

.breadcrumb {
  padding: 20px 0;
  border-bottom: 1px solid #e8e8ed;
  margin-bottom: 32px;
}

.breadcrumb-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb-link {
  color: #ff9500;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #c0c0c5;
}

.breadcrumb-current {
  color: #86868b;
  font-weight: 500;
}

/* EDIT  STYLES  */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 0;
  color: #333;
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.close-modal:hover {
  color: #333;
}

.edit-form-group {
  margin-bottom: 20px;
}

.edit-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.edit-form-group input,
.edit-form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}

.edit-form-group textarea {
  min-height: 200px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.edit-post-button {
  background: #ff9500;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
}

.edit-post-button:hover {
  background: #f89c1a;
}

/* Post content */
.post-main-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.discussion-article {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px;
  margin-bottom: 40px;
}

.discussion-article .discussion-header {
  text-align: center;
  margin-bottom: 32px;
}

.discussion-article .discussion-title {
  font-size: 36px;
  font-weight: 700;
  margin: 24px 0 16px;
  color: #1d1d1f;
  line-height: 1.3;
}

.discussion-article .discussion-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

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

.author-avatar {
  width: 48px;
  height: 48px;
  background: #ff9500;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-name {
  font-weight: 600;
  color: #1d1d1f;
}

.publish-date {
  font-size: 14px;
  color: #86868b;
}

/* Discussion content */
.discussion-content {
  font-size: 18px;
  line-height: 1.7;
  color: #48484a;
  margin-bottom: 32px;
}

.discussion-content p {
  margin-bottom: 20px;
}

/* Comments section */
.comments-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 32px;
  margin: 32px 0;
  border-left: 4px solid #ff9500;
}

.comments-header {
  text-align: center;
  margin-bottom: 24px;
}

.comments-title {
  font-size: 24px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: #1d1d1f;
}

.comments-subtitle {
  font-size: 16px;
  color: #86868b;
}

/* Add comment form */
.add-comment {
  margin-bottom: 32px;
}

.comment-form-header {
  margin-bottom: 20px;
}

.form-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1d1d1f;
}

.form-subtitle {
  font-size: 14px;
  color: #86868b;
}

.comment-form .form-group {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: #e8e8ed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #86868b;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.comment-input-container {
  flex: 1;
}

.comment-input {
  width: 100%;
  padding: 16px;
  border: 2px solid #e8e8ed;
  border-radius: 12px;
  font-size: 16px;
  color: #1d1d1f;
  line-height: 1.5;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s;
  font-family: inherit;
}

.comment-input:focus {
  border-color: #ff9500;
  outline: none;
}

.comment-input::placeholder {
  color: #c0c0c5;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* Comments list */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8e8ed;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  background: #ff9500;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.commenter-name {
  font-weight: 600;
  color: #1d1d1f;
}

.comment-date {
  font-size: 14px;
  color: #86868b;
}

.comment-text {
  font-size: 16px;
  line-height: 1.6;
  color: #48484a;
  margin-bottom: 12px;
}

.comment-actions {
  display: flex;
  gap: 16px;
}

.comment-action {
  background: none;
  border: none;
  color: #86868b;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}

.comment-action:hover {
  color: #ff9500;
}

/* Discussion actions */
.discussion-actions {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #e8e8ed;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid #d2d2d7;
  border-radius: 24px;
  background: #fff;
  color: #48484a;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.action-button:hover {
  background: #f8f9fa;
  border-color: #c0c0c5;
}

.action-icon {
  font-size: 16px;
}

.action-count {
  font-weight: 600;
  color: #1d1d1f;
}

.action-text {
  font-weight: 500;
}
/* RESPONSIVE DESIGN */

@media (max-width: 1024px) {
  .main-content {
    flex-direction: column;
    gap: 24px;
  }

  .sidebar {
    flex: 0 0 auto;
  }

  .sidebar-content {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .discussion-grid {
    grid-template-columns: 1fr;
  }

  .discussion-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .pagination-controls {
    flex-wrap: wrap;
  }

  .page-numbers {
    order: 1;
    width: 100%;
    justify-content: center;
    margin: 12px 0;
  }

  .editor-container {
    padding: 24px;
    margin: 0 16px;
  }

  .editor-title {
    font-size: 24px;
  }

  .editor-actions {
    flex-direction: column;
    gap: 12px;
  }

  .editor-actions .btn {
    width: 100%;
  }

  .post-title-input {
    font-size: 18px;
    padding: 14px;
  }

  .post-body-input {
    padding: 16px;
    min-height: 250px;
  }

  .post-main-content {
    padding: 0 16px;
  }

  .discussion-article {
    padding: 24px;
  }

  .discussion-article .discussion-title {
    font-size: 28px;
  }

  .discussion-article .discussion-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .comments-section {
    padding: 24px;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .action-button {
    width: 200px;
  }

  .comment-form .form-group {
    flex-direction: column;
  }

  .user-avatar {
    align-self: flex-start;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions .btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 20px 0;
  }

  .content-title {
    font-size: 24px;
  }

  .discussion-card {
    padding: 16px;
  }

  .editor-main {
    padding: 20px 0;
  }

  .editor-container {
    padding: 20px;
    border-radius: 12px;
  }

  .editor-header {
    margin-bottom: 24px;
  }

  .discussion-article .discussion-title {
    font-size: 24px;
  }

  .discussion-content {
    font-size: 16px;
  }

  .comments-title {
    font-size: 20px;
  }

  .comment {
    padding: 16px;
  }
}
