/* Paginile cu conținut din panoul de administrare: noutăți, competiții, galerie, documente.
   Folosește variabilele și componentele din style.css (.card, .tag, .tab, .btn). */

.nav-links a[aria-current="page"] { color: var(--accent); }

/* Capul paginii: fără poze, ca hero-ul */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 6vw, 5rem); line-height: .95; margin: 0 0 16px;
}
.page-head .lead { margin: 0; max-width: 52ch; }
.page { padding: 56px 0 112px; }
/* secțiunile din pagină nu primesc spațierea mare a secțiunilor de pe prima pagină */
.page section { padding: 0; }
/* width/height din HTML sunt doar pentru rezervarea locului; forma o dă CSS-ul */
.card img, .gallery img, .article figure img { height: auto; }
.page-empty { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 56px 24px; text-align: center; color: var(--ink-3); }
.page-empty p { margin: 0 auto; max-width: 44ch; }
.page .tabs { margin-bottom: 32px; }
.tab-n { font-weight: 500; color: var(--ink-3); }
.tab[aria-selected="true"] .tab-n { color: rgb(254 254 254 / .7); }

/* Carduri cu dată (noutăți, competiții): aceeași formă ca la Rezultate */
.card time { display: block; margin: 12px 22px 0; font-size: 14px; color: var(--ink-3); }
.card .tag + time { margin-top: 10px; }
.card time + h3 { margin-top: 6px; }
.card-news { text-decoration: none; transition: border-color .2s; }
.card-news:hover { border-color: var(--ink); }
.card-news:hover h3 { color: var(--accent); }
.card-news .more { margin: auto 22px 0; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--accent); }
.card-news.no-img { padding-top: 10px; }
.card-news.no-img h3 { font-size: 34px; }

/* Blocul de pe prima pagină */
.home-news { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-head .h2 { margin: 0; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); text-decoration: none; }
.link-more:hover { color: var(--accent-dark); }
.link-more .ic { transition: transform .3s var(--ease); }
.link-more:hover .ic { transform: translateX(3px); }
.results .results-more { margin: 32px 0 0; text-align: center; }

/* Articolul */
.article { max-width: 760px; margin: 0 auto; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 500; text-decoration: none; margin-bottom: 28px; }
.back:hover { color: var(--accent); }
.article time { display: block; color: var(--ink-3); font-size: 15px; margin-bottom: 10px; }
.article h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 5vw, 4rem); line-height: .98; margin: 0 0 32px; text-wrap: balance; }
.article figure { margin: 0 0 36px; border-radius: var(--r); overflow: hidden; background: var(--tint); }
.article figure img { width: 100%; height: auto; }
.prose p { margin: 0 0 1.2em; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose a { color: var(--accent); overflow-wrap: anywhere; }
.page .article-more { max-width: none; margin-top: 88px; padding-top: 56px; border-top: 1px solid var(--line); }
.article-more h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 34px; margin: 0 0 24px; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--tint); cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.gallery button:hover img { transform: scale(1.03); }
.gal-cat { margin: 0 0 56px; }
.gal-cat:last-child { margin-bottom: 0; }
.gal-cat h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 32px; margin: 0 0 18px; display: flex; align-items: baseline; gap: 12px; }
.gal-cat h2 span { font-family: 'Schibsted Grotesk', system-ui, sans-serif; text-transform: none; font-weight: 500; font-size: 15px; color: var(--ink-3); }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(12 15 19 / .96); color: #fff; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px 24px; font-size: 15px; color: rgb(255 255 255 / .75); }
.lb-stage { display: grid; place-items: center; padding: 0 72px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgb(255 255 255 / .1); color: #fff; cursor: pointer; transition: background-color .2s; }
.lb-btn:hover { background: rgb(255 255 255 / .22); }
.lb-btn .ic { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-foot { height: 24px; }

/* Documente */
.doc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.doc-jump a { text-decoration: none; }
.doc-cat { margin: 0 0 48px; scroll-margin-top: 96px; }
.doc-cat h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 32px; margin: 0 0 14px; }
.docs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.doc { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.doc-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--wash); color: var(--accent); display: grid; place-items: center; }
.doc-ic .ic { width: 24px; height: 24px; }
.doc b { display: block; font-weight: 600; line-height: 1.4; }
.doc b a { text-decoration: none; }
.doc b a:hover { color: var(--accent); }
.doc-meta { display: block; font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.doc .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }

@media (max-width: 1120px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .page-head { padding: 56px 0 32px; }
  .page { padding: 44px 0 88px; }
}
@media (max-width: 640px) {
  .page-head { padding: 40px 0 28px; }
  .page { padding: 32px 0 72px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .gallery button { border-radius: 8px; }
  .gal-cat h2, .doc-cat h2 { font-size: 28px; }
  .prose p { font-size: 17px; }
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb-foot { height: 72px; }
  .doc { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .doc-ic { width: 40px; height: 40px; }
  .doc .btn { grid-column: 2; justify-self: start; }
}
