/* ============================================
   Pimpelme.es — Modern Theme
   Swap back to pimpelms.css in head.php to revert
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;700&family=DM+Serif+Display&display=swap');

/* --- Color palette --- */
:root {
	--pm-forest: #2d5a4e;
	--pm-forest-light: #3a7566;
	--pm-sage: #8fb5a2;
	--pm-cream: #faf8f4;
	--pm-warm: #f5f0e8;
	--pm-gold: #d4a84b;
	--pm-gold-light: #f0d68a;
	--pm-text: #2c3e35;
	--pm-text-light: #5a6e63;
	--pm-border: #e2ddd5;
	--pm-shadow: rgba(45, 90, 78, 0.08);
	--pm-radius: 12px;

	--bs-primary: #2d5a4e;
	--bs-secondary: #d4a84b;
	--bs-light: #faf8f4;
	--bs-dark: #2c3e35;
	--bs-link-color: #2d5a4e;
	--bs-link-hover-color: #d4a84b;
}

/* --- Base --- */
body {
	background-color: var(--pm-cream);
	font-family: 'DM Sans', sans-serif;
	color: var(--pm-text);
	line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'DM Serif Display', serif;
	color: var(--pm-forest);
}

a {
	color: var(--pm-forest);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--pm-gold);
}

p {
	color: var(--pm-text-light);
}

/* --- Hero / Jumbotron --- */
.jumbotron,
.jumbotron-fluid {
	background-image: url("imgs/bluett.jpg");
	background-size: cover;
	background-position: center 30%;
	padding: 2.5rem 2rem;
	margin-bottom: 0;
	border-radius: 0;
	position: relative;
	min-height: 160px;
	display: flex;
	align-items: flex-end;
}

.jumbotron::after,
.jumbotron-fluid::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(20, 40, 32, 0.7) 0%, rgba(20, 40, 32, 0.1) 60%, transparent 100%);
	border-radius: inherit;
}

.jumbotron > *,
.jumbotron-fluid > * {
	position: relative;
	z-index: 1;
}

.display-5 {
	color: white;
	font-size: 2.4rem;
	font-family: 'DM Serif Display', serif;
	text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.lead {
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.1rem;
	font-weight: 300;
}

/* --- Layout --- */
.maxw1140 {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* --- Section headings --- */
.container.maxw1140 > div > h3 {
	font-size: 1.6rem;
	padding-bottom: 0.5rem;
	margin-bottom: 1rem;
	border-bottom: 2px solid var(--pm-gold-light);
	display: inline-block;
}

/* --- Timeline --- */
ul.timeline {
	list-style-type: none;
	position: relative;
	padding-left: 0;
}

ul.timeline:before {
	content: '';
	background: linear-gradient(to bottom, var(--pm-sage), var(--pm-border));
	position: absolute;
	left: 15px;
	width: 2px;
	height: 100%;
	z-index: 1;
}

ul.timeline > li {
	margin: 0 0 2rem 0;
	padding: 1.5rem 1.5rem 1.5rem 3rem;
	background: white;
	border-radius: var(--pm-radius);
	box-shadow: 0 2px 12px var(--pm-shadow);
	position: relative;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

ul.timeline > li:hover {
	box-shadow: 0 4px 20px rgba(45, 90, 78, 0.12);
	transform: translateY(-1px);
}

ul.timeline > li:before {
	content: '';
	background: var(--pm-gold);
	position: absolute;
	border-radius: 50%;
	border: 3px solid white;
	left: 8px;
	top: 1.7rem;
	width: 16px;
	height: 16px;
	z-index: 2;
	box-shadow: 0 0 0 3px var(--pm-sage);
}

ul.timeline > li h5 {
	font-family: 'DM Serif Display', serif;
	font-size: 1.15rem;
	color: var(--pm-forest);
	margin-bottom: 0.5rem;
}

ul.timeline > li h5 .float-right {
	font-family: 'DM Sans', sans-serif;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--pm-gold);
	background: var(--pm-warm);
	padding: 0.2rem 0.7rem;
	border-radius: 20px;
	float: right;
	margin-top: 0.15rem;
	letter-spacing: 0.02em;
}

/* --- Media in timeline --- */
ul.timeline video {
	border-radius: 8px;
}

ul.timeline .ratio {
	border-radius: 8px;
	overflow: hidden;
	background: var(--pm-warm);
}

ul.timeline .img-fluid {
	border-radius: 8px;
	margin-top: 0.5rem;
}

.multipleimgs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.multipleimgs img {
	margin-bottom: 0;
	border-radius: 8px;
	object-fit: cover;
	aspect-ratio: 4/3;
	width: 100%;
}

/* --- Accordion (4Geeks) --- */
.accordion-item {
	border: 1px solid var(--pm-border);
	border-radius: var(--pm-radius) !important;
	overflow: hidden;
}

.accordion-button {
	font-family: 'DM Serif Display', serif;
	font-size: 1rem;
	color: var(--pm-forest);
	background: var(--pm-warm);
}

.accordion-button:not(.collapsed) {
	background: var(--pm-forest);
	color: white;
	box-shadow: none;
}

.accordion-button:focus {
	box-shadow: 0 0 0 3px rgba(45, 90, 78, 0.2);
}

.accordion-body {
	background: white;
	font-size: 0.95rem;
	line-height: 1.8;
}

.accordion-body li {
	margin-bottom: 0.8rem;
}

/* --- Previous editions links --- */
div.py-4 h6 {
	font-family: 'DM Sans', sans-serif;
	font-weight: 400;
	color: var(--pm-text-light);
	line-height: 2;
}

div.py-4 h6 a {
	font-weight: 500;
	border-bottom: 1px solid var(--pm-gold-light);
	padding-bottom: 1px;
}

div.py-4 h6 a:hover {
	border-bottom-color: var(--pm-gold);
}

/* --- Responsive iframe (for livecam) --- */
.iframe-wrapper {
	position: relative;
	padding-top: 56.25%;
	border-radius: var(--pm-radius);
	overflow: hidden;
}

.iframe {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	width: 100%;
	height: 100%;
}

/* --- Footer / About --- */
div.py-4:last-child {
	border-top: 1px solid var(--pm-border);
	margin-top: 1rem;
}

/* --- Mobile tweaks --- */
@media (max-width: 768px) {
	.jumbotron,
	.jumbotron-fluid {
		min-height: 120px;
		padding: 2rem 1.5rem;
	}

	.display-5 {
		font-size: 1.8rem;
	}

	ul.timeline > li {
		padding: 1rem 1rem 1rem 2.5rem;
	}

	ul.timeline > li h5 .float-right {
		float: none;
		display: block;
		margin-top: 0.3rem;
		width: fit-content;
	}

	.multipleimgs {
		grid-template-columns: 1fr;
	}
}
