/* =========================================================
   WEATHER STATION BIMS
   Astronomie - gemeenschappelijke planetenstylesheet
   ========================================================= */

:root {
	color-scheme: dark;

	--background: #080f20;
	--panel: #141f32;
	--border: #29374d;
	--text: #e2e8f0;
	--muted: #94a7c0;
	--accent: #c59c72;
}

/* Individuele kleurstelling per planeet */

body.jupiter {
	--accent: #c59c72;
}

body.mars {
	--accent: #d47758;
}

body.venus {
	--accent: #dfc991;
}

/* Algemene instellingen */

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;

	background: radial-gradient(
		ellipse at 20% 0%,
		#19263d 0%,
		var(--background) 55%
	);

	color: var(--text);

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

	line-height: 1.6;
}

.page-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 35px;
}

/* BIMS-logo */

.site-header {
	padding-bottom: 25px;
	margin-bottom: 35px;
	border-bottom: 1px solid var(--border);
}

.site-header img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 65px;
}

/* Astronomische rubriek */

.section-label {
	color: var(--muted);
	font-size: 11px;
	letter-spacing: 3px;
	margin-bottom: 25px;
}

/* Hoofdindeling */

.planet-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: 45px;
}

/* Planeetinformatie */

.planet-intro h1 {
	font-size: clamp(42px, 6vw, 72px);
	font-weight: 300;
	letter-spacing: 2px;
	line-height: 1.1;
	color: var(--accent);
	margin: 0 0 10px;
}

.planet-subtitle {
	color: var(--muted);
	font-size: 19px;
	margin: 0 0 25px;
}

.planet-photo {
	display: block;
	width: 100%;
	max-width: 450px;
	margin: 0 auto;
	border-radius: 12px;
	mix-blend-mode: screen;
}

.planet-description {
	font-size: 15px;
	line-height: 1.8;
	color: var(--text);
	margin-top: 25px;
}

/* Fotografische bronvermelding */

.photo-credit {
	text-align: center;
	font-size: 9px;
	font-style: italic;
	color: var(--muted);
	margin: -20px 0 25px;
}

/* Kaart met actuele positie */

.position-card {
	background-color: var(--panel);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 25px;
	text-align: center;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.position-card h2 {
	font-size: 23px;
	font-weight: 400;
	margin: 0;
}

.position-location {
	font-size: 13px;
	color: var(--muted);
	margin: 5px 0 20px;
}

.position-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.position-source {
	font-size: 12px;
	color: var(--muted);
	line-height: 1.7;
	margin: 20px 0 0;
}

/* Astronomische kerngegevens */

.planet-facts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
	margin-top: 45px;
}

.fact {
	background-color: var(--panel);
	border: 1px solid var(--border);
	border-top: 2px solid var(--accent);
	border-radius: 10px;
	padding: 20px 15px;
}

.fact span {
	display: block;
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 8px;
}

.fact strong {
	display: block;
	font-size: 22px;
	font-weight: 400;
	color: var(--accent);
}

/* Onderzijde pagina */

.site-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;

	margin-top: 50px;
	padding: 25px 0;
	border-top: 1px solid var(--border);
}

.back-link {
	color: var(--accent);
	text-decoration: none;
	font-size: 14px;
}

.back-link:hover {
	color: #ffffff;
}

.copyright {
	color: var(--muted);
	font-size: 12px;
}

/* Tablet */

@media (max-width: 900px) {
	.planet-grid {
		gap: 25px;
	}

	.planet-facts {
		grid-template-columns: repeat(2, 1fr);
	}

	.position-card {
		padding: 18px;
	}
}

/* Mobiele telefoon */

@media (max-width: 768px) {
	.page-container {
		padding: 20px;
	}

	.planet-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.planet-intro h1 {
		font-size: 48px;
	}

	.planet-subtitle {
		font-size: 17px;
	}

	.planet-photo {
		max-width: 350px;
	}

	.fact strong {
		font-size: 19px;
	}

	.site-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}

/* =========================================================
   DE ZON
   ========================================================= */

body.zon {
	--accent: #ffb347;
}

.sun-times {
	display: block;
	width: 100%;
	height: 180px;
	border: none;
	border-radius: 8px;
	margin-top: 20px;
	background-color: #ffffe0;
}

/* Uitlegknop */

.uitleg-button {
	background: transparent;
	color: var(--accent);
	border: 1px solid var(--accent);
	border-radius: 8px;
	padding: 10px 20px;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
	margin-top: 20px;
}

.uitleg-button:hover {
	background-color: var(--accent);
	color: var(--background);
}

/* Uitschuifbaar uitlegvenster */

.slide-panel {
	position: fixed;
	top: 0;
	left: 0;
	transform: translateX(-105%);
	width: 100%;
	max-width: 450px;
	height: 100%;
	background-color: var(--panel);
	color: var(--text);
	border-right: 1px solid var(--border);
	box-shadow: 4px 0 25px rgba(0, 0, 0, 0.4);
	overflow-y: auto;
	transition: transform 0.6s ease;
	padding: 30px;
	z-index: 2000;
	visibility: hidden;
}

.slide-panel.active {
	transform: translateX(0);
	visibility: visible;
}

.slide-panel h2 {
	color: var(--accent);
	font-weight: 400;
	margin-top: 0;
}

.slide-panel h3 {
	color: var(--accent);
	font-size: 16px;
	font-weight: 400;
	margin-top: 25px;
}

.slide-panel li {
	margin-bottom: 12px;
}

.close-btn {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 28px;
	color: var(--muted);
	background: none;
	border: none;
	cursor: pointer;
}

.overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1500;
}

.overlay.active {
	display: block;
}
