/* ============================================================
   ARTICOLE — Modern editorial layout
   Linear/Stripe/Vercel-aesthetic, brand-aligned
   Foloseste tokens si convenții din modern.css
============================================================ */

/* Bază layout */
.mdn .art-mdn-hero,
.mdn .art-mdn-news,
.mdn .art-mdn-featured,
.mdn .art-mdn-list,
.mdn .art-mdn-cta{
  font-family:'Plus Jakarta Sans','Inter',system-ui,sans-serif;
}

/* ============================================================
   HERO
============================================================ */
.art-mdn-hero{
  padding:8.5rem 0 3.5rem;position:relative;overflow:hidden;
  background:#FBFBF9;
}
.art-mdn-hero-mesh{
  position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(700px circle at 8% 0%,rgba(201,169,97,.18) 0%,transparent 55%),
    radial-gradient(900px circle at 92% 30%,rgba(74,111,165,.10) 0%,transparent 50%),
    radial-gradient(500px circle at 50% 100%,rgba(255,241,237,.5) 0%,transparent 55%);
}
.art-mdn-hero-inner{position:relative;z-index:2;max-width:880px}
.art-mdn-hero-inner .eyebrow{margin-bottom:1.2rem}
.art-mdn-hero-inner h1{
  font-size:clamp(2.6rem,6.5vw,5rem);
  letter-spacing:-.035em;font-weight:600;line-height:1;
  color:#0A1424;margin:0 0 1.3rem;
}
.art-mdn-hero-inner h1 .accent{position:relative;display:inline-block;color:#C9A961}
.art-mdn-hero-inner h1 .accent::after{
  content:"";position:absolute;left:0;right:0;bottom:0.07em;height:.18em;
  background:#C9A961;opacity:.22;border-radius:4px;z-index:-1;
}
.art-mdn-hero-sub{
  font-size:clamp(1.05rem,1.4vw,1.18rem);color:#5A6478;
  max-width:640px;line-height:1.6;margin:0 0 2rem;
}

.art-mdn-hero-meta{
  display:flex;align-items:center;gap:1.2rem;flex-wrap:wrap;
  margin-bottom:2rem;font-size:.92rem;color:#5A6478;
}
.art-mdn-hero-stat strong{color:#1B2E5C;font-weight:700;margin-right:.25rem}
.art-mdn-hero-divider{
  width:1px;height:14px;background:#E8E6E0;display:inline-block;
}

.art-mdn-filters{
  display:flex;flex-wrap:wrap;gap:.55rem;
  padding-top:1.5rem;border-top:1px solid #E8E6E0;
  margin-top:1rem;
}
.art-mdn-filter{
  display:inline-flex;align-items:center;gap:.45rem;
  font-size:.85rem;font-weight:500;color:#5A6478;
  background:#fff;padding:.5rem 1rem;border-radius:999px;
  border:1px solid #E8E6E0;text-decoration:none;
  transition:all .25s cubic-bezier(.16,1,.3,1);
}
.art-mdn-filter:hover{
  border-color:#1B2E5C;color:#1B2E5C;
  transform:translateY(-1px);
  box-shadow:0 2px 8px rgba(10,20,36,.05);
}
.art-mdn-filter.active{
  background:#1B2E5C;color:#fff;border-color:#1B2E5C;font-weight:600;
}
.art-mdn-filter.active:hover{background:#0F1C3C;color:#fff}

/* ============================================================
   NEWSLETTER BAND
============================================================ */
.art-mdn-news{padding:1rem 0 3.5rem;background:#FBFBF9}
.art-mdn-news-card{
  background:linear-gradient(135deg,#1B2E5C 0%,#0F1C3C 100%);
  color:#fff;border-radius:24px;padding:2.5rem 2.8rem;
  display:grid;grid-template-columns:auto 1fr auto;gap:2rem;
  align-items:center;position:relative;overflow:hidden;
  box-shadow:0 10px 40px rgba(10,20,36,.12),0 4px 12px rgba(10,20,36,.06);
}
.art-mdn-news-card::before{
  content:"";position:absolute;top:-50%;right:-10%;width:60%;aspect-ratio:1;
  background:radial-gradient(circle,rgba(201,169,97,.22),transparent 60%);
  pointer-events:none;
}
.art-mdn-news-icon{
  width:64px;height:64px;border-radius:18px;
  background:rgba(201,169,97,.22);color:#C9A961;
  display:grid;place-items:center;flex-shrink:0;
  position:relative;z-index:2;
}
.art-mdn-news-icon svg{width:28px;height:28px}
.art-mdn-news-body{position:relative;z-index:2}
.art-mdn-news-eyebrow{
  display:inline-block;font-size:.75rem;font-weight:600;
  color:#C9A961;letter-spacing:.06em;text-transform:uppercase;
  margin-bottom:.55rem;
}
.art-mdn-news-body h2{
  color:#fff;font-size:clamp(1.4rem,2.4vw,1.85rem);
  margin:0 0 .5rem;font-weight:600;letter-spacing:-.02em;line-height:1.15;
}
.art-mdn-news-body h2 .accent{color:#C9A961}
.art-mdn-news-body p{
  color:rgba(255,255,255,.75);font-size:.94rem;
  margin:0;max-width:480px;line-height:1.55;
}
.art-mdn-news-form{position:relative;z-index:2;display:flex;flex-direction:column;gap:.6rem;align-items:flex-end}
.art-mdn-news-pill{
  display:flex;align-items:center;gap:.7rem;
  background:#fff;border-radius:999px;
  padding:.35rem .35rem .35rem 1.2rem;
  min-width:380px;border:1px solid rgba(255,255,255,.1);
  box-shadow:0 4px 12px rgba(10,20,36,.18);
}
.art-mdn-news-pill svg{width:18px;height:18px;color:#8893A4;flex-shrink:0}
.art-mdn-news-pill input{
  flex:1;border:0;background:transparent;
  font-size:.94rem;font-family:inherit;color:#0A1424;outline:none;
  padding:.5rem 0;
}
.art-mdn-news-pill input::placeholder{color:#8893A4}
.art-mdn-news-pill button{
  background:#C9A961;color:#0A1424;border:0;border-radius:999px;
  padding:.7rem 1.3rem;font-size:.86rem;font-weight:700;cursor:pointer;
  font-family:inherit;display:inline-flex;align-items:center;gap:.4rem;
  transition:all .25s cubic-bezier(.16,1,.3,1);letter-spacing:-.005em;
  white-space:nowrap;
}
.art-mdn-news-pill button:hover{background:#fff;color:#1B2E5C;transform:translateX(2px)}
.art-mdn-news-pill button svg{color:currentColor;width:14px;height:14px}
.art-mdn-news-form small{
  font-size:.76rem;color:rgba(255,255,255,.55);
  display:flex;align-items:center;gap:.4rem;
}

/* ============================================================
   FEATURED ARTICLE
============================================================ */
.art-mdn-featured{padding:1rem 0 4rem;background:#FBFBF9;scroll-margin-top:6rem}
.art-mdn-featured-head{
  display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:1rem;margin-bottom:1.8rem;
}
.art-mdn-featured-date{
  font-size:.85rem;color:#5A6478;font-weight:500;
}

.art-mdn-featured-card{
  display:grid;grid-template-columns:1.1fr 1fr;gap:0;
  background:#fff;border-radius:24px;overflow:hidden;
  border:1px solid #E8E6E0;text-decoration:none;color:inherit;
  box-shadow:0 4px 16px rgba(10,20,36,.06),0 2px 4px rgba(10,20,36,.04);
  transition:transform .35s cubic-bezier(.16,1,.3,1),
             box-shadow .35s cubic-bezier(.16,1,.3,1),
             border-color .25s;
  position:relative;
}
.art-mdn-featured-card:hover{
  transform:translate3d(0,-4px,0);
  box-shadow:0 16px 48px rgba(10,20,36,.12),0 6px 16px rgba(10,20,36,.07);
  border-color:transparent;
}
.art-mdn-featured-img{
  position:relative;background:#F0EEEA;overflow:hidden;min-height:420px;
}
.art-mdn-featured-img img{
  width:100%;height:100%;object-fit:cover;object-position:center 20%;
  position:absolute;inset:0;
  transition:transform .55s cubic-bezier(.16,1,.3,1);
}
.art-mdn-featured-card:hover .art-mdn-featured-img img{transform:scale(1.04)}
.art-mdn-featured-badge{
  position:absolute;top:1.4rem;left:1.4rem;z-index:2;
  display:inline-flex;align-items:center;gap:.4rem;
  font-size:.78rem;font-weight:700;letter-spacing:-.005em;
  padding:.4rem .85rem;border-radius:999px;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
}

.art-mdn-featured-body{
  padding:2.6rem 2.8rem;display:flex;flex-direction:column;
  justify-content:center;gap:1rem;
}
.art-mdn-featured-pretitle{
  display:inline-flex;align-items:center;gap:.6rem;
  font-size:.78rem;font-weight:600;color:#8893A4;
  letter-spacing:.04em;text-transform:uppercase;
}
.art-mdn-featured-pretitle .dot{
  width:4px;height:4px;border-radius:50%;background:#C9A961;
}
.art-mdn-featured-body h2{
  font-size:clamp(1.6rem,2.6vw,2.2rem);
  font-weight:600;line-height:1.15;letter-spacing:-.025em;
  color:#0A1424;margin:0;
}
.art-mdn-featured-body p{
  font-size:1.02rem;color:#5A6478;line-height:1.6;margin:0;
}

.art-mdn-featured-author{
  display:flex;align-items:center;gap:.8rem;
  padding-top:.8rem;
}
.art-mdn-featured-avatar{
  width:48px;height:48px;border-radius:50%;
  background-size:cover;background-position:center 20%;
  flex-shrink:0;border:2px solid #fff;
  box-shadow:0 2px 6px rgba(10,20,36,.1);
}
.art-mdn-featured-author strong{
  display:block;font-size:.94rem;color:#0A1424;font-weight:600;
  line-height:1.2;
}
.art-mdn-featured-author small{
  display:block;font-size:.8rem;color:#5A6478;margin-top:.15rem;
}
.art-mdn-featured-link{
  display:inline-flex;align-items:center;gap:.5rem;
  margin-top:.4rem;color:#1B2E5C;font-weight:600;font-size:.94rem;
  transition:gap .25s,color .25s;
}
.art-mdn-featured-card:hover .art-mdn-featured-link{gap:.8rem;color:#C9A961}

/* ============================================================
   ARTICLES GRID
============================================================ */
.art-mdn-list{padding:3rem 0 5rem;background:#fff;border-top:1px solid #F0EEEA}
.art-mdn-list-head{
  display:grid;grid-template-columns:1fr 1fr;gap:3rem;
  align-items:end;margin-bottom:3rem;
}
.art-mdn-list-head .eyebrow{margin-bottom:1rem}
.art-mdn-list-head h2{
  font-size:clamp(1.8rem,3.6vw,2.8rem);
  font-weight:600;line-height:1.1;letter-spacing:-.03em;
  margin:0;color:#0A1424;
}
.art-mdn-list-head h2 .accent{color:#C9A961}
.art-mdn-list-head>p{
  font-size:1rem;color:#5A6478;max-width:420px;
  margin:0;line-height:1.55;justify-self:end;
}

.art-mdn-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;
}

.art-mdn-card{
  background:#fff;border:1px solid #E8E6E0;border-radius:20px;
  overflow:hidden;text-decoration:none;color:inherit;
  display:flex;flex-direction:column;
  box-shadow:0 1px 3px rgba(10,20,36,.04),0 1px 2px rgba(10,20,36,.06);
  transition:transform .35s cubic-bezier(.16,1,.3,1),
             box-shadow .35s cubic-bezier(.16,1,.3,1),
             border-color .25s;
  scroll-margin-top:6rem;
  contain:layout style;
}
.art-mdn-card:hover{
  transform:translate3d(0,-4px,0);
  box-shadow:0 12px 32px rgba(10,20,36,.1),0 4px 10px rgba(10,20,36,.05);
  border-color:transparent;
}

.art-mdn-card-img{
  aspect-ratio:16/10;position:relative;overflow:hidden;background:#F0EEEA;
}
.art-mdn-card-img img{
  width:100%;height:100%;object-fit:cover;object-position:center 20%;
  transition:transform .5s cubic-bezier(.16,1,.3,1);
}
.art-mdn-card:hover .art-mdn-card-img img{transform:scale(1.04)}
.art-mdn-card-badge{
  position:absolute;top:1rem;left:1rem;z-index:2;
  display:inline-flex;align-items:center;gap:.35rem;
  font-size:.74rem;font-weight:700;letter-spacing:-.005em;
  padding:.35rem .75rem;border-radius:999px;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
}

.art-mdn-card-body{
  padding:1.4rem 1.5rem 1.5rem;
  display:flex;flex-direction:column;flex:1;gap:.7rem;
}
.art-mdn-card-meta{
  display:flex;align-items:center;gap:.6rem;
  font-size:.78rem;color:#8893A4;font-weight:500;
  letter-spacing:-.005em;
}
.art-mdn-card-meta .dot{
  width:3px;height:3px;border-radius:50%;background:#C9A961;
}
.art-mdn-card-body h3{
  font-size:1.12rem;font-weight:600;line-height:1.25;
  letter-spacing:-.018em;color:#0A1424;margin:0;
}
.art-mdn-card-body p{
  font-size:.9rem;color:#5A6478;line-height:1.55;
  margin:0;flex:1;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;
  overflow:hidden;
}

.art-mdn-card-footer{
  display:flex;justify-content:space-between;align-items:center;gap:.8rem;
  margin-top:.4rem;padding-top:1rem;border-top:1px solid #F0EEEA;
}
.art-mdn-card-author{
  display:flex;align-items:center;gap:.55rem;min-width:0;
}
.art-mdn-card-avatar{
  width:30px;height:30px;border-radius:50%;flex-shrink:0;
  background-size:cover;background-position:center 20%;
  border:2px solid #fff;box-shadow:0 1px 3px rgba(10,20,36,.1);
}
.art-mdn-card-author small{
  font-size:.78rem;color:#5A6478;font-weight:500;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.art-mdn-card-link{
  display:inline-flex;align-items:center;gap:.35rem;
  font-size:.84rem;font-weight:600;color:#1B2E5C;
  transition:gap .25s,color .25s;white-space:nowrap;
}
.art-mdn-card:hover .art-mdn-card-link{gap:.6rem;color:#C9A961}

/* ============================================================
   CATEGORY BADGES (color tints, navy text)
============================================================ */
.art-mdn-featured-badge,
.art-mdn-card-badge{
  color:#0A1424;background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.6);
}
.art-mdn-featured-badge.cat-coloana,
.art-mdn-card-badge.cat-coloana{
  background:rgba(201,169,97,.94);color:#0A1424;
}
.art-mdn-featured-badge.cat-sold,
.art-mdn-card-badge.cat-sold{
  background:rgba(232,245,240,.95);color:#1B2E5C;
}
.art-mdn-featured-badge.cat-genunchi,
.art-mdn-card-badge.cat-genunchi{
  background:rgba(255,241,237,.95);color:#1B2E5C;
}
.art-mdn-featured-badge.cat-mana,
.art-mdn-card-badge.cat-mana{
  background:rgba(228,207,152,.95);color:#0A1424;
}
.art-mdn-featured-badge.cat-umar,
.art-mdn-card-badge.cat-umar{
  background:rgba(74,111,165,.94);color:#fff;
}
.art-mdn-featured-badge.cat-pediatric,
.art-mdn-card-badge.cat-pediatric{
  background:rgba(255,241,237,.95);color:#1B2E5C;
}

/* ============================================================
   PAGINATION
============================================================ */
.art-mdn-pagination{
  display:flex;justify-content:center;align-items:center;
  gap:.8rem;margin-top:3rem;flex-wrap:wrap;
}
.art-mdn-page-btn{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.65rem 1.2rem;font-size:.86rem;font-weight:600;
  background:#fff;color:#1B2E5C;border:1px solid #E8E6E0;
  border-radius:999px;text-decoration:none;
  transition:all .25s cubic-bezier(.16,1,.3,1);
}
.art-mdn-page-btn:hover{
  border-color:#1B2E5C;transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(10,20,36,.06);
}
.art-mdn-page-btn.art-mdn-page-disabled{
  opacity:.45;pointer-events:none;cursor:not-allowed;
}
.art-mdn-page-nums{display:flex;align-items:center;gap:.25rem;margin:0 .5rem}
.art-mdn-page-num{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:38px;height:38px;padding:0 .5rem;
  font-size:.88rem;font-weight:600;color:#5A6478;
  background:transparent;border-radius:10px;text-decoration:none;
  transition:all .2s;
}
.art-mdn-page-num:hover{background:#F0EEEA;color:#1B2E5C}
.art-mdn-page-num.active{
  background:#1B2E5C;color:#fff;
  box-shadow:0 2px 8px rgba(27,46,92,.2);
}
.art-mdn-page-dots{
  color:#8893A4;font-weight:600;padding:0 .25rem;user-select:none;
}

/* ============================================================
   FINAL CTA tweaks (uses .mdn-cta from modern.css)
============================================================ */
.art-mdn-cta{padding:5rem 0 6rem !important}
.art-mdn-cta h2{font-size:clamp(2rem,4.4vw,3.5rem) !important;margin:1.2rem 0 1.2rem !important}

/* ============================================================
   REVEAL — Use modern.css convention .mdn-fade
============================================================ */
.mdn-fade{opacity:1;transform:none}
.js-ready .mdn-fade{
  opacity:0;transform:translateY(20px);
  transition:opacity .7s cubic-bezier(.16,1,.3,1),
             transform .7s cubic-bezier(.16,1,.3,1);
}
.js-ready .mdn-fade.visible{opacity:1;transform:none}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width:1024px){
  .art-mdn-hero{padding:7rem 0 3rem}
  .art-mdn-featured-card{grid-template-columns:1fr;gap:0}
  .art-mdn-featured-img{min-height:280px;aspect-ratio:16/9}
  .art-mdn-featured-body{padding:2rem 1.8rem 2.2rem}
  .art-mdn-grid{grid-template-columns:repeat(2,1fr);gap:1.2rem}
  .art-mdn-list-head{grid-template-columns:1fr;gap:1.2rem}
  .art-mdn-list-head>p{justify-self:start}
  .art-mdn-news-card{
    grid-template-columns:auto 1fr;
    padding:2rem;gap:1.5rem;
  }
  .art-mdn-news-form{grid-column:1/-1;align-items:stretch}
  .art-mdn-news-pill{min-width:0}
  .art-mdn-news-form small{justify-content:center}
}

@media (max-width:640px){
  .art-mdn-hero{padding:6rem 0 2.5rem}
  .art-mdn-hero-inner h1{font-size:clamp(2.1rem,9vw,3rem)}
  .art-mdn-hero-meta{gap:.7rem;font-size:.85rem}
  .art-mdn-hero-divider{height:12px}
  .art-mdn-filters{gap:.4rem;padding-top:1.2rem}
  .art-mdn-filter{font-size:.78rem;padding:.42rem .85rem}

  .art-mdn-news-card{
    grid-template-columns:1fr;text-align:center;
    padding:1.8rem 1.4rem;
  }
  .art-mdn-news-icon{margin:0 auto}
  .art-mdn-news-form{align-items:stretch}
  .art-mdn-news-body p{margin-left:auto;margin-right:auto}
  .art-mdn-news-pill{
    flex-direction:column;border-radius:18px;
    padding:.5rem;gap:.5rem;align-items:stretch;
  }
  .art-mdn-news-pill svg{display:none}
  .art-mdn-news-pill input{
    padding:.9rem 1rem;background:#fff;border-radius:12px;text-align:center;
  }
  .art-mdn-news-pill button{
    justify-content:center;padding:.85rem 1rem;
  }

  .art-mdn-featured-body{padding:1.5rem 1.4rem 1.8rem;gap:.8rem}
  .art-mdn-featured-img{min-height:220px}

  .art-mdn-grid{grid-template-columns:1fr;gap:1.1rem}
  .art-mdn-card-body{padding:1.2rem 1.3rem 1.3rem}

  .art-mdn-pagination{gap:.4rem}
  .art-mdn-page-btn{padding:.55rem .9rem;font-size:.8rem}
  .art-mdn-page-btn span,
  .art-mdn-page-btn{gap:.3rem}
  .art-mdn-page-num{min-width:32px;height:32px;font-size:.82rem}
}

@media (prefers-reduced-motion:reduce){
  .art-mdn-card,
  .art-mdn-featured-card,
  .art-mdn-filter,
  .art-mdn-page-btn,
  .art-mdn-card-img img,
  .art-mdn-featured-img img{
    transition:none !important;animation:none !important;
  }
}
