/* HERO */
.trail-hero {
	background: linear-gradient(
		to right,
		var(--trail-color) 75%,
		color-mix(in srgb, var(--trail-color) 70%, white 30%) 100%
	);
	color: #fff;
	padding: 100px 40px;
	margin-bottom: 60px;
	width: 100%;
	position: relative;
	overflow: hidden;
	min-height: 45vh;
}

.trail-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.trail-hero-content {
	flex: 1;
	position: relative;
	z-index: 2;
}

.trail-title {
  font-size: 42px;
  margin: 0 0 20px;
  color: #fff;
}

.trail-desc {
  font-size: 20px;
  margin-bottom: 25px;
  color: #f3f3f3;
  max-width: 600px;
}

.trail-status {
  font-size: 18px;
  margin: 15px 0;
}
.trail-status.active { color: #fde047; }
.trail-status.done { color: #4ade80; }

.trail-meta {
	position: absolute;
	bottom: 20px;
	left: 20px;
	display: flex;
	gap: 10px;
	margin-left: 40px;
}

.trail-meta span {
	background: rgba(255,255,255,0.15);
	border: 1px solid rgba(255,255,255,0.25);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 20px;
	backdrop-filter: blur(4px);
}

.trail-hero-image {
  flex-shrink: 0;
}
.trail-hero-image img {
  max-width: 400px;
}

/* Mobile */
@media (max-width: 900px) {
  .trail-hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .trail-hero-image img {
    margin-top: 25px;
  }
}


/* ODCINKI SZLAKU – nowoczesny wygląd */
.trail-segments {
  margin: 60px auto;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.trail-segment {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  padding: 2rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.trail-segment:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.trail-segment h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  color: #111;
  position: relative;
  padding-left: 1.2rem;
}

.trail-segment h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 6px;
  height: 1.1rem;
  border-radius: 3px;
  background: var(--trail-color, #2563eb);
}

.trail-steps {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* --- KROKI --- */
.trail-step {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.4rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
  position: relative;
}

/* kolorowy pasek statusu po lewej */
.trail-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: transparent;
  border-radius: 0.9rem 0 0 0.9rem;
  transition: background 0.25s ease;
}

.trail-step.done::before {
  background: #16a34a;
}

.trail-step.current::before {
  background: #f97316;
}

/* --- Ikona --- */
.trail-step-icon-wrapper {
  position: relative;
  flex-shrink: 0;
}

.trail-step-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trail-step-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* status badge */
.trail-step-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 14px;
}

/* --- Tekst --- */
.trail-step-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trail-step-title {
  margin: 0;
  font-weight: 600;
  font-size: 15.5px;
  color: #111;
  transition: color 0.2s ease;
}

.trail-step:hover {
  color: var(--trail-color, #2563eb);
}

.trail-step-type {
  margin: 0;
  font-size: 13.5px;
  color: #666;
}


/* ===================================================== */
/* GRID POD HERO – dwie kolumny (lewa: odcinki, prawa: sekcje informacyjne) */
/* ===================================================== */

.trail-content-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 3rem;
	margin: 60px auto;
	max-width: 1200px;
	align-items: start;
	padding: 0 20px;
}

.trail-content-left {
	border-right: 1px solid #eee;
	padding-right: 2rem;
}

/* --- NOWOCZESNE KAFLE PO PRAWEJ --- */
.trail-content-right section {
	position: relative;
	margin-bottom: 2.5rem;
	background: #fff;
	padding: 1.8rem 2rem;
	border-radius: 1.25rem;
	border: 1px solid #e5e7eb;
	box-shadow: 0 2px 6px rgba(0,0,0,0.04);
	transition: all 0.25s ease;
	overflow: hidden;
}

.trail-content-right section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 6px;
	background: var(--trail-color, #2563eb);
	opacity: 0.9;
	border-top-left-radius: 1.25rem;
	border-top-right-radius: 1.25rem;
}

.trail-content-right section:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.trail-content-right h2 {
	margin-top: 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: #111;
	margin-bottom: 1rem;
}

/* Teksty wewnątrz sekcji */
.trail-content-right p {
	font-size: 15px;
	line-height: 1.65;
	color: #333;
	margin-bottom: 0.5rem;
}

/* --- EKSPERCI --- */
.trail-experts-list {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

.trail-expert {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.trail-expert img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--trail-color, #2563eb);
}

.trail-expert-info h3 {
	margin: 0;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.4;
}

.trail-expert-info h3 a {
	color: #111;
	text-decoration: none;
	transition: color 0.2s ease;
}
.trail-expert-info h3 a:hover {
	color: var(--trail-color, #2563eb);
}

.trail-expert-role {
	margin: 3px 0 0;
	font-size: 14px;
	color: #666;
}

/* --- GRUPA BUDDYBOSS --- */
.trail-group {
	text-align: center;
}

.trail-group p {
	font-size: 15px;
	color: #333;
	line-height: 1.6;
	margin-bottom: 1rem;
}

.btn-trail-group {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	background: var(--trail-color, #2563eb);
	color: #fff;
	border-radius: 9999px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14.5px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
	transition: all 0.2s ease;
}

.btn-trail-group:hover {
	background: color-mix(in srgb, var(--trail-color) 90%, black 10%);
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


/* ===================================================== */
/* RESPONSYWNOŚĆ */
/* ===================================================== */
@media (max-width: 1000px) {
	.trail-content-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 0 20px;
	}

	.trail-content-left {
		border-right: none;
		padding-right: 0;
	}
}
