/* =======================================================================
   CONSOANA CONTA — RESURSE (blog/articole reale WP)
   Handle: cc-resurse · depinde de cc-global (tokens + .cc-* + reveal).
   Prefix: .res-*
   ======================================================================= */

/* ---------- TAG GOLD (refolosit pe featured + carduri) ---------- */
.res-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}

/* ---------- 1. HERO ---------- */
.res-hero {
  background: radial-gradient(1000px 460px at 85% -10%, rgba(201,168,92,0.12), transparent 60%);
  padding: 90px 40px 44px;
}
.res-hero__inner {
  max-width: 780px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}
.res-hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 50px;
  line-height: 1.1;
  color: var(--navy);
  margin: 18px 0 18px;
  letter-spacing: -.5px;
}
.res-hero__lead {
  font-size: 18.5px;
  line-height: 1.7;
  color: var(--body);
  max-width: 720px;
}

/* ---------- 2. FEATURED ---------- */
.res-featured { padding: 36px 40px 8px; }

.res-feat {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fffdf9;
  border: 1px solid #ece3d0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15,31,58,.03);
  transition: transform .45s var(--ease), box-shadow .45s ease, border-color .3s ease;
}
.res-feat:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 80px -40px rgba(15,31,58,.5);
  border-color: var(--gold-pale);
}

.res-feat__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-alt);
}
.res-feat__media .res-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.res-feat:hover .res-feat__media .res-card__img { transform: scale(1.05); }

.res-feat__body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.res-feat__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  color: var(--ink-strong);
  margin: 0 0 16px;
  transition: color .25s ease;
}
.res-feat:hover .res-feat__title { color: var(--navy-mid); }
.res-feat__excerpt {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 22px;
}
.res-feat__meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--muted-cool);
}

/* ---------- PLACEHOLDER (fara thumbnail) ---------- */
.res-card__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #b29c6e;
  background: repeating-linear-gradient(135deg, #e7ddc6 0 14px, #efe6d2 14px 28px);
}

/* ---------- 3. GRID ---------- */
.res-grid-wrap { padding: 36px 40px 100px; }

.res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.res-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.res-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 70px -38px rgba(15,31,58,.5);
  border-color: var(--gold-pale);
}

.res-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cream-alt);
}
.res-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.res-card:hover .res-card__media .res-card__img { transform: scale(1.06); }

.res-card__body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.res-card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink-strong);
  margin: 0 0 12px;
  transition: color .25s ease;
}
.res-card:hover .res-card__title { color: var(--navy-mid); }
.res-card__excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: 20px;
  flex: 1;
}
.res-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--muted-cool);
}

/* ---------- 4. NEWSLETTER ---------- */
.res-news {
  margin-top: 64px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #1e3a63, #13284a);
  border-radius: 24px;
  padding: 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 50px 100px -45px rgba(15,31,58,.7);
}
.res-news__ring {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(201,168,92,.28);
  border-radius: 50%;
  pointer-events: none;
}
.res-news__text { position: relative; z-index: 1; max-width: 460px; }
.res-news__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 12px;
}
.res-news__sub {
  font-size: 15px;
  line-height: 1.6;
  color: #b9c2d4;
}

.res-news__form {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.res-news__input {
  font-family: var(--sans);
  font-size: 15px;
  color: #fff;
  padding: 15px 22px;
  min-width: 260px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  transition: border-color .25s ease, background .25s ease;
}
.res-news__input::placeholder { color: #9aa7bd; }
.res-news__input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,.14);
}
.res-news__btn { padding: 15px 30px; }

.res-news__msg {
  flex-basis: 100%;
  margin: 6px 0 0;
  font-size: 13px;
  color: #e3cd95;
}
.res-news__msg.is-error { color: #f0b8a8; }
.res-news__success {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 20px;
  color: #e3cd95;
  margin: 0;
}

/* ---------- EMPTY STATE ---------- */
.res-empty { padding: 60px 40px 110px; }
.res-empty__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 64px 48px;
  box-shadow: 0 30px 70px -50px rgba(15,31,58,.4);
}
.res-empty__mark {
  display: inline-block;
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 18px;
}
.res-empty__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 14px;
}
.res-empty__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 30px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .res-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .res-hero { padding: 70px 22px 36px; }
  .res-hero__title { font-size: 38px; }
  .res-featured { padding: 28px 22px 8px; }
  .res-feat { grid-template-columns: 1fr; }
  .res-feat__body { padding: 34px 30px; }
  .res-grid-wrap { padding: 28px 22px 80px; }

  .res-news {
    flex-direction: column;
    align-items: flex-start;
    padding: 44px 34px;
    gap: 26px;
  }
  .res-news__form { width: 100%; }
  .res-news__input { flex: 1; min-width: 0; }
}

@media (max-width: 640px) {
  .res-hero__title { font-size: 32px; }
  .res-hero__lead { font-size: 16.5px; }
  .res-grid { grid-template-columns: 1fr; }
  .res-news__form { flex-direction: column; align-items: stretch; }
  .res-news__input { width: 100%; }
  .res-news__btn { width: 100%; }
}
