/* main.css */
.header {
    border-bottom: 1px solid var(--border-light1);
    position: sticky;
    top: 0;
    background-color: var(--white);
    z-index: 100;
  }
  
  /* .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  } */
  
  .logo {
    height: 80px;
  }
  
  .search-bar {
    flex: 1;
    max-width: 400px;
    position: relative;
  }
  
  .search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: var(--radius-md1);
    border: 1px solid var(--border-light1);
    font-size: 1rem;
    transition: all 0.2s ease;
  }
  
  .search-bar input:focus {
    outline: none;
    border-color: var(--primary1);
    box-shadow: 0 0 0 2px rgba(26, 137, 23, 0.1);
  }
  .search-bar svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }
  .nav-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  .nav-item {
    color: var(--text-primary1);
    text-decoration: none;
    font-weight: 400;
    font-size: 17.5px;
    transition: color 0.2s ease;
  }
  .nav-link:hover {
    color: var(--primary1);
  }
  .auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
  }
  .logout-btn {
    background: none;
    border: none;
    color: var(--text-secondary1);
    cursor: pointer;
    transition: color 0.2s ease;
  }
  .logout-btn:hover {
    color: var(--primary1);
  }
  .main-content {
    padding: 3rem 0;
  }
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary1);
  }
  /* Hero Section Styles */
 .hero-section {
    background-color: var(--white);
    padding: 5rem 0;
    /* text-align: center; */
    border-bottom: 1px solid var(--border-light1);
  }
  
  .hero-content {
    max-width: 100%;
    margin: 0;
  }

  
  .hero-section h1{
    font-size: 6.5rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: var(--text-primary1);
    letter-spacing: -3px;
  }
  
  #hero-content h1 {
    font-size: 5rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: var(--text-primary1);
    letter-spacing: -3px;
  }

  .hero-subtitle {
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--text-secondary1);
    margin-bottom: 2rem;
    line-height: 1.5;
  }
  
  .hero-cta {
    font-size: 1rem;
    padding: 0.5rem 1.4rem;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .hero-section {
      padding: 3rem 0;
    }
    
  }
  
  .content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-top: 3rem;
  }
  
  .post-card {
    background: var(--white);
    border-radius: var(--radius-md1);
    overflow: hidden;
    box-shadow: var(--shadow-sm1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-light1);
    padding: 1.5rem 0;
    transition: all 0.2s ease;
  }

  .post-link {
    display: block;
    text-decoration: none;
    color: inherit;
  }
  
  .post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md1);
    opacity: 0.9;
  }
  
  .post-card-content {
    padding: 1.5rem;
  }
  .post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary1);
  }
  .post-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
  }
  
  .post-author-name {
    font-weight: 500;
    margin-right: 8px;
    color: var(--text-primary1);
  }
  
  .post-date {
    color: var(--text-tertiary1);
  }
  .post-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }
  
  .post-card p {
    color: var(--text-secondary1);
    margin-bottom: 1rem;
  }
  .post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
  }
  
  .post-title a {
    color: inherit;
    text-decoration: none;
  }
  
  .post-title a:hover {
    text-decoration: underline;
  }
  
  .post-excerpt {
    color: var(--text-secondary1);
    margin: 0 0 1rem 0;
    line-height: 1.5;
    font-size: 1rem;
  }
  
  .post-stats {
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
  }
  
  .post-stats > span {
    margin-right: 1rem;
  }
  
  .post-stats > span:last-child {
    margin-right: 0;
  }
  .post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary1);
  }
  
  .post-card-author {
    font-weight: 500;
    color: var(--text-primary1);
  }
  
  .sidebar-section {
    margin-bottom: 2.5rem;
  }
  
  .sidebar-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary1);
  }
  
  .topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .topic-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--bg-light1);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary1);
    transition: all 0.2s ease;
  }
  
  .topic-tag:hover {
    background-color: #e0e0e0;
  }
  
  .footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-light1);
    margin-top: 3rem;
    background-color: white;
  }
  
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .footer-links {
    display: flex;
    gap: 1.5rem;
  }
  
  .footer-links a {
    color: var(--text-secondary1);
    font-size: 0.875rem;
  }
  
  .footer-links a:hover {
    color: var(--text-primary1);
  }
  
  .footer-copyright {
    font-size: 0.875rem;
    color: var(--text-secondary1);
  }
  
  /* Responsive styles */
  @media (max-width: 768px) {
    
    .search-bar {
      max-width: 100%;
      width: 100%;
    }
    
    .content-layout {
      grid-template-columns: 1fr;
    }
    
    .sidebar {
      order: -1;
      margin-bottom: 2rem;
    }
    .main-content {
      padding: 2rem 0;
    }
  }
  /* Auth pages */
.auth-page {
    background-color: var(--bg-light1);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }
  
  .auth-container {
    width: 100%;
    max-width: 450px;
  }
  
  .auth-card {
    background: var(--white);
    border-radius: var(--radius-md1);
    box-shadow: var(--shadow-md1);
    padding: 2.5rem;
    text-align: center;
  }
  
  .auth-header {
    margin-bottom: 2rem;
  }
  
  .auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  .auth-header p {
    color: var(--text-secondary1);
  }
  
  .auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
  }
  
  .form-group label {
    font-size: 0.875rem;
    font-weight: 500;
  }
  
  .form-group input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light1);
    border-radius: var(--radius-sm1);
    font-size: 1rem;
    transition: all 0.2s ease;
  }
  
  .form-group input:focus {
    outline: none;
    border-color: var(--primary1);
    box-shadow: 0 0 0 2px rgba(26, 137, 23, 0.1);
  }
  
  .forgot-password {
    font-size: 0.875rem;
    color: var(--text-secondary1);
    text-align: right;
  }
  
  .forgot-password:hover {
    color: var(--primary1);
  }
  
  .auth-footer {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary1);
  }
  
  .auth-footer a {
    color: var(--primary1);
    font-weight: 500;
  }
  
  .auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-secondary1);
    font-size: 0.875rem;
  }
  
  .auth-divider::before,
  .auth-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-light1);
  }
  
  .auth-divider span {
    padding: 0 1rem;
  }
  
  .social-auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .btn-outline1 {
    background: transparent;
    border: 1px solid var(--primary1);
    color: var(--primary1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm1);
    transition: all 0.2s ease;
  }
  
  .btn-outline1:hover {
    background: rgba(26, 137, 23, 0.1);
  }
  .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm1);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-light1);
    background: var(--white);
  }
  
  .social-btn:hover {
    background-color: var(--bg-light1);
  }
  
  .google-btn svg {
    color: #4285F4;
  }
  
  .twitter-btn svg {
    color: #1DA1F2;
  }
  /* Add to main.css */
