/* Stemfunctie -- kleuren van de Hitlijst-huisstijl (petrol/marigold, zelfde
   palet als muziektop10.nl/filmfun.nl), los van welk thema er verder actief is. */

.t10l-uitleg {
	font-family: "Public Sans", system-ui, sans-serif;
	font-size: 14px;
	color: #A9C4C0;
	margin: 24px 0 16px;
}

.t10l-lijst {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 16px 0 32px;
}

.t10l-item {
	display: grid;
	grid-template-columns: 48px 1fr 140px;
	gap: 16px;
	align-items: start;
	padding: 16px;
	background: #16393B;
	border: 1px solid #2D5053;
}

.t10l-item-rang {
	font-family: "Public Sans", system-ui, sans-serif;
	font-weight: 800;
	font-size: 20px;
	color: #E8A33B;
	line-height: 1.2;
}

.t10l-item-titel {
	font-family: "Public Sans", system-ui, sans-serif;
	font-weight: 700;
	font-size: 20px;
	color: #F3EFE2 !important;
	margin: 0 0 8px;
}

/* Afbeelding, tekst en reacties zijn losse grid-kinderen van .t10l-item
 * (niet genest in .t10l-item-inhoud) zodat ze de volle kaartbreedte
 * gebruiken. */
.t10l-item-afbeelding,
.t10l-item-video,
.t10l-item-instagram,
.t10l-item-x,
.t10l-item-tekst,
.t10l-reacties {
	grid-column: 1 / -1;
}

/* Eigen foto per item (i.p.v. filmfun.nl's YouTube-trailer) -- volle-breedte
 * behandeling, breekt uit de eigen padding van de kaart (16px) voor een
 * randloze, goed gealigneerde afbeelding. */
.t10l-item-afbeelding {
	position: relative;
	margin: 8px -16px 0;
}

.t10l-item-afbeelding img {
	width: 100%;
	height: auto;
	display: block;
	max-height: 500px;
	object-fit: cover;
}

/* Placeholder-weergave als een item nog geen eigen afbeelding heeft --
 * nooit een kapotte/lege <img>, gewoon een rustig vlak in de huisstijl. */
.t10l-item-afbeelding-placeholder {
	height: 220px;
	background: #122F30;
	border-top: 1px solid #2D5053;
	border-bottom: 1px solid #2D5053;
}

/* Optionele YouTube-video per item (i.p.v. de afbeelding, als youtube_url
 * is ingevuld) -- zelfde volle-breedte behandeling als .t10l-item-afbeelding,
 * responsive 16:9 via aspect-ratio i.p.v. een vaste hoogte. */
.t10l-item-video {
	/* Breekt ook uit de eigen padding van de kaart (16px) voor een
	 * randloze, goed gealigneerde video -- zelfde behandeling als
	 * .t10l-item-afbeelding. */
	margin: 8px -16px 0;
}

.t10l-item-video {
	/* Vaste 16:9-verhouding forceren, net als muziektop10.nl. */
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #122F30;
}

.t10l-item-video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
	display: block;
}

/* Instagram-embed per item -- vaste publieke embed-URL, zelfde aanpak als
 * de video maar zonder geforceerde 16:9 (Instagram-posts zijn vaak vierkant
 * of staand). Instagrams eigen embed-document regelt zijn interne layout;
 * hier alleen centreren en een redelijke min-hoogte zodat 'ie niet
 * inklapt voordat de iframe geladen is. */
.t10l-item-instagram {
	margin: 8px -16px 0;
	display: flex;
	justify-content: center;
	background: #122F30;
}

.t10l-item-instagram iframe {
	width: 100%;
	max-width: 540px;
	min-height: 580px;
	border: 0;
	display: block;
}

/* X/Twitter-embed per item -- de twitter-tweet-blockquote wordt door
 * widgets.js (zie t10l_assets_inladen()) client-side vervangen door een
 * eigen iframe met zijn eigen breedte (max ~550px); hier alleen centreren. */
