/**
 * Gyors hírek — függőleges hírfolyam
 *
 * Prefix: .gyors-hirek, .gh-item
 * A színt a PHP inline style-dal adja meg CSS-változón:
 *   style="--gh-color: #3b82f6"
 */

.gyors-hirek {
	--gh-text:  #ffffff;
	--gh-muted: #a7b0c0;

	display: flex;
	flex-direction: column;
	gap: 14px;
	font-family: "Poppins", sans-serif;
}

/* ---- Egy hír sora ------------------------------------------------------- */

.gh-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

/* Színes pötty a sor elején, glow-lasztva.
   A színt a --gh-color változó adja (inline style). */
.gh-item__dot {
	margin-top: 5px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--gh-color, #3b82f6);
	box-shadow: 0 0 10px var(--gh-color, #3b82f6);
	flex-shrink: 0;
}

.gh-item__body {
	min-width: 0; /* a flex item tudjon shrink-elni */
}

.gh-item__text {
	font-size: 14px;
	font-weight: 500;
	color: var(--gh-text);
	line-height: 1.35;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.gh-item__time {
	display: block;
	font-size: 12px;
	color: var(--gh-muted);
	margin-top: 2px;
}

/* ---- Üres állapot (admin figyelmeztetés) ------------------------------- */

.gh-empty {
	max-width: 1280px;
	margin: 24px auto;
	padding: 24px 32px;
	background: #fff7e6;
	border: 1px solid #ffb84d;
	border-radius: 12px;
	color: #7a4b00;
	font-size: 14px;
}

/* ---- Reszponzivitás ----------------------------------------------------- */

@media (max-width: 768px) {
	.gyors-hirek {
		gap: 12px;
	}
	.gh-item__text {
		font-size: 13.5px;
	}
}

/* ---- Reduced motion -----------------------------------------------------
   A pötty nem animált, de biztonság kedvéért itt van a hook. */

@media (prefers-reduced-motion: reduce) {
	.gh-item__dot {
		box-shadow: none;
	}
}
