/* ============================================================
   components.css — componente reutilizabile pentru concursuri
   .comp (rândul din listă) · .pic · .date-tile · .cd (numărători)
   .type-tabs · .subcats · .filters · .ed-tabs · .kv · .status-box
   ============================================================ */

/* ── Bara de filtre ─────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 12px; }
.filters .toggle-pill { font: 600 13px var(--font); border: 1px solid var(--line); background: var(--card); color: var(--soft); border-radius: var(--r-pill); padding: 8px 14px; white-space: nowrap; }
.filters .toggle-pill:hover { text-decoration: none; border-color: #CFEEDB; color: var(--ok); }
.filters .toggle-pill.is-on { background: var(--ok-bg); border-color: #CFEEDB; color: var(--ok); }

/* ── Tab-uri de tip (Toate · Muzică · …) ────────────────── */
.type-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.type-tab { font: 600 13px var(--font); border: 1px solid var(--line); background: var(--card); color: var(--soft); border-radius: var(--r-pill); padding: 7px 14px; display: inline-flex; align-items: center; gap: 7px; }
.type-tab:hover { text-decoration: none; color: var(--ink); }
.type-tab i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.type-tab.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── Subcategorii cu simboluri ──────────────────────────── */
.subcats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; margin-bottom: 6px; scrollbar-width: thin; }
.subcat { flex: 0 0 auto; width: 82px; display: flex; flex-direction: column; align-items: center; gap: 5px; border: 2px solid transparent; border-radius: 14px; padding: 5px 3px; font: 600 11.5px var(--font); color: var(--soft); line-height: 1.15; text-align: center; }
.subcat img, .subcat__all { width: 60px; height: 60px; border-radius: var(--r); display: block; }
.subcat__all { display: flex; align-items: center; justify-content: center; background: var(--card); border: 1px dashed var(--line); font-size: 20px; color: var(--mute); }
.subcat:hover { background: var(--card); text-decoration: none; }
.subcat.is-on { border-color: var(--pri); background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ── Lista de concursuri ────────────────────────────────── */
.comp-list { display: flex; flex-direction: column; gap: 12px; }

/* ── Card layout ── */
.comp { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--g100); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .3s, transform .3s; }
.comp:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.comp__body { display: flex; gap: 16px; align-items: flex-start; padding: 20px 20px 14px; color: inherit; min-width: 0; }
.comp__body:hover { text-decoration: none; }
.comp__body:hover .comp__title { color: var(--pri); }
.comp__txt { flex: 1; min-width: 0; }
.comp__title { margin: 0 0 4px; font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.comp__meta { margin: 0 0 2px; font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp__org  { margin: 0 0 6px; font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.comp__foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--g100); }
.comp__cds { display: flex; gap: 6px; flex-wrap: wrap; }
.comp__acts { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.comp__toggle { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--tint); color: var(--soft); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; padding: 0; flex-shrink: 0; }
.comp__toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.comp__toggle:hover { background: var(--line); color: var(--ink); }
.comp.is-open .comp__toggle svg { transform: rotate(180deg); }
.comp__more { display: none; border-top: 1px dashed var(--line); padding: 16px 20px 20px; }
.comp.is-open .comp__more { display: block; }
.comp--open   { border-color: #a7f3d0; }
.comp--open   .comp__foot { background: var(--ok-bg); }
.comp--urgent { border-color: #fecaca; }
.comp--urgent .comp__foot { background: var(--bad-bg); }
.comp--future { border-color: var(--g100); }
.comp--past   .comp__title, .comp--past .comp__meta { color: var(--mute); }
.comp--past   .pic { filter: grayscale(.35); }

.empty-state { text-align: center; color: var(--mute); padding: 40px 10px; }

/* ── Poza (logo / simbol / inițiale) ────────────────────── */
.pic { flex: 0 0 72px; width: 72px; height: 72px; border-radius: var(--r); object-fit: cover; display: block; background: var(--tint); overflow: hidden; }
.pic--accent { border: 6px solid var(--acc); }
.pic--lg { flex-basis: 96px; width: 96px; height: 96px; border-radius: 18px; }
.pic--col { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1px; background: #fff; }
.pic--col img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.pic--n2 img, .pic--n3 img:first-child { grid-row: span 2; }
.pic--ini { display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--mute); font-size: 18px; }
.pic--lg.pic--ini { font-size: 26px; }

/* ── Căsuța cu data (bilețel de calendar) ───────────────── */
.date-tile { width: 72px; height: 72px; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; flex: 0 0 auto; }
.date-tile svg { display: block; width: 100%; height: 12px; flex: 0 0 12px; }
.date-tile__b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px; text-align: center; }
.date-tile__big { font-weight: 800; font-size: 24px; line-height: 1; }
.date-tile__big--word { font-size: 17px; text-transform: uppercase; }
.date-tile__small { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--soft); margin-top: 2px; line-height: 1.1; }

/* ── Numărători (pill badges inline) ────────────────────── */
.cd { display: inline-flex; align-items: center; gap: 5px; border: 1px solid transparent; border-radius: var(--r-pill); padding: 4px 10px; font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.cd b { font-weight: 800; font-size: 13px; }
.cd small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.cd--reg    { background: var(--ok-bg);   color: var(--ok);   border-color: #CFEEDB; }
.cd--soon   { background: var(--warn-bg); color: var(--warn); border-color: #F6DDB4; }
.cd--urgent { background: var(--bad-bg);  color: var(--bad);  border-color: #F8C9C9; }
.cd--cmp    { background: var(--lav-bg);  color: var(--lav);  border-color: #ddd6fe; }
.cd--live   { background: var(--info-bg); color: var(--info);  border-color: #C5DDF7; }
.cd--na     { background: #F4F3F8; color: var(--mute); border-color: var(--line); }
.cd--done   { background: #F4F3F8; color: var(--soft); border-color: var(--line); }

/* ── Badge dată (pill cu calendar) ──────────────────────── */
.date-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--g50); color: var(--g700); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }


/* ── Detalii (cheie / valoare) ──────────────────────────── */
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 4px 12px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--mute); font-weight: 600; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.more__disc { margin: 8px 0 0; font-size: 12.5px; color: var(--soft); }
.more__acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.more__link { font-size: 13px; color: var(--soft); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more__acts .btn--primary.more__go { margin-left: auto; }
.prize-badge { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13px; color: var(--ok); }
.prize-badge svg { width: 22px; height: 22px; }

/* ── Tab-uri ediții (în detalii) ────────────────────────── */
.ed-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ed-tab { font: 600 12.5px var(--font); border: 1px solid var(--line); background: var(--card); color: var(--soft); border-radius: var(--r-pill); padding: 5px 12px; cursor: pointer; }
.ed-tab.is-on { background: var(--grad); border-color: transparent; color: #fff; }

/* ── Panou de stare (ediția curentă) ────────────────────── */
.status-box { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; background: var(--card); border: 1px solid var(--g100); border-radius: var(--r-lg); padding: 20px 24px; margin: 0 0 20px; box-shadow: var(--shadow-sm); }
.status-box__info { flex: 1 1 260px; min-width: 0; }
.status-box__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; }
.status-box__ed { font-size: 13px; font-weight: 600; color: var(--soft); }
.status-box__lines { margin: 0; font-size: 13.5px; color: var(--soft); line-height: 1.5; }
.status-box__boxes { display: flex; gap: 8px; align-items: center; }
.status-box .btn { margin-top: 8px; }

/* ── Mobil ──────────────────────────────────────────────── */
@media (max-width: 700px) {
  .comp__body { gap: 10px; }

  /* Footer pe 2 rânduri: badges sus, acțiuni jos */
  .comp__foot { row-gap: 6px; column-gap: 6px; }
  .comp__cds  { flex: 0 0 100%; }          /* rând propriu */
  .comp__acts { margin-left: auto; }        /* date-badge stânga, acțiuni dreapta */

  .pic { flex-basis: 56px; width: 56px; height: 56px; }
  .comp__title { font-size: 15.5px; }
  .kv { grid-template-columns: 84px 1fr; }
  .status-box__boxes { width: 100%; flex-wrap: wrap; }
  .status-box { padding: 16px; }
  .status-box__boxes .cd { flex: 1; }
  /* "Detalii →" ascuns pe mobil; apare doar la card deschis */
  .comp:not(.is-open) .btn--primary.comp__det { display: none; }
}

/* ── Fereastra „Premiu obținut” ─────────────────────────── */
.prize-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 4px 0 14px; }
.prize-opt { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); cursor: pointer; font: 500 13px var(--font); color: var(--ink); text-align: left; }
.prize-opt span { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; }
.prize-opt span svg { width: 22px; height: 22px; }
.prize-opt.is-on { background: var(--lav-bg); border-color: var(--pri); font-weight: 700; }
.modal .field { margin-bottom: 12px; }

/* ── Detalii extra (pagina concursului) ─────────────────── */
.more__chips { margin-top: 10px; }
.more__notes { margin-top: 10px; font-size: 13px; }
.more__notes summary { cursor: pointer; color: var(--pri); font-weight: 600; }
.more__notes div { color: var(--soft); margin-top: 6px; line-height: 1.5; max-width: 70ch; }
.more__jury { margin-top: 10px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }

/* ── Tooltip de ajutor „?” (reutilizabil) ───────────────── */
.help-tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--mute); font: 700 10.5px var(--font); cursor: help; vertical-align: 1px; margin-left: 4px; outline: none; }
.help-tip:hover, .help-tip:focus { color: var(--pri); border-color: var(--pri); }
.help-tip__box { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%) translateY(4px); z-index: 300; width: 280px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(36, 36, 58, .16); padding: 12px 14px; font: 500 12.5px/1.45 var(--font); text-align: left; display: flex; flex-direction: column; gap: 5px; opacity: 0; visibility: hidden; transition: opacity .12s, transform .12s, visibility .12s; cursor: default; }
.help-tip__box strong { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); margin-top: 4px; }
.help-tip__box strong:first-child { margin-top: 0; }
.help-tip__row { display: flex; align-items: center; gap: 8px; }
.help-tip:hover .help-tip__box, .help-tip:focus .help-tip__box, .help-tip:focus-within .help-tip__box { opacity: 1; visibility: visible; transform: translateX(-50%); }
@media (max-width: 700px) { .help-tip__box { left: auto; right: -40px; transform: translateY(4px); } .help-tip:hover .help-tip__box, .help-tip:focus .help-tip__box { transform: none; } }

/* ── Legenda culorilor (pătrățele) ──────────────────────── */
.legend__sw { display: inline-block; flex: 0 0 14px; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); }
.legend__sw--open { background: #EFFAF3; border-color: #CDEFD9; }
.legend__sw--urgent { background: #FDF0F0; border-color: #F6CFCF; }
.legend__sw--future { background: var(--card); }
.legend__sw--past { background: #F1F1F5; }

/* ── Onboarding Banner ───────────────────────────────────────── */
.onboarding-banner { background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 100%); border: 1px solid #e9d5ff; border-radius: var(--r-lg); padding: 20px 20px 16px; margin: 0 0 20px; position: relative; }
.onboarding-banner[hidden] { display: none; }
.onboarding-banner--out { opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; }
.onboarding-banner__inner { max-width: 760px; }
.onboarding-banner__header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.onboarding-banner__title { font-size: 17px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.onboarding-banner__wave { font-size: 20px; }
.onboarding-banner__close { background: none; border: none; cursor: pointer; color: var(--mute); font-size: 16px; line-height: 1; padding: 4px; border-radius: var(--r-sm); }
.onboarding-banner__close:hover { background: rgba(0,0,0,.06); color: var(--ink); }
.onboarding-banner__lead { font-size: 13.5px; color: var(--soft); margin: 0 0 14px; }
.onboarding-banner__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.onboarding-step { display: flex; align-items: flex-start; gap: 12px; background: rgba(255,255,255,.7); border-radius: var(--r); padding: 12px 14px; }
.onboarding-step__icon { font-size: 22px; flex-shrink: 0; line-height: 1; }
.onboarding-step strong { font-size: 14px; display: block; color: var(--ink); margin-bottom: 3px; }
.onboarding-step p { font-size: 12.5px; color: var(--soft); margin: 0; line-height: 1.45; }
.onboarding-banner__footer { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn--sm { font-size: 13px; padding: 7px 14px; }


/* ── Cardul din grilă (index) ───────────────────────────── */
.ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ev { position: relative; background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--g100); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; color: inherit; }
/* tot cardul e clicabil prin linkul din titlu („stretched link”); datele au linkurile lor, deasupra */
.ev__link { color: inherit; }
.ev__link:hover { color: inherit; }
.ev__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ev__date { position: relative; z-index: 2; color: inherit; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; text-decoration: underline dotted; text-decoration-color: var(--g300); text-underline-offset: 3px; }
.place-link { position: relative; z-index: 2; color: inherit; text-decoration: underline dotted; text-decoration-color: var(--g300); text-underline-offset: 3px; }
.place-link:hover { color: var(--pri); text-decoration: underline; text-decoration-color: currentColor; }
.cover .place-link { text-decoration-color: rgba(255,255,255,.55); }
.cover .place-link:hover { color: #fff; }
.ev__date:hover { color: var(--pri); text-decoration: underline; text-decoration-color: currentColor; }
.ev__link:focus-visible { outline: none; }
.ev:has(.ev__link:focus-visible) { box-shadow: 0 0 0 3px var(--pri-ring); }
.ev:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: inherit; }
.ev__img { position: relative; height: 192px; background: linear-gradient(135deg, var(--g100), var(--g200)); overflow: hidden; }
.ev__cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev__logo { width: 100%; height: 100%; object-fit: contain; display: block; padding: 28px 24px 20px; background: #fff; }
.ev__col { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; width: 100%; height: 100%; background: #fff; }
.ev__col img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.ev__col--n2 img, .ev__col--n3 img:first-child { grid-row: span 2; }
.ev__ini { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; color: var(--g400); }
.ev__cat { position: absolute; top: 16px; left: 16px; padding: 4px 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ev__mec { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 6px; border-radius: var(--r-pill); background: rgba(255,255,255,.95); color: #1d4ed8; font-size: 11.5px; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ev__mec img { width: 16px; height: 16px; object-fit: contain; display: block; }
.ev__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.ev__title { font-weight: 700; font-size: 18px; color: var(--ink); margin: 0 0 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.ev:hover .ev__title { color: var(--pri); }
.ev__desc { color: var(--mute); font-size: 14px; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev__meta { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--g600); margin-top: auto; }
.ev__row { display: flex; align-items: center; min-width: 0; }
.ev__row span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ev__row svg { width: 16px; height: 16px; margin-right: 8px; color: var(--g400); }
.ev__st { font-weight: 600; }
.ev__st--open { color: #047857; }   .ev__st--open svg { color: #10b981; }
.ev__st--urgent { color: #b91c1c; } .ev__st--urgent svg { color: #ef4444; }
.ev__st--soon { color: #0369a1; }   .ev__st--soon svg { color: #0ea5e9; }
.ev__st--cmp { color: #6d28d9; }    .ev__st--cmp svg { color: #8b5cf6; }
.ev__st--live { color: #be185d; }   .ev__st--live svg { color: #ec4899; }
.ev__st--done, .ev__st--na { color: var(--g500); font-weight: 500; }
.ev__mine { align-self: flex-start; margin-top: 12px; }
.ev--past .ev__img > *:not(.ev__cat):not(.ev__mec):not(.ev__flag) { filter: grayscale(.5); opacity: .8; }
.ev--past .ev__title { color: var(--g600); }
@media (max-width: 1280px) { .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .ev-grid { grid-template-columns: 1fr; gap: 16px; } .ev__img { height: 170px; } }

/* ── Card mic (grilă pe 4 coloane: „Concursuri asemănătoare”) ── */
.ev-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ev--sm .ev__img { height: 144px; }
.ev--sm .ev__cat { top: 12px; left: 12px; border-radius: var(--r-sm); padding: 3px 8px; }
.ev--sm .ev__mec { display: none; }
.ev--sm .ev__body { padding: 16px; }
.ev--sm .ev__title { font-size: 16px; font-weight: 600; }
.ev--sm .ev__meta { gap: 6px; font-size: 13.5px; }
@media (max-width: 1280px) { .ev-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .ev-grid--4 { grid-template-columns: 1fr; } }

/* ── Fișă cu iconițe (etichetă + valoare) ───────────────── */
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.info-row { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.info-row > div { min-width: 0; }
.info-row__ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: var(--r-sm); background: #e0f2fe; color: var(--pri); display: flex; align-items: center; justify-content: center; }
.info-row__ico svg { width: 20px; height: 20px; }
.info-row p { margin: 0; }
.info-row__label { font-size: 14px; color: var(--mute); }
.info-row__value { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.info-row__value a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--g300); }
.info-row__value a:hover { color: var(--pri); }
.info-row__sub { font-size: 14px; color: var(--g600); margin-top: 2px !important; }
.info-row__st--open { color: #047857; font-weight: 600; }
.info-row__st--urgent { color: #b91c1c; font-weight: 600; }
.info-row__st--soon { color: #0369a1; font-weight: 600; }
.info-row__st--cmp { color: #6d28d9; font-weight: 600; }
.info-row__st--live { color: #be185d; font-weight: 600; }

/* ── Distribuie ─────────────────────────────────────────── */
.share { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--g100); }
.share__label { font-size: 14px; font-weight: 500; color: var(--g700); margin: 0 0 12px; }
.share__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-sm); border: 0; font: 500 13.5px var(--font); color: #fff; cursor: pointer; transition: filter .15s; }
.share__btn:hover { color: #fff; filter: brightness(.92); }
.share__btn svg { width: 16px; height: 16px; }
.share--fb { background: #3b82f6; }
.share--wa { background: #22c55e; }
.share--tg { background: #38bdf8; }
.share--mail { background: #4b5563; }
.share--copy { background: #6b7280; }

/* ── Link pe o dată (filtrează indexul pe ziua respectivă) ── */
.date-link { color: var(--ink); text-decoration: underline dotted; text-decoration-color: var(--g300); text-underline-offset: 3px; }
.date-link:hover { color: var(--pri); text-decoration: underline; }

/* ── Etichetă de filtru activ (cu ✕) ── */
.filter-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: var(--r-pill); background: #e0f2fe; color: #075985; font-size: 14px; }
.filter-chip > svg { width: 16px; height: 16px; }
.filter-chip a { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: #075985; font-size: 12px; }
.filter-chip a:hover { background: rgba(7, 89, 133, .12); color: #0c4a6e; }


/* ── Bannerul de cookie-uri (templates/partials/ui/cookie_banner.php, assets/js/consent.js) ── */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: #141414; color: #e5e7eb; box-shadow: 0 -4px 20px rgba(0,0,0,.25); }
.cookie-bar__in { max-width: var(--max-w); margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 24px; }
.cookie-bar__txt { margin: 0; flex: 1; font-size: 15px; line-height: 1.5; }
.cookie-bar__txt a { color: #fff; font-weight: 600; text-decoration: underline; }
.cookie-bar__state { display: block; margin-top: 4px; color: #a3e635; font-size: 14px; }
.cookie-bar__state:empty { display: none; }
.cookie-bar__btns { display: flex; gap: 12px; flex: none; }
.cookie-bar__btn { min-width: 150px; padding: 14px 22px; font: 600 16px var(--font); color: #e5e7eb; background: transparent; border: 1px solid #4b5563; border-radius: 4px; cursor: pointer; }
.cookie-bar__btn:hover { border-color: #9ca3af; color: #fff; }
.cookie-bar__btn--on { background: #333; border-color: #333; }
.cookie-bar__btn--on:hover { background: #444; }
@media (max-width: 760px) {
  .cookie-bar__in { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .cookie-bar__txt { font-size: 14px; }
  .cookie-bar__btns .cookie-bar__btn { flex: 1; min-width: 0; }
}

/* mesaj scurt jos pe ecran (App.toast) */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 300; max-width: min(92vw, 420px);
  background: var(--g900); color: #fff; font-size: 14px; font-weight: 500; padding: 12px 18px; border-radius: var(--r); box-shadow: var(--shadow-lg); transition: opacity .3s, transform .3s; }
.toast--bad { background: var(--bad); }
.toast.is-out { opacity: 0; transform: translate(-50%, 8px); }
@media (max-width: 860px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* sugestii la căutare (input[data-suggest], vezi app.js) */
.sug { position: absolute; left: 0; right: 0; min-width: min(480px, 92vw); top: calc(100% + 6px); z-index: 60; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 6px; max-height: min(70vh, 460px); overflow-y: auto; text-align: left; }
.sug a { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink); font-size: 14.5px; line-height: 1.3; }
.sug a:hover, .sug a.is-on { background: var(--g50); color: var(--ink); }
.sug__ico { flex: 0 0 22px; text-align: center; }
.sug__t { min-width: 0; }
.sug__t b { font-weight: 700; background: #fef3c7; border-radius: 3px; }
.sug small { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.sug__all { border-top: 1px solid var(--g100); margin-top: 4px; padding-top: 10px !important; color: var(--pri) !important; font-weight: 600; }

/* ── Noutăți (includes/news.php) ─────────────────────────── */
.nw-kind { display: inline-flex; align-items: center; gap: 4px; font: 600 12px var(--font); padding: 2px 9px; border-radius: var(--r-pill); background: var(--tint); color: var(--g700); white-space: nowrap; }
.nw-kind--inscrieri_deschise { background: var(--ok-bg); color: var(--ok); }
.nw-kind--inscrieri_inchise, .nw-kind--termen { background: var(--warn-bg); color: var(--warn); }
.nw-kind--rezultate { background: var(--lav-bg); color: var(--lav); }
.nw-kind--program, .nw-kind--locatie, .nw-kind--juriu { background: var(--info-bg); color: var(--info); }
.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.nw-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.nw-card:hover { border-color: var(--pri); box-shadow: var(--shadow-sm); color: var(--ink); }
.nw-card__img { flex: none; width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden; background: var(--tint); display: grid; place-items: center; font-size: 28px; }
.nw-card__img img { width: 100%; height: 100%; object-fit: cover; }
.nw-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nw-card__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--mute); }
.nw-card__title { font-weight: 700; line-height: 1.3; }
.nw-card__series { font-size: 13px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-list__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nw-tl { list-style: none; margin: 8px 0 0; padding: 0; }
.nw-tl__item { position: relative; padding: 0 0 18px 20px; border-left: 2px solid var(--line); margin-left: 6px; }
.nw-tl__item:last-child { padding-bottom: 0; }
.nw-tl__item::before { content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--pri); }
.nw-tl__item:target .nw-tl__title { background: var(--warn-bg); }
.nw-tl__meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--mute); }
.nw-tl__title { font-size: 16px; margin: 6px 0 4px; }
.nw-tl__body { color: var(--soft); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.nw-tl__img { display: block; margin-top: 8px; max-width: 320px; }
.nw-tl__img img { border-radius: var(--r-sm); border: 1px solid var(--line); }
.nw-tl__src { display: inline-block; margin-top: 6px; }
.nw-home { margin: 32px 0; }
.nw-home__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.nw-home__head .ix__h2 { margin: 0; }

/* ── Modificări aplicate adineauri (doar admin) ─────────── */
.chg { border: 2px solid var(--bad); background: var(--bad-bg); }
.chg__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.chg__head h2 { font-size: 17px; margin: 0 0 10px; color: var(--bad); }
.chg__head small { font-weight: 500; color: var(--mute); }
.chg__t { width: 100%; border-collapse: collapse; font-size: 14px; }
.chg__t th, .chg__t td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(185, 28, 28, .15); vertical-align: top; overflow-wrap: anywhere; }
.chg__t th { font-size: 12px; color: var(--mute); }
.chg__t s { color: var(--mute); }
.chg__t b { color: var(--bad); }
.is-changed { outline: 2px solid var(--bad); outline-offset: 3px; border-radius: var(--r-sm); background: var(--bad-bg); }

/* ── Steaguri (concursuri din alte țări) ─────────────────── */
.ev__flag { position: absolute; left: 16px; bottom: 12px; display: block; line-height: 0; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.35); transition: transform .15s; }
.ev__flag:hover { transform: scale(1.15); }
.ev__flag img { width: 24px; height: 18px; border-radius: 3px; display: block; }
.ev--sm .ev__flag { left: 12px; bottom: 10px; }
.ev__rowflag { display: inline-flex; flex: none; margin-right: 2px; align-items: center; width: 18px; justify-content: center; line-height: 0; }
.ev__rowflag img { width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.info-flag { display: inline-block; vertical-align: -2px; margin-left: 4px; line-height: 0; }
.info-flag img { width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
