/* =========================
   PROM-IN BLOG — KOMPLETNÍ SOUBOR
   Změny:
   1. Zmenšení UI prvků (pagination, go top) na PC o cca 1/3.
   2. Oprava šipek (předchozí/další) - odstraněno content: none.
   3. Neaktivní kolečka jsou bílá s černým textem/šipkou (všude).
   4. itemsTotal fixnuty pro viditelnost na desktopu.
   ========================= */

.content-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 30px 12px 44px;
  color: #f3f5f4;
  box-sizing: border-box;
}

/* GRID — desktop 2 vedle sebe */
#newsWrapper.news-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  align-items: stretch;
}

/* CARD */
#newsWrapper .news-item {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 16%, rgba(87,194,78,0.13) 0%, rgba(87,194,78,0.04) 20%, rgba(0,0,0,0) 42%),
    radial-gradient(circle at 82% 72%, rgba(87,194,78,0.10) 0%, rgba(87,194,78,0.02) 18%, rgba(0,0,0,0) 38%),
    linear-gradient(145deg, #060606 0%, #0a0a0b 45%, #101511 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* IMAGE */
#newsWrapper .news-item-link-img {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  min-height: 290px;
  padding: 0;
  background: transparent;
  text-decoration: none;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

#newsWrapper .news-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: drop-shadow(0 22px 28px rgba(0,0,0,0.22));
  transition: transform 0.25s ease;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* CONTENT */
#newsWrapper .news-item h2 {
  margin: 0;
  padding: 20px 22px 10px;
  font-size: 0;
  line-height: 0;
}

#newsWrapper .news-item h2 a {
  display: block;
  margin: 0;
  color: #ffffff;
  text-decoration: none !important;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: color 0.25s ease;
}

#newsWrapper .news-item h2 a:hover,
#newsWrapper .news-item h2 a:focus,
#newsWrapper .news-item h2 a:active {
  color: #dff8dc;
  text-decoration: none !important;
}

/* TIME — green styl */
#newsWrapper .news-item time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 22px 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(87, 194, 78, 0.10);
  border: 1px solid rgba(87, 194, 78, 0.18);
  color: #a8d99c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

/* DESCRIPTION */
#newsWrapper .news-item .description {
  margin: 0 22px 18px;
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  line-height: 1.55;
}

#newsWrapper .news-item .description p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

/* CTA WRAP */
#newsWrapper .news-item .news-item-footer {
  margin-top: auto;
  padding: 0 22px 22px;
}

