/* ===================================
   ARTICLES STYLES
   =================================== */

:root {
  --article-primary: #8B5CF6;
  --article-secondary: #7C3AED;
  --article-accent: #6D28D9;
  --article-light: #F3E8FF;
  --article-bg: #FAFAFA;
  --articles-primary: #8B5CF6;
  --articles-secondary: #7C3AED;
  --articles-accent: #6D28D9;
  --articles-light: #F3E8FF;
  --articles-bg: #F8FAFC;
}

body.articles-page {
  background-color: var(--article-bg);
}

/* ===================================
   ARTICLE DETAIL PAGE (article_heb.html)
   =================================== */

/* Article Hero */
.article-hero {
  background: linear-gradient(135deg, var(--article-primary) 0%, var(--article-secondary) 100%);
  padding: 3rem 0;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 70%;
  height: 200%;
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(35deg);
}

.article-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 2rem;
}

.article-hero h1 {
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.3;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  flex-wrap: wrap;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Category Badge */
.category-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Main Container */
.article-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem 2rem;
}

/* Article Card */
.article-card {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  margin-bottom: 3rem;
}

/* Article Image */
.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 2rem auto;
  border-radius: 16px;
}

/* Article Content */
.article-content {
  color: #1e293b;
  font-size: 1.125rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #334155;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-right: 2rem;
}

.article-content li {
  margin-bottom: 0.75rem;
}

.article-content a {
  color: var(--article-primary);
  text-decoration: underline;
  font-weight: 500;
}

.article-content a:hover {
  color: var(--article-secondary);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
}

/* Like Button */
.like-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 2px solid #f1f5f9;
  margin-top: 3rem;
}

.like-button {
  background: white;
  border: 2px solid #e2e8f0;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #64748b;
}

.like-button:hover {
  border-color: #ef4444;
  color: #ef4444;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.like-button.liked {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  color: white;
}

.like-button.liked:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.heart-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.like-button:hover .heart-icon {
  transform: scale(1.2);
}

/* Related Articles */
.related-section {
  margin-top: 4rem;
}

.related-header {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.related-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--article-primary);
}

.related-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-content {
  padding: 1.5rem;
}

.related-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.related-excerpt {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===================================
   ARTICLES LIST PAGE (articles_heb.html)
   =================================== */

/* Hero Section */
.articles-hero {
  background: linear-gradient(135deg, var(--articles-primary) 0%, var(--articles-secondary) 100%);
  padding: 3rem 0;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.articles-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 70%;
  height: 200%;
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(35deg);
}

.articles-hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 2rem;
}

.articles-hero h1 {
  color: white;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.articles-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  line-height: 1.6;
}

/* Count Badge */
.articles-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  margin-top: 1.5rem;
}

.count-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--articles-primary);
}

.count-label {
  font-size: 1.125rem;
  color: #475569;
  font-weight: 500;
}

/* Main Container */
.articles-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 4rem 2rem;
}

/* Filter Section */
.articles-filter {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.filter-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-chip {
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  border: 2px solid #e2e8f0;
  background: white;
  color: #64748b;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.filter-chip:hover {
  border-color: var(--articles-primary);
  color: var(--articles-primary);
  transform: translateY(-1px);
}

.filter-chip.active {
  background: var(--articles-primary);
  color: white;
  border-color: var(--articles-primary);
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
}

/* Article Card in List */
.articles-list-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.articles-list-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--articles-primary);
}

.article-image-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--articles-primary) 0%, var(--articles-secondary) 100%);
}

.article-list-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Content wrapper for optimal reading width */
.article-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.articles-list-card:hover .article-list-image {
  transform: scale(1.05);
}

.article-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-category {
  display: inline-block;
  background: var(--articles-light);
  color: var(--articles-primary);
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-excerpt {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.article-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
  color: #94a3b8;
  font-size: 0.875rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.like-count {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #ef4444;
  font-weight: 600;
}

/* Empty State */
.articles-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #64748b;
  background: white;
  border-radius: 20px;
  border: 2px dashed #e2e8f0;
}

.articles-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.articles-empty h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

@media (max-width: 768px) {
  /* Article Detail Responsive */
  .article-hero h1 {
    font-size: 1.75rem;
  }

  .article-card {
    padding: 2rem 1.5rem;
  }

  .article-content {
    font-size: 1rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  /* Articles List Responsive */
  .articles-hero h1 {
    font-size: 2rem;
  }

  .articles-hero p {
    font-size: 1rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-card-body {
    padding: 1.5rem;
  }
}