/**
 * Dini olaylar listesi — dikey timeline mockup
 * base.css + site.css + home.css (header) + events.css
 */

.bf-body--home .bf-main--events {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  background: var(--bf-brand-cream);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--bf-brand-cream-soft) 0%, transparent 60%);
}

.bf-ev-page {
  max-width: var(--bf-brand-content-max);
  margin: 0 auto;
  padding-left: var(--bf-page-gutter);
  padding-right: var(--bf-page-gutter);
  font-family: var(--bf-brand-font-sans);
}

.bf-ev-page__head {
  margin-bottom: 1.75rem;
  text-align: center;
}

.bf-ev-page__title {
  margin: 0 0 0.5rem;
  font-family: var(--bf-brand-font-serif);
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bf-brand-ink);
}

.bf-ev-page__sub {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--bf-brand-muted);
}

.bf-ev-page__ask {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--bf-brand-radius-pill);
  background: linear-gradient(180deg, var(--bf-brand-gold-gradient-start) 0%, var(--bf-brand-gold) 100%);
  color: var(--bf-brand-white);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px var(--bf-brand-shadow-button);
}

.bf-ev-page__ask:hover {
  color: var(--bf-brand-white);
  filter: brightness(1.05);
}

/* ── Yıl filtresi ── */
.bf-ev-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}

.bf-ev-filter__label {
  font-family: var(--bf-brand-font-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--bf-brand-muted);
}

.bf-ev-filter__link {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-family: var(--bf-brand-font-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bf-brand-ink);
  text-decoration: none;
  background: var(--bf-brand-white);
  border: 1px solid var(--bf-brand-gold-border-strong);
  border-radius: var(--bf-brand-radius-pill);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bf-ev-filter__link:hover {
  border-color: var(--bf-brand-gold);
  color: var(--bf-brand-gold-dark);
}

.bf-ev-filter__link.is-active {
  color: var(--bf-brand-ink);
  background: linear-gradient(
    180deg,
    var(--bf-brand-gold-light) 0%,
    var(--bf-brand-gold) 100%
  );
  border-color: var(--bf-brand-gold-dark);
}

/* ── Timeline ── */
.bf-ev-timeline {
  position: relative;
  padding: 0.5rem 0 1rem;
}

.bf-ev-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--bf-brand-gold) 8%,
    var(--bf-brand-gold) 92%,
    transparent 100%
  );
}

.bf-ev-timeline__entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(0.85rem, 2vw, 1.5rem);
  align-items: start;
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
}

.bf-ev-timeline__entry--left .bf-ev-card {
  grid-column: 1;
  grid-row: 1;
}

.bf-ev-timeline__entry--left .bf-ev-timeline__node {
  grid-column: 2;
  grid-row: 1;
}

.bf-ev-timeline__entry--right .bf-ev-timeline__node {
  grid-column: 2;
  grid-row: 1;
}

.bf-ev-timeline__entry--right .bf-ev-card {
  grid-column: 3;
  grid-row: 1;
}

.bf-ev-timeline__node {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 1.25rem;
}

.bf-ev-timeline__year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.75rem;
  padding: 0.45rem 0.9rem;
  font-family: var(--bf-brand-font-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--bf-brand-ink);
  background: linear-gradient(
    180deg,
    var(--bf-brand-gold-light) 0%,
    var(--bf-brand-gold) 50%,
    var(--bf-brand-gold-dark) 100%
  );
  border: 1px solid var(--bf-brand-gold-dark);
  border-radius: var(--bf-brand-radius-pill);
  box-shadow: 0 4px 12px var(--bf-brand-shadow-button);
}

/* ── Olay kartı ── */
.bf-ev-card {
  position: relative;
  padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1rem, 2.5vw, 1.35rem);
  background: var(--bf-brand-white);
  border: 1px solid var(--bf-brand-gold-border-strong);
  border-radius: var(--bf-brand-radius-sm);
  box-shadow: 0 6px 22px var(--bf-brand-shadow-soft);
}