/* BUTTON */
#newsWrapper .news-item .news-read-more,
#newsWrapper .news-item a.news-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  height: 50px;
  min-height: 50px;
  padding: 0 24px;
  border: 0 !important;
  border-radius: 999px;
  background: linear-gradient(90deg, #57c24e 0%, #43ae3b 100%);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(87,194,78,0.24);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

#newsWrapper .news-item .news-read-more:hover,
#newsWrapper .news-item a.news-read-more:hover,
#newsWrapper .news-item .news-read-more:focus,
#newsWrapper .news-item a.news-read-more:focus {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* =========================
   PAGINATION / LISTING CONTROLS
   ========================= */

.content-inner .listingControls {
  margin-top: 26px;
  padding: 20px 24px; /* Zmenšeno */
  border-radius: 34px;
  background:
    radial-gradient(circle at 16% 18%, rgba(87,194,78,0.12) 0%, rgba(87,194,78,0.03) 18%, rgba(0,0,0,0) 38%),
    radial-gradient(circle at 84% 76%, rgba(87,194,78,0.10) 0%, rgba(87,194,78,0.02) 16%, rgba(0,0,0,0) 34%),
    linear-gradient(145deg, #060606 0%, #0a0a0b 45%, #101511 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.04);
  display: grid;
  grid-template-columns: auto 1fr auto; /* Ponecháno pro zobrazení itemsTotal */
  grid-template-areas: "top total pagination";
  align-items: center;
  column-gap: 20px;
  row-gap: 18px;
}

/* pagination wrapper */
.content-inner .pagination {
  grid-area: pagination;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  min-width: 0;
}

.content-inner .pagination__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
}

.content-inner .pagination__list li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* page circles — Zmenšeno o cca 1/3 (ze 72px na 48px) */
.content-inner .pagination__currentPage,
.content-inner .pagination__link {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px; /* Zmenšeno z 20px */
  line-height: 1;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

/* active page */
.content-inner .pagination__currentPage {
  background: linear-gradient(90deg, #57c24e 0%, #43ae3b 100%);
  color: #ffffff !important;
  border: none;
  box-shadow: 0 10px 20px rgba(87,194,78,0.24);
}

/* inactive pages & arrows — BÍLÉ POZADÍ, ČERNÝ TEXT */
.content-inner .pagination__link {
  background: #ffffff !important;
  color: #000000 !important;
  border: none;
  box-shadow: 0 6px 12px rgba(0,0,0,0.16);
}

/* Odstraněno content: none, aby se šipky zobrazovaly */
.content-inner .pagination__link--next,
.content-inner .pagination__link--previous {
  /* Zajištění, že barva šipky je černá */
  color: #000000 !important;
}

/* total items — Opraveno pro viditelnost */
.content-inner .itemsTotal {
  grid-area: total;
  margin: 0;
  text-align: center;
  color: rgba(255,255,255,0.78);
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  display: block !important; /* Vynucení viditelnosti */
}

.content-inner .itemsTotal strong {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1em;
}

/* go top button — Zmenšeno o 1/3 (z 86px na 56px) */
.content-inner .goToTop {
  grid-area: top;
  margin: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.content-inner .goToTop__button.btn.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  min-height: 56px;
  padding: 0 28px;
  border: 0 !important;
  border-radius: 999px;
  background: linear-gradient(90deg, #57c24e 0%, #43ae3b 100%);
  color: #ffffff !important;
  font-size: 18px; /* Zmenšeno z 24px */
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 10px 20px rgba(87,194,78,0.24);
  transition: transform 0.22s ease, filter 0.22s ease;
}

.content-inner .goToTop__button.btn.btn-secondary svg,
.content-inner .goToTop__button.btn.btn-secondary i {
  width: 20px;
  height: 20px;
}

/* RESPONSIVITY */

/* Větší desktop */
@media (min-width: 1280px) {
  .content-inner { padding: 32px 10px 48px; }
  #newsWrapper.news-wrapper { gap: 12px; }
  #newsWrapper .news-item h2 a { font-size: 26px; }
}

/* Tablet */
@media (max-width: 1024px) {
  #newsWrapper.news-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-inner .listingControls { padding: 22px 18px; }
}

/* Mobil */
@media (max-width: 767px) {
  #newsWrapper.news-wrapper { grid-template-columns: 1fr; }
  
  .content-inner .listingControls {
    grid-template-columns: 1fr;
    grid-template-areas: "pagination" "total" "top";
    justify-items: center;
    row-gap: 15px;
  }

  .content-inner .pagination { width: 100%; justify-content: center; }
  
  /* Na mobilu kolečka ještě o kousek menší */
  .content-inner .pagination__currentPage,
  .content-inner .pagination__link {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .content-inner .goToTop__button.btn.btn-secondary {
    width: 100%;
    height: 50px;
    font-size: 16px;
  }
}

/* Hover efekty pro desktop */
@media (hover: hover) and (pointer: fine) {
  #newsWrapper .news-item:hover {
    transform: translateY(-4px);
    border-color: rgba(87,194,78,0.24);
  }
  #newsWrapper .news-item .news-read-more:hover,
  .content-inner .goToTop__button:hover,
  .content-inner .pagination__currentPage:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
  }
  .content-inner .pagination__link:hover {
    background: #f0f0f0 !important;
    transform: translateY(-1px);
  }
}