/* ============================================================
   ARTICLES PAGE — articles.css
   ============================================================ */

.art-hero {
  min-height: 270px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
  padding-bottom: 48px;
}
.art-hero-bg { position: absolute; inset: 0; z-index: 0; }
.art-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 36px;
}
.art-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 12px 0;
}
.art-hero-sub { color: var(--text-2); font-size: 1rem; }

/* ——— Main ——— */
.art-main { padding: 48px 0 100px; }

.art-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.art-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 9px 18px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--border);
  transition: var(--ease);
}
.filter-btn:hover { border-color: var(--border-hi); color: var(--text); }
.filter-btn.active {
  background: rgba(139, 92, 246, .16);
  border-color: var(--purple);
  color: var(--purple-lite);
}

.art-search {
  position: relative;
  min-width: 240px;
  flex: 0 1 300px;
}
.art-search i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: .85rem;
}
.art-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  outline: none;
  transition: var(--ease);
}
.art-search input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .12);
}

/* ——— Grid ——— */
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.art-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--ease);
}
.art-card-cover {
  margin: -24px -24px 18px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--bg-alt);
}
.art-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.art-card:hover .art-card-cover img { transform: scale(1.04); }
.art-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
}

.art-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.art-cat-pill {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 50px;
}
.cat-abroad  { background: rgba(139, 92, 246, .15); color: var(--purple-lite); border: 1px solid rgba(139, 92, 246, .28); }
.cat-finance { background: rgba(245, 158, 11, .15); color: var(--amber-lite);  border: 1px solid rgba(245, 158, 11, .28); }
.cat-tech    { background: rgba(34, 197, 94, .14);  color: var(--green);       border: 1px solid rgba(34, 197, 94, .25); }

.art-read-time { font-size: .75rem; color: var(--text-3); }

.art-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 12px;
}

.art-card-excerpt {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.art-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-3);
}
.art-read-more {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--purple-lite);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.art-card:hover .art-read-more { color: var(--purple); }

/* ——— Empty ——— */
.art-empty {
  text-align: center;
  padding: 72px 20px;
  color: var(--text-2);
}
.art-empty i { font-size: 2.5rem; color: var(--purple-lite); margin-bottom: 14px; display: block; }
.art-empty h3 { font-family: 'Outfit', sans-serif; color: var(--text); margin-bottom: 8px; }

/* ——— Reader Modal ——— */
.art-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.art-modal-overlay.open { opacity: 1; pointer-events: all; }

.art-modal-box {
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 36px 40px;
  position: relative;
}

.art-modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
}
.art-modal-close:hover { background: rgba(255, 255, 255, .18); color: var(--text); }

.art-modal-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.art-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 14px 0 10px;
}
.art-modal-meta { font-size: .83rem; color: var(--text-3); }

.art-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-2);
  font-size: .97rem;
  line-height: 1.8;
}
.art-modal-body h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  font-size: 1.18rem;
  margin-top: 8px;
}

.art-modal-cover {
  margin-bottom: 22px;
  border-radius: var(--r-md);
  overflow: hidden;
  max-height: 360px;
  border: 1px solid var(--border);
}
.art-modal-cover img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
}

.art-modal-links {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.art-modal-links h4 {
  font-family: 'Outfit', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--amber-lite);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.aff-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.aff-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  background: rgba(139, 92, 246, .12);
  border: 1px solid rgba(139, 92, 246, .3);
  color: var(--purple-lite);
  font-family: 'Outfit', sans-serif;
  font-size: .86rem;
  font-weight: 600;
  transition: var(--ease);
}
.aff-link-btn:hover {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

@media (max-width: 960px) {
  .art-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .art-grid { grid-template-columns: 1fr; }
  .art-modal-box { padding: 26px 22px; }
  .art-search { width: 100%; flex: 1 1 100%; }
}