.empty-state {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light1);
    border-radius: var(--radius-md1);
    margin: 2rem 0;
  }
  
  .empty-state .empty-icon {
    margin-bottom: 1rem;
    opacity: 0.5;
  }
  
  .empty-state h3 {
    margin-bottom: 0.5rem;
  }
  
  .empty-state p {
    color: var(--text-secondary1);
    margin-bottom: 1.5rem;
  }
  
  .story-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: var(--radius-md1) !important;
    box-shadow: var(--shadow-sm1);
    transition: all 0.2s ease;
  }
  
  .story-card:hover {
    box-shadow: var(--shadow-md1);
    transform: translateY(-1px);
  }
  
  .story-card.published {
    border-left: 4px solid var(--primary1);
  }
  
  .story-info {
    flex: 1;
  }
  
  .story-info a {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    text-decoration: none;
    color: inherit;
  }
  
  .story-actions {
    display: flex;
    gap: 0.5rem;
  }
  
  .error-message {
    text-align: center;
    padding: 2rem;
    background: #fff8f8;
    border-radius: var(--radius-md1);
    border: 1px solid #ffebee;
  }
  
  .error-message svg {
    margin-bottom: 1rem;
  }
  
  .error-message p {
    margin-bottom: 1rem;
    color: #c62828;
  }
  /* Post card styling */
.post-card {
  background: white;
  border-radius: var(--radius-md1);
  box-shadow: var(--shadow-sm1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 1.5rem;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md1);
}

/* .post-cover-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 1rem;
} */
.post-content-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}
.post-image {
  width: 210px;
  height: 150px;
  /* object-fit: cover; */
  border-radius: 8px;
}
 .post-image-wrapper {
  /* width: 200px;
  height: 10px; */
  flex-shrink: 0;
} 

.post-meta {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary1);
}

.post-author-name {
  font-weight: 500;
  color: var(--text-primary1);
}

.post-date {
  color: var(--text-tertiary);
}

.post-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.post-excerpt {
  color: var(--text-secondary1);
  margin: 0 0 1rem 0;
  line-height: 1.5;
  font-size: 1rem;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-more {
  font-size: 0.875rem;
  color: var(--primary1);
  font-weight: 500;
}

.post-stats {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* Hover effects */
.post-card:hover {
  opacity: 0.8;
}

.post-card:hover .read-more {
  text-decoration: underline;
}
.post-text-content {
  flex: 1;
  min-width: 0; /* Prevent text overflow */
}

.post-card-content {
  padding: 1.5rem;
}

.post-card-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--text-secondary1);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.post-card-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Editor improvements */
.ql-editor {
  font-size: 1.125rem;
  line-height: 1.8;
  padding: 1.5rem;
  min-height: 300px;
}

.ql-editor.ql-blank::before {
  color: var(--text-secondary1);
  font-style: normal;
  left: 1.5rem;
}

.char-counter {
  font-size: 0.875rem;
  color: var(--text-secondary1);
  text-align: right;
  margin-top: -1rem;
  margin-bottom: 1rem;
}
.char-counter {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: right;
}

.custom-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 24px;
  border-radius: 4px;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

.alert-success {
  background-color: #2ecc71;
}

.alert-error {
  background-color: #e74c3c;
}

.fade-out {
  animation: fadeOut 0.3s ease-in forwards;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

.post-preview, .story-preview {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--primary1);
  font-weight: 500;
  text-decoration: none;
}

/* Article page styles */
.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2, 
.article-content h3 {
  margin: 2rem 0 1rem;
}

/* =============== Base Responsive Styles =============== */
@media (max-width: 1200px) {
  .container {
    padding: 0 2rem;
  }
}

@media (max-width: 768px) {


  /* =============== Hero Section =============== */
  .hero-section .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    /* padding-top: 2rem; */
  }

  .hero-image {
    position: relative;
    max-width: 80%;
    float: right;
    margin-top: 2rem;
    visibility: hidden;
    display: none;
  }

  /* =============== Posts Grid =============== */
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
    margin-bottom: 2rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  /* =============== Auth Pages =============== */
  .auth-card {
    width: 100%;
    padding: 1.5rem;
  }

  /* =============== Dashboard =============== */
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }
}
.object-fit-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
@media (max-width: 480px) {
  .hero-image {
    position: relative !important;
    float: right;
    display: none;
    visibility: hidden;
  }
  /* =============== Post Cards =============== */
  .post-card {
    flex-direction: column;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  /* =============== Buttons =============== */
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  /* =============== Editor =============== */
  .editor-title {
    font-size: 1.8rem;
  }

  .ql-toolbar {
    flex-wrap: wrap;
  }

  .ql-formats {
    margin-bottom: 0.5rem;
  }
  #hero-content h1 {
    font-size: 3rem;
  }
}