.t10l-item-x {
	margin: 8px -16px 0;
	padding: 0 16px;
	display: flex;
	justify-content: center;
}
.t10l-item-tekst {
	font-family: "Public Sans", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #A9C4C0 !important;
	margin-top: 8px;
}

.t10l-reacties {
	margin-top: 8px;
}

.t10l-item-stem {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 6px;
}

/* ▲/▼ naast elkaar, elk met hun eigen aantal er direct onder. */
.t10l-stem-groep {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
}

/* Totaal helemaal rechts, in een eigen geel omkaderd vierkantje --
 * zelfde stijl als de stemknoppen, los van de up/down-groep. */
.t10l-stem-totaal-doos {
	margin-left: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 32px;
	padding: 0 6px;
	border: 1px solid #E8A33B;
	flex-shrink: 0;
}

/* Kort tooltipje: "je stemde hier al op" -- zonder dit leek een stem op een
 * item dat je (vanaf hetzelfde apparaat/netwerk) al eerder had gestemd
 * gewoon niks te doen, want het aantal ging dan terecht niet omhoog. */
.t10l-stem-al-gestemd {
	position: absolute;
	top: -6px;
	right: 100%;
	margin-right: 8px;
	white-space: nowrap;
	background: #16393B;
	border: 1px solid #2D5053;
	color: #A9C4C0;
	font-family: "Public Sans", sans-serif;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 8px;
	z-index: 2;
	animation: t10l-nudge-in 200ms ease-out;
}

@media (max-width: 480px) {
	.t10l-stem-al-gestemd {
		right: auto;
		left: 50%;
		transform: translateX(-50%);
		top: -28px;
		margin-right: 0;
	}
}

.t10l-stem-knop {
	width: 34px;
	height: 32px;
	border: 1px solid #E8A33B;
	background: transparent;
	color: #E8A33B;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.t10l-stem-knop:hover:not(:disabled) {
	background: #E8A33B;
	color: #24150A;
}

/* Downvote-knop krijgt een eigen kleur (zelfde roestrood als de
 * reactie-downvote, .t10l-reactie-omlaag.actief) zodat omhoog/omlaag ook
 * visueel uit elkaar te houden zijn, niet allebei marigold. */
.t10l-stem-omlaag:hover:not(:disabled) {
	background: #D6634C;
	border-color: #D6634C;
	color: #24150A;
}

.t10l-stem-knop:disabled {
	opacity: 0.4;
	cursor: default;
}

.t10l-stem-omhoog.actief {
	background: #E8A33B;
	color: #24150A;
}

.t10l-stem-omlaag.actief {
	background: #D6634C;
	border-color: #D6634C;
	color: #24150A;
}

.t10l-stem-aantal {
	font-family: "Public Sans", system-ui, sans-serif;
	font-weight: 800;
	font-size: 16px;
	color: #F3EFE2 !important;
}

/* Onder elke knop: dat ene aantal (los van het geklemde totaal rechts). */
.t10l-stem-detail-up,
.t10l-stem-detail-down {
	font-family: "Public Sans", system-ui, sans-serif;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.t10l-stem-detail-up {
	color: #E8A33B;
}

.t10l-stem-detail-down {
	color: #D6634C;
}

@media (max-width: 480px) {
	.t10l-item {
		grid-template-columns: 36px 1fr 112px;
		gap: 10px;
	}
	.t10l-item-titel {
		font-size: 17px;
	}
	.t10l-item-afbeelding {
		margin: 8px -10px 0;
	}
	.t10l-item-stem {
		gap: 4px;
	}
	.t10l-stem-knop {
		width: 30px;
	}
	.t10l-stem-totaal-doos {
		min-width: 28px;
		padding: 0 4px;
	}
}

/* Reactieformulier onder een item: het thema past een generieke
 * form-stijl toe (display:flex, align-items:stretch), waardoor het
 * tekstveld even hoog werd getrokken als de kolom -- veel te hoog. Hier op
 * een normale, compacte hoogte gezet. */
.t10l-reactie-form {
	align-items: flex-end;
}

.t10l-reactie-form textarea {
	height: 85px;
	resize: vertical;
}

/* ==========================================================================
   "Mis je een item?" -- voorstellen om een item toe te voegen aan een
   bestaand lijstje. Iedereen (niet alleen de maker) mag voorstellen; komt
   direct live te staan.
   ========================================================================== */

.t10l-item-voorstellen {
	margin-top: 32px;
	padding: 20px;
	background: #16393B;
	border: 1px solid #2D5053;
	font-family: "Public Sans", sans-serif;
}

.t10l-item-voorstellen-titel {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 800;
	color: #F3EFE2;
}

.t10l-item-voorstellen-uitleg {
	margin: 0 0 14px;
	font-size: 14px;
	color: #A9C4C0;
}

.t10l-item-voorstellen-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 480px;
}

