/* assets/css/style.css */

/* layout adjustments */
html {
  font-size: 17px;
}

.franklin-content {
  position: relative;
  padding-left: 8%;
  padding-right: 5%;
  line-height: 1.35em;
}

@media (min-width: 940px) {
  .franklin-content {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .franklin-content {
    padding-left: 6%;
    padding-right: 6%;
  }
}

/* delikatne zaokrąglenie i cień */
img.rounded {
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* efekt lekkiego powiększenia przy najechaniu */
img.rounded:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

/* wariant z delikatną ramką */
img.framed {
  border: 1px solid #d5d5d5;
  padding: 3px;
  background-color: #fdfdfd;
}

/* dodatkowe warianty cieni dla galerii */
img.soft {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

img.shadow {
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.26);
}

/* dla podpisów w figure */
figcaption {
  text-align: center;
  color: #aaa;
  font-style: italic;
  font-size: 0.9em;
  margin-top: 0.4em;
}

/* blog cards */

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.blog-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #555;
}

.blog-summary__count {
  font-weight: 600;
  color: #202020;
}

.blog-summary__sep {
  color: #b0b0b0;
}

.blog-summary__latest {
  color: #666;
}

.blog-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px solid #aaa;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-filter__btn:hover,
.blog-filter__btn.is-active {
  background: #1f1f1f;
  color: #fff;
}

.blog-filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #f0f0f0;
  color: #555;
  font-size: 0.75rem;
  font-weight: 500;
}

.blog-filter__btn.is-active .blog-filter__count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.blog-filter__label {
  line-height: 1.2;
}

.blog-list {
  display: grid;
  gap: 1.5rem;
}

.blog-card {
  border: 1px solid #e0e0e0;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  border-color: #cfcfcf;
  transform: translateY(-2px);
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.4rem;
}

.blog-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-card__meta-item + .blog-card__meta-item::before {
  content: "•";
  color: #b0b0b0;
  margin-right: 0.25rem;
}

.blog-card__title {
  margin: 0 0 0.8rem 0;
  font-size: 1.35rem;
}

.blog-card__snippet {
  margin: 0 0 1rem 0;
  color: #333;
  line-height: 1.5;
}

.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-card__tag {
  display: inline-block;
  background: #f3f3f3;
  color: #555;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
}

.blog-card.is-hidden {
  display: none;
}

.blog-card__cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: #1f1f1f;
  text-decoration: none;
}

.blog-card__cta:hover {
  text-decoration: underline;
}


.blog-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 3rem 0 1.75rem 0;
}

.blog-nav__slot {
  display: flex;
}

.blog-nav__slot--prev {
  justify-content: flex-start;
}

.blog-nav__slot--all {
  justify-content: center;
}

.blog-nav__slot--next {
  justify-content: flex-end;
}

.blog-nav__slot--next .blog-nav__link {
  align-items: flex-end;
  text-align: right;
}

.blog-nav__link {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #dedede;
  border-radius: 0.75rem;
  background: #fff;
  color: #1f1f1f;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-nav__link:hover {
  border-color: #c8c8c8;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.blog-nav__link--all {
  max-width: 240px;
  align-items: center;
  margin: 0 auto;
  text-align: center;
}

.blog-nav__link.is-disabled {
  border-style: dashed;
  color: #9b9b9b;
  background: transparent;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

.blog-nav__hint {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #7a7a7a;
}

.blog-nav__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #202020;
}

@media (max-width: 600px) {
  .blog-nav {
    grid-template-columns: 1fr;
  }

  .blog-nav__slot--next {
    justify-content: flex-start;
  }

  .blog-nav__slot--next .blog-nav__link {
    align-items: flex-start;
    text-align: left;
  }

  .blog-nav__link--all {
    margin-left: 0;
  }
}

.sidebar-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.sidebar-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #dcdcdc;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sidebar-social__link:hover {
  background: #f2f2f2;
  border-color: #bdbdbd;
  color: #000;
}

.sidebar-social__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.cv-anchor {
  margin-left: 0.35rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: #bababa;
  visibility: hidden;
  transition: color 0.2s ease;
}

.cv-anchor__target {
  position: relative;
  top: -80px;
  display: block;
  visibility: hidden;
}

