/* Blog Styles */

/* Language Switcher - Consistent with main site */
.language-switcher {
  position: relative;
  display: inline-block;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-paper);
  border: 1px solid rgba(139, 111, 71, 0.2);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.language-btn:hover {
  background: var(--bg-warm);
  border-color: var(--accent-gold);
}

.lang-flag {
  font-size: 1.125rem;
  line-height: 1;
}

.lang-name {
  font-weight: 500;
}

.lang-arrow {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.language-btn[aria-expanded="true"] .lang-arrow {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  background: var(--bg-paper);
  border: 1px solid rgba(139, 111, 71, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.language-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  color: var(--text-primary);
  text-align: left;
}

.language-option:first-child {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.language-option:last-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.language-option:hover {
  background: rgba(255, 107, 53, 0.05);
}

.language-option.active {
  background: rgba(255, 107, 53, 0.1);
  font-weight: 600;
}

/* Blog Hero */
.blog-hero {
  padding: var(--spacing-3xl) 0 var(--spacing-2xl) 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(218, 165, 32, 0.08) 100%);
  text-align: center;
  border-bottom: 1px solid rgba(139, 111, 71, 0.15);
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(218, 165, 32, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-hero-content {
  position: relative;
  z-index: 1;
}

.blog-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

.blog-hero-subtitle {
  font-size: 1.375rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: var(--spacing-lg);
}

.blog-categories {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

.category-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: white;
  border: 2px solid rgba(139, 111, 71, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
  cursor: pointer;
}

.category-tag:hover {
  border-color: var(--accent-gold);
  background: rgba(218, 165, 32, 0.1);
  transform: translateY(-2px);
}

/* Featured Article */
.featured-article {
  padding: var(--spacing-2xl) 0;
}

.featured-badge {
  display: inline-block;
  background: var(--accent-gold);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
}

.article-card {
  background: var(--bg-paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(139, 111, 71, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.article-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
  border-color: var(--accent-gold);
}

.article-card.featured {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 0;
  min-height: 400px;
}

.article-image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(218, 165, 32, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  padding: var(--spacing-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-meta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.article-category {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
}

.article-date,
.article-read-time {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.article-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.01em;
}

.article-card.featured .article-title {
  font-size: 2.5rem;
  line-height: 1.25;
  margin-bottom: var(--spacing-lg);
}

.article-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.article-title a:hover {
  color: var(--primary);
}

.article-breadcrumb {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: var(--spacing-md);
  font-weight: 500;
}

.article-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.article-breadcrumb a:hover {
  color: var(--accent-gold);
}

.article-excerpt {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
  font-size: 1.0625rem;
}

.article-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.article-link:hover {
  gap: 0.75rem;
  color: var(--accent-gold);
}

/* Articles Grid */
.articles-section {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-warm);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-2xl);
}

.articles-grid .article-card {
  display: block;
}

.articles-grid .article-content {
  padding: var(--spacing-xl);
}

.articles-grid .article-title {
  font-size: 1.375rem;
}

/* Blog CTA */
.blog-cta {
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(135deg, #ff6b35 0%, #d4a574 100%);
  text-align: center;
}

.blog-cta .cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.blog-cta .cta-title {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: var(--spacing-sm);
}

.blog-cta .cta-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
}

/* Article Page Styles */
.article-header {
  padding: var(--spacing-2xl) 0 var(--spacing-xl) 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(218, 165, 32, 0.05) 100%);
  border-bottom: 1px solid rgba(139, 111, 71, 0.1);
}

.article-header-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.article-header .article-category {
  margin-bottom: var(--spacing-md);
}

.article-header h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.article-header .article-meta {
  justify-content: center;
  margin-top: var(--spacing-lg);
}

.article-body {
  padding: var(--spacing-2xl) 0;
}

.article-body-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-body-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
}

.article-body-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.article-body-content p {
  margin-bottom: var(--spacing-lg);
}

.article-body-content ul,
.article-body-content ol {
  margin-bottom: var(--spacing-lg);
  padding-left: var(--spacing-xl);
}

.article-body-content li {
  margin-bottom: var(--spacing-sm);
}

.article-body-content strong {
  color: var(--primary);
  font-weight: 600;
}

.article-body-content a {
  color: var(--primary);
  text-decoration: underline;
  transition: var(--transition);
}

.article-body-content a:hover {
  color: var(--accent-gold);
}

.article-body-content blockquote {
  border-left: 4px solid var(--accent-gold);
  padding-left: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  font-style: italic;
  color: var(--text-secondary);
  background: rgba(218, 165, 32, 0.05);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
}

.article-cta {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(218, 165, 32, 0.1) 100%);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  margin: var(--spacing-2xl) 0;
  border: 2px solid var(--accent-gold);
}

.article-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.article-cta p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

/* Responsive */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: var(--spacing-2xl) 0 var(--spacing-xl) 0;
  }

  .blog-hero-title {
    font-size: 2.25rem;
  }

  .blog-hero-subtitle {
    font-size: 1.125rem;
  }

  .blog-categories {
    gap: var(--spacing-sm);
  }

  .category-tag {
    font-size: 0.875rem;
    padding: 0.4rem 1rem;
  }

  .article-card.featured {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .article-image {
    min-height: 240px;
  }

  .article-content {
    padding: var(--spacing-xl);
  }

  .article-card.featured .article-title {
    font-size: 1.875rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .article-header h1 {
    font-size: 2rem;
  }

  .article-body-content {
    font-size: 1rem;
  }

  .article-body-content h2 {
    font-size: 1.5rem;
  }

  .language-switcher {
    position: static;
  }
  
  .language-dropdown {
    right: auto;
    left: 0;
  }
}