.t10l-item-voorstellen-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	color: #F3EFE2;
}

.t10l-item-voorstellen-form input,
.t10l-item-voorstellen-form textarea {
	background: #122F30;
	border: 1px solid #2D5053;
	color: #F3EFE2;
	padding: 10px 12px;
	font-family: "Public Sans", sans-serif;
	font-size: 15px;
	font-weight: 400;
}

.t10l-item-voorstellen-knop {
	background: #E8A33B;
	color: #24150A;
	border: none;
	border-radius: 0 !important;
	padding: 12px 24px !important;
	font-family: "Public Sans", sans-serif;
	font-weight: 700;
	text-transform: uppercase !important;
	font-size: 14px !important;
	cursor: pointer;
	align-self: flex-start;
	text-decoration: none;
	display: inline-block;
}

.t10l-item-voorstellen-knop:disabled {
	opacity: 0.6;
	cursor: default;
}

.t10l-item-voorstellen-melding {
	margin: 0;
	font-size: 14px;
	color: #A9C4C0;
}

.t10l-item-voorstellen-melding-ok {
	color: #E8A33B;
	font-weight: 700;
}

/* Als je vanuit de "item toegevoegd"-mail op de directe link klikt
   (#item-X), springt de browser er vanzelf naartoe -- dit laat 'm ook
   even opvallen tussen de rest. */
.t10l-item:target {
	border-color: #E8A33B;
	box-shadow: 0 0 0 2px #E8A33B;
}

/* ==========================================================================
   Banner voor niet-ingelogde bezoekers op een lijstjespagina: wijst op
   accountvoordelen (eigen lijstjes, reageren, stemgeschiedenis).
   ========================================================================== */

.t10l-account-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	justify-content: space-between;
	margin: 0 0 24px;
	padding: 16px 18px;
	background: #16393B;
	border: 1px solid #E8A33B;
	font-family: "Public Sans", sans-serif;
}

.t10l-account-banner p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #F3EFE2;
	max-width: 480px;
}

.t10l-account-banner .t10l-account-knop {
	flex-shrink: 0;
	padding: 10px 20px;
}

@media (max-width: 480px) {
	.t10l-account-banner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Nudge die verschijnt na de eerste stem van een niet-ingelogde bezoeker. */
.t10l-stem-nudge {
	position: relative;
	margin-top: 16px;
	padding: 14px 40px 14px 16px;
	background: #16393B;
	border: 1px solid #E8A33B;
	font-family: "Public Sans", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #F3EFE2;
	animation: t10l-nudge-in 200ms ease-out;
}

.t10l-stem-nudge a {
	color: #E8A33B;
	font-weight: 700;
	text-decoration: underline;
}

.t10l-stem-nudge-sluiten {
	position: absolute;
	top: 8px;
	right: 10px;
	background: none;
	border: none;
	color: #A9C4C0;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
}

.t10l-stem-nudge-sluiten:hover {
	color: #F3EFE2;
}

@keyframes t10l-nudge-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}