h2:hover .cv-anchor,
h3:hover .cv-anchor {
  visibility: visible;
}

.cv-anchor:hover {
  color: #606060;
}

.cv-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0 1.5rem 0;
}

.cv-metrics__item {
  padding: 1rem 1.1rem;
  border: 1px solid #e3e3e3;
  border-radius: 0.9rem;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cv-metrics__value {
  font-size: 1.65rem;
  font-weight: 700;
  color: #1f1f1f;
}

.cv-metrics__label {
  font-size: 0.9rem;
  color: #505050;
  font-weight: 600;
}

.cv-metrics__caption {
  font-size: 0.8rem;
  color: #808080;
}

.cv-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.cv-downloads__btn {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #dcdcdc;
  text-decoration: none;
  background: #fff;
  color: #222;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cv-downloads__btn:hover {
  transform: translateY(-1px);
  border-color: #c1c1c1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cv-downloads__btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.cv-downloads__label {
  font-weight: 600;
}

.cv-downloads__meta {
  font-size: 0.8rem;
  color: #646464;
}

.cv-section-list {
  display: grid;
  gap: 1.4rem;
  margin-bottom: 2.8rem;
}

.cv-section-item {
  padding: 1.25rem 1.4rem;
  border-radius: 1rem;
  border: 1px solid #e2e2e2;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cv-section-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.cv-section__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  color: #6d6d6d;
}

.cv-section__period {
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cv-section__title {
  margin: 0 0 0.35rem 0;
  font-size: 1.15rem;
}

.cv-section__subtitle {
  margin: 0 0 0.7rem 0;
  font-size: 0.9rem;
  color: #4d4d4d;
}

.cv-section__highlights {
  margin: 0 0 0 1.15rem;
  color: #333;
}

.cv-section__highlights li {
  margin-bottom: 0.35rem;
}

.cv-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #f0f0f0;
  color: #4e4e4e;
  font-size: 0.75rem;
  font-weight: 500;
}

.cv-chip--count {
  margin-left: 0.4rem;
  background: #e5e5e5;
  font-size: 0.7rem;
}

.cv-publications {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.cv-publications__item {
  padding: 1.25rem 1.4rem;
  border: 1px solid #e6e6e6;
  border-radius: 0.95rem;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.cv-publications__title {
  margin: 0 0 0.6rem 0;
  font-size: 1.15rem;
}

.cv-publications__meta {
  margin: 0 0 0.75rem 0;
  font-size: 0.85rem;
  color: #6a6a6a;
}

.cv-publications__summary {
  margin: 0 0 0.75rem 0;
  color: #333;
}

.cv-publications__links a {
  color: #004de6;
}

.cv-publications__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cv-teaching {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.cv-teaching__item {
  padding: 1rem 1.2rem;
  border-radius: 0.9rem;
  border: 1px solid #e4e4e4;
  background: #fafafa;
}

.cv-teaching__title {
  margin: 0 0 0.4rem 0;
  font-size: 1rem;
}

.cv-teaching__audience {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  color: #5a5a5a;
}

.cv-teaching__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cv-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.cv-timeline__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cv-timeline__filter {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cv-timeline__filter:hover,
.cv-timeline__filter.is-active {
  background: #1f1f1f;
  border-color: #1f1f1f;
  color: #fff;
}

.cv-timeline__filter.is-active .cv-chip--count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.cv-timeline__list {
  display: grid;
  gap: 1.4rem;
}

.cv-timeline__item {
  position: relative;
  padding: 1.3rem 1.4rem 1.3rem 1.35rem;
  border-radius: 1rem;
  border: 1px solid #e3e3e3;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cv-timeline__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.cv-timeline__item.is-hidden {
  display: none;
}

.cv-timeline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: #6a6a6a;
}

.cv-timeline__year {
  font-weight: 700;
  color: #1f1f1f;
}

.cv-timeline__title {
  margin: 0 0 0.4rem 0;
  font-size: 1.1rem;
}

.cv-timeline__subtitle {
  margin: 0 0 0.7rem 0;
  font-size: 0.9rem;
  color: #4d4d4d;
}

.cv-timeline__highlights {
  margin: 0 0 0.75rem 1.15rem;
  color: #333;
}

.cv-timeline__highlights li {
  margin-bottom: 0.4rem;
}

.cv-timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
