/* ==========================================================
   research.css — sjednocený styl pro Publikace / Metody / Výzkum
   ----------------------------------------------------------
   Ostré hrany, jednotné karty a čistý grid
   ========================================================== */

/* === GRID KARET === */
.research-grid,
.metody-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* === PUBLIKACE (Genesis Custom Block) === */
.gcb-publikace {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 1rem 1.25rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.gcb-publikace:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(0,0,0,0.12);
}

.gcb-publikace__title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 600;
}
.gcb-publikace__title a {
  text-decoration: none;
  color: var(--fg);
}
.gcb-publikace__title a:hover {
  color: var(--acc);
}
.gcb-publikace__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.gcb-publikace__links {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.gcb-publikace__links a {
  color: var(--acc);
  text-decoration: none;
}
.gcb-publikace__links a:hover {
  text-decoration: underline;
}

/* === ARCHIV PUBLIKACI === */
.publication-type-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.publication-type-filter__link {
  align-items: center;
  border: 1px solid #d8e2dc;
  color: var(--fg);
  display: inline-flex;
  gap: 0.4rem;
  line-height: 1.2;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
}

.publication-type-filter__link:hover,
.publication-type-filter__link.is-active {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
  text-decoration: none;
}

.publication-type-filter__link span {
  color: inherit;
  font-size: 0.85em;
  opacity: 0.78;
}

.publication-list {
  display: grid;
  gap: 1rem;
}

.publication-list-item {
  background: #fff;
  border: 1px solid #d8e2dc;
  padding: 1rem 1.15rem;
}

.publication-list-item__meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 700;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.publication-list-item__meta span + span::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.5;
}

.publication-list-item__title {
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0 0 0.45rem;
}

.publication-list-item__title a {
  color: var(--fg);
  text-decoration: none;
}

.publication-list-item__title a:hover {
  color: var(--acc);
}

.publication-list-item__citation {
  color: #3d4740;
  line-height: 1.55;
  margin: 0;
}

.publication-list-item__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.publication-list-item__links a {
  color: var(--acc);
  font-weight: 700;
  text-decoration: none;
}

.publication-list-item__links a:hover {
  text-decoration: underline;
}

/* === METODY === */
.metody-card {
  border: 1px solid #e5e7eb;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.metody-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(0,0,0,0.12);
}

.metody-card__head {
  padding: 1rem 1.25rem 0.75rem;
}
.metody-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 600;
}
.metody-card__title a {
  text-decoration: none;
  color: var(--fg);
}
.metody-card__title a:hover {
  color: var(--acc);
}
.metody-card__excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0 1.25rem 1rem;
  line-height: 1.5;
}

/* === SOUBORY / PŘÍLOHY === */
.metody-files {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1rem;
  display: grid;
  gap: 0.5rem;
}
.metody-files--empty {
  padding: 0 1.25rem 1rem;
  color: var(--muted);
}

.metody-file {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.5rem;
  border: 1px dashed rgba(0,0,0,0.1);
  background: #fafafa;
  font-size: 0.9rem;
}
.metody-file__icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  text-align: center;
  line-height: 24px;
  color: #888;
}
.metody-file__link {
  text-decoration: none;
  color: var(--ink);
}
.metody-file__link:hover {
  text-decoration: underline;
}
.metody-file__info {
  color: var(--muted);
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
}
.metody-file__btn {
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.6rem;
  background: var(--acc);
  color: #fff;
  border: none;
  transition: background 0.2s ease;
}
.metody-file__btn:hover {
  background: #1e6023;
}

/* === DETAIL VÝZKUMU / PUBLIKACE === */
.research-detail {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  line-height: 1.6;
}
.research-detail h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.projekty-timeline-wrapper {
  max-width: 900px;
  margin: 3rem auto;
  padding: 1rem;
}

.projekty-timeline-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
}

/* === Timeline structure === */
.projekty-timeline {
  position: relative;
  border-left: 3px solid #2c3e50;
  padding-left: 40px;
}

.projekty-timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.projekty-timeline-dot {
  position: absolute;
  left: -11px;
  top: 4px;
  width: 20px;
  height: 20px;
  background: #2c3e50;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #2c3e50;
}

.projekty-timeline-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.2rem;
  border: 1px solid #e5e5e5;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

.ptitle {
  font-size: 1.3rem;
  margin: 0 0 0.2rem;
  font-weight: 600;
}

.psub {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: #444;
}

.pyears {
  color: #1e73be;
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.pmeta p {
  margin: 0.3rem 0;
}

/* === RESPONSIVITA === */
@media (max-width: 900px) {
  .research-grid,
  .metody-grid {
    gap: 1rem;
  }
  .metody-file {
    grid-template-columns: 24px 1fr;
    gap: 0.5rem;
  }
  .metody-file__btn {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.3rem;
  }
}
