/* طراحی جدید article.css هماهنگ با main.css */

:root {
    --article-bg: var(--white);
    --article-text: var(--dark-color);
    --article-secondary: var(--gray-dark);
    --article-border: var(--gray-medium);
    --article-radius: var(--border-radius);
    --article-shadow: var(--box-shadow);
    --article-primary: var(--primary-color);
    --article-primary-hover: var(--primary-hover);
  }
  
  body {
    background-color: var(--light-color);
    color: var(--article-text);
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.8;
    direction: rtl;
    transition: var(--transition);
  }
  
  body.dark-mode {
    --article-bg: #1a1c22;
    --article-text: #e4e6eb;
    --article-secondary: #a1a6b0;
    --article-border: #2a2e39;
    background-color: #0f1115;
    color: var(--article-text);
  }
  
  /* هدر مقاله */
  .article-header {
    background: var(--article-bg);
    box-shadow: var(--article-shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--article-primary);
    font-weight: 500;
    transition: var(--transition);
  }
  .back-button:hover {
    color: var(--article-primary-hover);
  }
  
  .article-share a {
    color: var(--article-secondary);
    transition: var(--transition);
  }
  .article-share a:hover {
    color: var(--article-primary);
  }
  
  /* بدنه مقاله */
  .article-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
  }
  
  .article-content {
    background: var(--article-bg);
    border-radius: var(--article-radius);
    box-shadow: var(--article-shadow);
    overflow: hidden;
  }
  
  .article-meta-header {
    padding: 2rem;
    border-bottom: 1px solid var(--article-border);
  }
  
  .article-breadcrumb {
    font-size: 0.9rem;
    color: var(--article-secondary);
    margin-bottom: 1rem;
  }
  .article-breadcrumb a {
    color: var(--article-primary);
    transition: var(--transition);
  }
  .article-breadcrumb a:hover {
    color: var(--article-primary-hover);
  }

  .article-tags{
    height: fit-content;
  }
  
  .article-tags .tag {
    background-color: rgba(74, 111, 165, 0.1);
    color: var(--article-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
  }
  
  .article-title {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: var(--article-text);
  }
  
  .article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
  }
  .article-author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--article-border);
  }
  
  .author-name {
    font-weight: 600;
    color: var(--article-text);
  }
  
  .author-meta {
    font-size: 0.85rem;
    color: var(--article-secondary);
  }
  
  .article-featured-image img,
  .article-image img {
    width: 100%;
    border-radius: var(--article-radius);
    margin-top: 2rem;
    object-fit: cover;
    max-width: 50vw;
    margin: auto;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.24);
  }
  
  .article-featured-image figcaption,
  .article-image figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--article-secondary);
    margin-top: 0.5rem;
  }
  
  .article-body {
    padding: 2rem;
  }
  
  .article-section {
    margin-bottom: 3rem;
  }
  .article-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--article-text);
    border-bottom: 2px solid var(--article-primary);
    padding-bottom: 0.5rem;
  }
  
  .article-section p {
    margin-top: 1rem;
    color: var(--article-text);
    text-align: justify;
  }
  
  ul, ol {
    margin-top: 1rem;
    padding-right: 1.5rem;
  }
  
  ul li::marker {
    color: var(--article-primary);
  }
  
  /* بلوک کد */
  .code-block {
    background: #cedbf0;
    padding: 1.5rem;
    border-radius: var(--article-radius);
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    direction: ltr;
    
  }

  .code-block code{
    border-radius: 3px;
  }
  
  body.dark-mode .code-block {
    background: #1e1e28;
    color: #c3c7d1;
  }
  
  .code-block::before {
    content: attr(data-language);
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 0.75rem;
    color: var(--article-secondary);
  }
  
  .article-note {
    background-color: rgba(74, 111, 165, 0.1);
    border-right: 4px solid var(--article-primary);
    border-radius: var(--article-radius);
    padding: 1rem;
    margin: 2rem 0;
  }
  
  /* مقالات مرتبط */
  .related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
  }
  
  .related-card {
    flex: 1 1 300px;
    max-width: 350px;
    background: var(--article-bg);
    border-radius: var(--article-radius);
    box-shadow: var(--article-shadow);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 15px;
  }
  
  .related-card:hover {
    transform: translateY(-5px);
  }
  
  .related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  
  .related-card h3 {
    padding: 1rem;
    color: var(--article-text);
  }
  
  .related-meta {
    padding: 0 1rem 1rem;
    font-size: 0.85rem;
    color: var(--article-secondary);
  }
  
  /* استایل فوتر با لینک‌های افقی */
  .main-footer {
    background: linear-gradient(135deg, #2b2d42, #1a1a2e);
    color: #fff;
    padding: 40px 0 20px;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    padding-bottom: 30px;
  }
  
  .footer-brand {
    flex: 1;
    min-width: 250px;
  }
  
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
  }
  
  .footer-logo i {
    color: #4a6fa5;
  }
  
  .footer-motto {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
  }
  
  /* لینک‌های افقی */
  .footer-links-horizontal {
    flex: 2;
    display: flex;
    gap: 40px;
    min-width: 300px;
  }
  
  .links-group {
    flex: 1;
  }
  
  .links-group h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
  }
  
  .links-group h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: #4a6fa5;
  }
  
  .links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .links-group li {
    margin: 0;
  }
  
  .links-group a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
  }
  
  .links-group a:hover {
    color: white;
    transform: translateX(-5px);
  }
  
  /* بخش تماس */
  .footer-contact {
    flex: 1;
    min-width: 200px;
  }
  
  .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
  }
  
  .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: #4a6fa5;
  }
  
  .contact-info {
    list-style: none;
  }
  
  .contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
  }
  
  .contact-info i {
    color: #4a6fa5;
    width: 20px;
    text-align: center;
  }
  
  /* بخش پایینی فوتر */
  .main-footer{
    background: linear-gradient(135deg, #2b2d42, #1a1a2e);
  }
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }
  
  .copyright {
    font-size: 0.9rem;
    opacity: 0.7;
  }
  
  .footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    transition: all 0.3s ease;
  }
  
  .footer-legal a:hover {
    color: white;
  }
  
  .footer-legal span {
    opacity: 0.5;
  }
  
  /* حالت تیره */
  .dark-mode .main-footer {
    background: linear-gradient(135deg, #2b2d42, #1a1a2e);
  }
  
  /* رسپانسیو */
  @media (max-width: 768px) {
    .footer-links-horizontal {
      flex-direction: column;
      gap: 20px;
    }
    
    .footer-top {
      gap: 30px;
    }
  }
  
  @media (max-width: 480px) {
    .footer-bottom {
      flex-direction: column;
      text-align: center;
    }
  }

.article-resources{
  margin-right: 30px;
  padding-bottom: 20px;
}

.article-resources li:hover{
  color: #4a6fa5;
}

.related-title{
  margin-right: 30px;
  padding-top: 30px;
}

.no-courses {
  text-align: center;
  padding: 40px;
  grid-column: 1 / -1;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

body.dark-mode .no-courses {
  background-color: #1f2229;
}

.no-courses i {
  font-size: 3rem;
  color: var(--gray-medium);
  margin-bottom: 20px;
}

.no-courses p {
  color: var(--gray-dark);
  font-size: 1.1rem;
}

