/* ==========================================================================
   AV. BÜŞRA TEKİN HUKUK & DANIŞMANLIK
   Hukuki Makaleler ve Yayınlar Arayüzü (articles.css)
   ========================================================================== */

/* 1. Makaleler Toolbar & Filtreler */
.articles-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  padding: 16px 22px;
  background: var(--clg-bg-main, #f7f9fa);
  border: 1px solid var(--clg-border-light, rgba(23, 42, 51, 0.08));
  border-radius: var(--radius-xs, 4px);
  box-shadow: var(--clg-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.04));
}

.article-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.article-filter-btn {
  background: #ffffff;
  border: 1px solid var(--clg-border-medium, rgba(23, 42, 51, 0.15));
  color: var(--clg-text-body, #2b3b44);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-xs, 4px);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-filter-btn:hover {
  border-color: var(--clg-navy, #305768);
  color: var(--clg-navy, #305768);
  transform: translateY(-1px);
}

.article-filter-btn.active {
  background: var(--clg-navy-dark, #172a33);
  border-color: var(--clg-navy-dark, #172a33);
  color: var(--clg-gold, #feda6a);
  box-shadow: 0 4px 12px rgba(23, 42, 51, 0.18);
}

.article-search-box {
  position: relative;
  min-width: 280px;
  flex-grow: 1;
  max-width: 380px;
}

.article-search-input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  font-size: 0.88rem;
  border: 1px solid var(--clg-border-medium, rgba(23, 42, 51, 0.15));
  border-radius: var(--radius-xs, 4px);
  background: #ffffff;
  color: var(--clg-navy-dark, #172a33);
  transition: all 0.2s ease;
}

.article-search-input:focus {
  outline: none;
  border-color: var(--clg-navy, #305768);
  box-shadow: 0 0 0 3px rgba(48, 87, 104, 0.14);
}

.article-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clg-text-muted, #5f7480);
  pointer-events: none;
}

/* 2. Makale Kartları Izgarası */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 680px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .articles-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .article-search-box {
    max-width: 100%;
    min-width: 100%;
  }
}

/* 3. Makale Kartı */
.article-card {
  background: #ffffff;
  border: 1px solid var(--clg-border-light, rgba(23, 42, 51, 0.08));
  border-radius: var(--radius-xs, 4px);
  box-shadow: var(--clg-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.04));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--clg-gold, #feda6a);
  transition: width 0.35s ease;
  z-index: 2;
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: var(--clg-border-medium, rgba(23, 42, 51, 0.18));
  box-shadow: 0 14px 34px rgba(23, 42, 51, 0.12);
}

.article-card:hover::before {
  width: 100%;
/* 2.5 Makale Kapak Görseli (16:9 Thumbnail) */
.article-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--clg-navy-dark, #172a33);
}

.article-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.article-card:hover .article-card-thumb {
  transform: scale(1.06);
  filter: brightness(1.03);
}

.article-card-thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(23, 42, 51, 0.15) 0%, rgba(23, 42, 51, 0.5) 100%);
  pointer-events: none;
}

.article-card-header {
  padding: 18px 24px 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  background: rgba(254, 218, 106, 0.22);
  color: var(--clg-navy-dark, #172a33);
  border: 1px solid rgba(197, 155, 39, 0.45);
  border-radius: 2px;
}

.article-card-date {
  font-size: 0.78rem;
  color: var(--clg-text-muted, #5f7480);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-card-body {
  padding: 0 24px 18px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--clg-navy-dark, #172a33);
  line-height: 1.42;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.article-card:hover .article-card-title {
  color: var(--clg-navy, #305768);
}

.article-card-excerpt {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--clg-text-body, #2b3b44);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.article-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.article-card-tag {
  font-size: 0.72rem;
  color: var(--clg-text-muted, #5f7480);
  background: rgba(23, 42, 51, 0.04);
  padding: 2px 7px;
  border-radius: 2px;
}

.article-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--clg-border-light, rgba(23, 42, 51, 0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 249, 250, 0.5);
}

.article-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--clg-text-muted, #5f7480);
}

.article-read-btn {
  background: transparent;
  border: none;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--clg-navy, #305768);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.article-card:hover .article-read-btn {
  color: var(--clg-gold-dark, #c59b27);
  transform: translateX(4px);
}

/* 4. Makale Okuma Modalı (Full Reader View) */
.article-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14, 26, 32, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.article-modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.25s ease forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.article-modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  border-radius: var(--radius-xs, 4px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
  from { transform: translateY(24px) scale(0.98); }
  to { transform: translateY(0) scale(1); }
}

.article-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--clg-navy-dark, #172a33);
  color: #ffffff;
  border-bottom: 2px solid var(--clg-gold, #feda6a);
  flex-shrink: 0;
}

.article-modal-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-modal-author-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-modal-author-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--clg-gold, #feda6a);
}

.article-modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs, 4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.article-modal-close-btn:hover {
  background: rgba(254, 218, 106, 0.25);
  border-color: var(--clg-gold, #feda6a);
  color: var(--clg-gold, #feda6a);
}

.article-modal-scroll {
  padding: 40px 48px;
  overflow-y: auto;
  line-height: 1.8;
  color: var(--clg-navy-dark, #172a33);
}

@media (max-width: 768px) {
  .article-modal-scroll {
    padding: 24px 20px;
  }
}

.article-modal-cover-wrap {
  width: 100%;
  height: 320px;
  max-height: 42vh;
  border-radius: var(--radius-xs, 4px);
  overflow: hidden;
  margin-bottom: 26px;
  position: relative;
  background: var(--clg-navy-dark, #172a33);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.article-modal-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-modal-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--clg-border-light, rgba(23, 42, 51, 0.08));
  padding-bottom: 24px;
}

.article-modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 0.84rem;
  color: var(--clg-text-muted, #5f7480);
}

.article-modal-title {
  font-size: 1.85rem;
  line-height: 1.35;
  color: var(--clg-navy-dark, #172a33);
  margin-bottom: 16px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .article-modal-title {
    font-size: 1.4rem;
  }
}

/* Makale Metin Tipografisi */
.article-modal-content {
  font-size: 1.02rem;
  color: var(--clg-text-body, #2b3b44);
}

.article-modal-content p {
  margin-bottom: 18px;
}

.article-modal-content p.article-lead {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--clg-navy-dark, #172a33);
  padding-left: 18px;
  border-left: 3px solid var(--clg-gold, #feda6a);
  margin-bottom: 26px;
}

.article-modal-content h3 {
  font-size: 1.35rem;
  color: var(--clg-navy-dark, #172a33);
  margin: 32px 0 14px 0;
  font-weight: 700;
}

.article-modal-content ul,
.article-modal-content ol {
  margin: 16px 0 22px 24px;
}

.article-modal-content li {
  margin-bottom: 10px;
}

.article-modal-content blockquote {
  margin: 26px 0;
  padding: 18px 24px;
  background: var(--clg-bg-main, #f7f9fa);
  border-left: 4px solid var(--clg-navy, #305768);
  border-radius: 0 var(--radius-xs, 4px) var(--radius-xs, 4px) 0;
  font-style: italic;
  color: var(--clg-navy-dark, #172a33);
  font-weight: 500;
}

.article-law-note {
  margin: 30px 0;
  padding: 18px 22px;
  background: rgba(254, 218, 106, 0.15);
  border: 1px solid rgba(197, 155, 39, 0.35);
  border-radius: var(--radius-xs, 4px);
  font-size: 0.94rem;
  color: var(--clg-navy-dark, #172a33);
  line-height: 1.65;
}

/* Yazar Profil Kartı (Modal İçinde) */
.article-author-card {
  margin-top: 40px;
  padding: 24px;
  background: var(--clg-bg-main, #f7f9fa);
  border: 1px solid var(--clg-border-light, rgba(23, 42, 51, 0.08));
  border-radius: var(--radius-xs, 4px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.article-author-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-author-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--clg-gold, #feda6a);
}

.article-author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clg-navy-dark, #172a33);
  margin-bottom: 4px;
}

.article-author-badge {
  font-size: 0.82rem;
  color: var(--clg-text-muted, #5f7480);
}

.article-share-bar {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--clg-border-light, rgba(23, 42, 51, 0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.article-share-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.article-share-btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--clg-border-medium, rgba(23, 42, 51, 0.15));
  border-radius: var(--radius-xs, 4px);
  background: #ffffff;
  color: var(--clg-navy-dark, #172a33);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.article-share-btn:hover {
  background: var(--clg-navy-dark, #172a33);
  color: #ffffff;
  border-color: var(--clg-navy-dark, #172a33);
}

/* Ana Sayfa Öne Çıkan Makaleler Bölümü */
.featured-articles-section {
  padding: 85px 0;
  background: #ffffff;
  position: relative;
}

.featured-articles-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}


/* ==================== ARTICLES DARK THEME ==================== */
[data-theme="dark"] .articles-page-main {
  background-color: #0b131a !important;
}
[data-theme="dark"] .article-card {
  background-color: #121d27 !important;
  border-color: #203244 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}
[data-theme="dark"] .article-card:hover {
  border-color: #2d455d !important;
}
[data-theme="dark"] .article-card-title {
  color: #f1f5f9 !important;
}
[data-theme="dark"] .article-card-excerpt {
  color: #94a3b8 !important;
}
[data-theme="dark"] .article-card-header,
[data-theme="dark"] .article-card-footer {
  border-color: #1a2733 !important;
  background: transparent !important;
}
[data-theme="dark"] .article-card-date,
[data-theme="dark"] .article-meta-left {
  color: #94a3b8 !important;
}
[data-theme="dark"] .article-filter-btn {
  background: #121d27 !important;
  border-color: #203244 !important;
  color: #cbd5e1 !important;
}
[data-theme="dark"] .article-filter-btn:hover {
  border-color: var(--clg-gold) !important;
  color: var(--clg-gold) !important;
}
[data-theme="dark"] .article-filter-btn.active {
  background: #305768 !important;
  border-color: #305768 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .article-search-input {
  background: #0f1922 !important;
  border-color: #203244 !important;
  color: #f1f5f9 !important;
}
[data-theme="dark"] .article-modal-card {
  background: #121d27 !important;
  border-color: #203244 !important;
  color: #cbd5e1 !important;
}
[data-theme="dark"] .article-modal-title {
  color: #f1f5f9 !important;
}
[data-theme="dark"] .article-modal-content {
  color: #cbd5e1 !important;
}
[data-theme="dark"] .article-share-btn {
  background: #172431 !important;
  border-color: #243647 !important;
  color: #cbd5e1 !important;
}
