/* Sumbird - Simplified Stylesheet */

/* Import minimal Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Import Persian Fonts */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* Design System */
:root {
  /* Colors - Complete color palette */
  /* Primary colors */
  --primary: #205EA6;                    /* Blue accent color */
  
  /* Text colors */
  --text: #1A1A1A;                      /* Primary text color */
  --text-light: #666666;                   /* Secondary/muted text */
  
  /* Background colors */
  --background: #FFFCF0;                /* Main page background (cream) */
  --background-white: white;            /* White background for elements */
  --background-hover: #F5F5F5;          /* Light gray hover state */
  --background-primary-hover: #E1ECEB;  /* Light blue hover state */
  
  /* Border colors */
  --border: #E5E5E5;                    /* Light gray borders */
  
  /* Spacing - Simple scale */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 2rem;      /* 32px */
  --space-lg: 3rem;      /* 48px */
  
  /* Typography - Simple scale */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.25rem;    /* 20px */
  --text-xl: 1.5rem;     /* 24px */
  
  /* Layout */
  --content-width: 48rem;
  --border-radius: 0.5rem;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
}

/* Layout Components */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Header Component */
.header {
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) 0;
}

.header-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.header-subtitle {
  color: var(--text-light);
  margin-top: var(--space-xs);
}

/* Main Content */
.main-content {
  padding: var(--space-md) 0;
}

/* Article Component */
article {
  margin-bottom: var(--space-lg);
}

article h1, .article-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-md);
}

article h1 a {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: text-decoration 0.2s;
}

article h1 a:hover {
  text-decoration: underline;
}

/* Prose Content */
.prose {
  color: var(--text);
  line-height: 1.7;
}

.prose h3 {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text);
  margin: var(--space-md) 0 var(--space-sm) 0;
}

.prose ul {
  margin: var(--space-sm) 0;
  padding-left: var(--space-md);
  list-style: disc;
}

.prose li {
  margin: var(--space-xs) 0;
  line-height: 1.7;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  text-decoration: none;
}

.prose strong {
  font-weight: 600;
  color: var(--text);
}

.prose em {
  font-style: italic;
  color: var(--text-light);
}

/* Divider Component */
.border-t {
  border-top: 1px solid var(--border);
  margin: var(--space-lg) 0;
}

/* Pagination Component */
.pagination-container {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.pagination-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.pagination-link {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.pagination-link:hover {
  background: var(--background-hover);
}

.pagination-link.current {
  background: var(--primary);
  color: var(--background-white);
}



.pagination-dots {
  color: var(--text-light);
  padding: 0 var(--space-xs);
}

/* Footer Component */
.footer {
  border-top: 1px solid var(--border);
  margin-top: var(--space-sm);
  padding: var(--space-sm) 0;
}

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

.footer-title {
  font-weight: 700;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
}

.footer-link {
  color: var(--text-light);
  text-decoration: none;
  transition: text-decoration 0.2s;
}

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

/* Utility Classes */

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --space-sm: 0.75rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .header-title {
    font-size: var(--text-lg);
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
  
  .pagination-links {
    gap: var(--space-xs);
  }
}

/* RTL Support for Farsi */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] body {
  font-family: 'Vazirmatn', 'Vazir', system-ui, -apple-system, sans-serif;
  direction: rtl;
}

[dir="rtl"] .header-content {
  text-align: right;
}

[dir="rtl"] .footer-content {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .footer-links {
  flex-direction: row-reverse;
}





/* Persian Typography */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 {
  font-weight: 700;
  line-height: 1.6;
}

[dir="rtl"] p, [dir="rtl"] li {
  line-height: 1.8;
}

/* Adjust margins for RTL */
[dir="rtl"] ul, [dir="rtl"] ol {
  margin-right: var(--space-md);
  margin-left: 0;
}

[dir="rtl"] blockquote {
  border-right: 4px solid var(--primary);
  border-left: none;
  margin-right: 0;
  margin-left: var(--space-md);
  padding-right: var(--space-md);
  padding-left: 0;
}