.bf-ev-timeline__entry--left .bf-ev-card::after,
.bf-ev-timeline__entry--right .bf-ev-card::before {
  content: "";
  position: absolute;
  top: 1.65rem;
  width: 0;
  height: 0;
  border: 9px solid transparent;
}

.bf-ev-timeline__entry--left .bf-ev-card::after {
  right: -17px;
  border-left-color: var(--bf-brand-white);
  filter: drop-shadow(1px 0 0 var(--bf-brand-gold-border-strong));
}

.bf-ev-timeline__entry--right .bf-ev-card::before {
  left: -17px;
  border-right-color: var(--bf-brand-white);
  filter: drop-shadow(-1px 0 0 var(--bf-brand-gold-border-strong));
}

.bf-ev-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.bf-ev-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--bf-brand-gold);
  background: var(--bf-brand-green);
  border: 1px solid var(--bf-brand-gold-border-strong);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--bf-brand-gold-border);
}

.bf-ev-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.bf-ev-card__title {
  margin: 0.15rem 0 0;
  font-family: var(--bf-brand-font-serif);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--bf-brand-ink);
}

.bf-ev-card__title a {
  color: inherit;
  text-decoration: none;
}

.bf-ev-card__title a:hover {
  color: var(--bf-brand-green);
}

.bf-ev-card__text {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--bf-brand-muted);
}

.bf-ev-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.bf-ev-card__related {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--bf-brand-font-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bf-brand-green);
  text-decoration: none;
  transition: color 0.15s ease;
}

.bf-ev-card__related:hover {
  color: var(--bf-brand-gold-dark);
  text-decoration: underline;
}

.bf-ev-card__related svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.bf-ev-card__source {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-family: var(--bf-brand-font-serif);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--bf-brand-gold-light);
  text-decoration: none;
  background: linear-gradient(165deg, var(--bf-brand-green) 0%, var(--bf-brand-green-deep) 100%);
  border: 1px solid var(--bf-brand-gold-border-strong);
  border-radius: var(--bf-brand-radius-sm);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.bf-ev-card__source:hover {
  filter: brightness(1.06);
  color: var(--bf-brand-gold-light);
  transform: translateY(-1px);
}

.bf-ev-card__source svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

/* ── Boş durum ── */
.bf-ev-empty {
  margin: 2rem 0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--bf-brand-white);
  border: 1px dashed var(--bf-brand-gold-border-strong);
  border-radius: var(--bf-brand-radius-md);
}

.bf-ev-empty__title {
  margin: 0 0 0.5rem;
  font-family: var(--bf-brand-font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bf-brand-ink);
}

.bf-ev-empty__text {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--bf-brand-muted);
}

.bf-ev-empty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: var(--bf-brand-font-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--bf-brand-ink);
  text-decoration: none;
  background: linear-gradient(
    180deg,
    var(--bf-brand-gold-light) 0%,
    var(--bf-brand-gold) 100%
  );
  border: 1px solid var(--bf-brand-gold-dark);
  border-radius: var(--bf-brand-radius-pill);
  box-shadow: 0 4px 14px var(--bf-brand-shadow-button);
}

.bf-ev-empty__btn:hover {
  filter: brightness(1.03);
  color: var(--bf-brand-ink);
}

@media (max-width: 767.98px) {
  .bf-ev-timeline::before {
    left: 1.25rem;
    transform: none;
  }

  .bf-ev-timeline__entry {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    padding-left: 0.25rem;
  }

  .bf-ev-timeline__entry--left .bf-ev-card,
  .bf-ev-timeline__entry--right .bf-ev-card {
    grid-column: 2;
    grid-row: 1;
  }

  .bf-ev-timeline__entry--left .bf-ev-timeline__node,
  .bf-ev-timeline__entry--right .bf-ev-timeline__node {
    grid-column: 1;
    grid-row: 1;
    padding-top: 1rem;
  }

  .bf-ev-timeline__year {
    min-width: 3rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.8125rem;
  }

  .bf-ev-timeline__entry--left .bf-ev-card::after,
  .bf-ev-timeline__entry--right .bf-ev-card::before {
    display: none;
  }
}
