/* ==========================================================================
   HH2 Program Manager – nyilvános felület
   Letisztult, visszafogott megjelenés; a téma tipográfiáját örökli.
   ========================================================================== */

.hh2-cards,
.hh2-card,
.hh2-event-box,
.hh2-reg,
.hh2-portal,
.hh2-doclib,
.hh2-notice {
	--hh2-ink: #17323d;
	--hh2-brand: #1f4e5f;
	--hh2-brand-strong: #16404f;
	--hh2-muted: #63757d;
	--hh2-line: #e8edf0;
	--hh2-soft: #f7f9fa;
	box-sizing: border-box;
}

.hh2-cards *,
.hh2-event-box *,
.hh2-reg *,
.hh2-portal *,
.hh2-doclib * {
	box-sizing: border-box;
}

/* --------------------------------------------------------------- Kártyák */

.hh2-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin: 28px 0;
	padding: 0;
}

.hh2-card {
	background: #fff;
	border: 1px solid var(--hh2-line);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color .15s ease, transform .15s ease;
}

.hh2-card:hover {
	border-color: #cfdde3;
	transform: translateY(-2px);
}

.hh2-card__img img {
	display: block;
	width: 100%;
	height: 168px;
	object-fit: cover;
}

.hh2-card__body {
	padding: 22px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.hh2-card__title {
	margin: 0;
	font-size: 1.1em;
	line-height: 1.4;
	font-weight: 650;
}

.hh2-card__title a {
	text-decoration: none;
	color: var(--hh2-ink);
}

.hh2-card__title a:hover {
	color: var(--hh2-brand);
}

.hh2-card__date {
	margin: 0;
	font-size: .82em;
	font-weight: 650;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--hh2-brand);
}

.hh2-card__meta {
	margin: 0;
	color: var(--hh2-muted);
	font-size: .9em;
}

.hh2-card .hh2-btn,
.hh2-card .hh2-btn--ghost {
	margin-top: auto;
}

/* ---------------------------------------------------------------- Gombok */

.hh2-btn {
	display: inline-block;
	background: var(--hh2-brand, #1f4e5f);
	color: #fff !important;
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 11px 24px;
	font-size: .95em;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none !important;
	align-self: flex-start;
	transition: background .15s ease;
}

.hh2-btn:hover {
	background: var(--hh2-brand-strong, #16404f);
}

.hh2-btn:focus-visible {
	outline: 2px solid var(--hh2-brand, #1f4e5f);
	outline-offset: 2px;
}

.hh2-btn--ghost {
	background: transparent;
	color: var(--hh2-brand, #1f4e5f) !important;
	border-color: #ccd9de;
}

.hh2-btn--ghost:hover {
	background: var(--hh2-soft, #f7f9fa);
	border-color: var(--hh2-brand, #1f4e5f);
}

/* --------------------------------------------------------------- Jelvény */

.hh2-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: .78em;
	font-weight: 650;
	letter-spacing: .02em;
	align-self: flex-start;
}

.hh2-badge--full      { background: #fbf3e0; color: #7a5b00; }
.hh2-badge--cancelled { background: #fbe9e9; color: #9c2323; }
.hh2-badge--past      { background: #eef1f3; color: #5a6b72; }

/* ------------------------------------------------------ Esemény-adatdoboz */

.hh2-event-box {
	border: 1px solid var(--hh2-line);
	border-radius: 14px;
	padding: 22px 26px;
	margin: 0 0 28px;
	background: #fff;
}

.hh2-event-box dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 10px 28px;
	margin: 0;
}

.hh2-event-box .hh2-badge {
	margin-bottom: 14px;
}

.hh2-event-box dt {
	font-weight: 650;
	font-size: .88em;
	color: var(--hh2-muted);
}

.hh2-event-box dd {
	margin: 0;
	font-size: .95em;
	color: var(--hh2-ink);
}

@media (max-width: 560px) {
	.hh2-event-box dl {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.hh2-event-box dd {
		margin-bottom: 10px;
	}
}

/* ------------------------------------------------------ Regisztrációs űrlap */

.hh2-reg {
	margin: 36px 0;
	padding: 28px 30px 30px;
	border: 1px solid var(--hh2-line);
	border-radius: 14px;
	background: #fff;
}

.hh2-reg__seats {
	margin: 0 0 18px;
	font-size: .9em;
	color: var(--hh2-muted);
}

.hh2-reg__seats strong {
	color: var(--hh2-brand);
}

.hh2-reg__form p {
	margin: 0 0 16px;
}

.hh2-reg__form label {
	font-size: .9em;
	font-weight: 600;
	color: var(--hh2-ink);
}

.hh2-reg__form input[type="text"],
.hh2-reg__form input[type="email"],
.hh2-reg__form input[type="tel"],
.hh2-reg__form textarea {
	width: 100%;
	max-width: 460px;
	margin-top: 6px;
	padding: 11px 14px;
	border: 1px solid #d5dee2;
	border-radius: 10px;
	font-size: .95em;
	background: #fff;
	color: var(--hh2-ink);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.hh2-reg__form input:focus,
.hh2-reg__form textarea:focus {
	outline: none;
	border-color: var(--hh2-brand);
	box-shadow: 0 0 0 3px rgba(31, 78, 95, .12);
}

.hh2-reg__gdpr {
	max-width: 560px;
	padding: 4px 0;
}

.hh2-reg__gdpr label {
	font-weight: 400;
	font-size: .86em;
	color: var(--hh2-muted);
	display: flex;
	gap: 10px;
	align-items: flex-start;
	line-height: 1.5;
}

.hh2-reg__gdpr input {
	margin-top: 3px;
	flex: none;
}

/* Honeypot – látogató számára rejtve */
.hh2-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------- Visszajelzések */

.hh2-notice {
	padding: 14px 18px;
	border-radius: 10px;
	margin: 0 0 20px;
	font-size: .92em;
	line-height: 1.5;
	border: 1px solid transparent;
}

.hh2-notice--success { background: #eef8f1; color: #1c5b34; border-color: #d3ecdb; }
.hh2-notice--error   { background: #fdf0f0; color: #8c2222; border-color: #f3d8d8; }
.hh2-notice--info    { background: var(--hh2-soft); color: #37505a; border-color: var(--hh2-line); }

.hh2-empty {
	color: var(--hh2-muted);
	font-style: italic;
}

.hh2-h {
	margin-top: 44px;
}

/* --------------------------------------------------------- Előrehaladás */

.hh2-progress {
	background: #edf1f3;
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
	max-width: 480px;
}

.hh2-progress--big {
	height: 12px;
	max-width: 640px;
	margin: 10px 0 4px;
}

.hh2-progress__bar {
	background: var(--hh2-brand, #1f4e5f);
	height: 100%;
	border-radius: 999px;
	transition: width .3s ease;
}

/* ------------------------------------------------------------- Portál */

.hh2-portal__process {
	border: 1px solid var(--hh2-line);
	border-radius: 14px;
	padding: 26px 30px 28px;
	margin: 0 0 26px;
	background: #fff;
}

.hh2-portal__process > h3 {
	margin: 0 0 4px;
}

.hh2-portal__process > p {
	margin: 0 0 8px;
}

.hh2-phases {
	list-style: none;
	margin: 20px 0;
	padding: 0;
}

.hh2-phase {
	display: flex;
	gap: 14px;
	align-items: baseline;
	padding: 12px 2px;
	border-bottom: 1px solid var(--hh2-line);
	flex-wrap: wrap;
	position: relative;
}

.hh2-phase:last-child {
	border-bottom: 0;
}

.hh2-phase::before {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: #d3dbdf;
	flex: none;
	align-self: center;
}

.hh2-phase--in_progress::before { background: #e6a23c; }
.hh2-phase--done::before        { background: #2e9e5b; }

.hh2-phase__label {
	font-weight: 650;
	color: var(--hh2-ink);
}

.hh2-phase--done .hh2-phase__label {
	color: var(--hh2-muted);
}

.hh2-phase__status {
	font-size: .85em;
	color: var(--hh2-muted);
}

.hh2-phase__deadline {
	font-size: .82em;
	color: #93a3aa;
	margin-left: auto;
}

.hh2-table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0 6px;
}

.hh2-table th {
	font-size: .78em;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--hh2-muted);
	font-weight: 650;
}

.hh2-table th,
.hh2-table td {
	text-align: left;
	padding: 10px 12px 10px 0;
	border-bottom: 1px solid var(--hh2-line);
	font-size: .92em;
}

.hh2-table tr:last-child td {
	border-bottom: 0;
}

/* --------------------------------------------------------- Dokumentumtár */

.hh2-doclib__cat {
	color: var(--hh2-ink);
	margin: 30px 0 4px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--hh2-line);
	font-size: 1.02em;
}

.hh2-doclib__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hh2-doclib__list li {
	padding: 11px 2px;
	border-bottom: 1px solid var(--hh2-soft);
}

.hh2-doclib__list li:last-child {
	border-bottom: 0;
}

.hh2-doclib__list a {
	text-decoration: none;
	font-weight: 550;
	color: var(--hh2-brand);
}

.hh2-doclib__list a:hover {
	text-decoration: underline;
}

.hh2-doclib__meta {
	color: #93a3aa;
	font-size: .84em;
	margin-left: 6px;
}

/* ==========================================================================
   Animációk és mikro-interakciók
   ========================================================================== */

/* Scroll-reveal (a .hh2-anim osztályt a JS adja hozzá, JS nélkül minden látható) */
.hh2-anim {
	opacity: 0;
	transform: translateY(16px);
	transition:
		opacity .55s ease var(--hh2-d, 0ms),
		transform .6s cubic-bezier(.22, .8, .35, 1) var(--hh2-d, 0ms);
}

.hh2-anim.hh2-in {
	opacity: 1;
	transform: none;
}

/* Kártyák: emelkedés + felső gradiens-csík + képnagyítás */
.hh2-card {
	position: relative;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease,
		opacity .55s ease var(--hh2-d, 0ms);
}

.hh2-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #1f4e5f, #2b7a99, #3aa08c);
	opacity: 0;
	transition: opacity .25s ease;
	pointer-events: none;
}

.hh2-card:hover {
	transform: translateY(-4px);
	border-color: #cfdde3;
	box-shadow: 0 16px 36px rgba(23, 50, 61, .10);
}

.hh2-card:hover::after {
	opacity: 1;
}

.hh2-card__img {
	overflow: hidden;
	display: block;
}

.hh2-card__img img {
	transition: transform .55s cubic-bezier(.22, .8, .35, 1);
}

.hh2-card:hover .hh2-card__img img {
	transform: scale(1.05);
}

/* Gombok: gradiens + finom emelkedés, ghost gombon sikló nyíl */
.hh2-btn {
	background: linear-gradient(135deg, #26617b, #1f4e5f);
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
	will-change: transform;
}

.hh2-btn:hover {
	background: linear-gradient(135deg, #1f4e5f, #16404f);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(31, 78, 95, .28);
}

.hh2-btn:active {
	transform: translateY(0);
	box-shadow: 0 3px 10px rgba(31, 78, 95, .2);
}

.hh2-btn--ghost {
	background: transparent;
}

.hh2-btn--ghost:hover {
	background: var(--hh2-soft, #f7f9fa);
	box-shadow: none;
}

.hh2-btn--ghost::after {
	content: '→';
	display: inline-block;
	margin-left: 7px;
	transition: transform .2s ease;
}

.hh2-btn--ghost:hover::after {
	transform: translateX(4px);
}

/* Folyamatjelző: gradiens + átfutó fénycsík feltöltődés után */
.hh2-progress__bar {
	position: relative;
	overflow: hidden;
	background: linear-gradient(90deg, #1f4e5f, #2b7a99);
	transition: width 1s cubic-bezier(.25, .8, .3, 1);
}

.hh2-progress__bar--lit::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, .4) 50%, transparent 75%);
	transform: translateX(-100%);
	animation: hh2-shine 1.6s ease-in-out .9s 2;
}

@keyframes hh2-shine {
	to { transform: translateX(100%); }
}

/* Fázis-pöttyök: a folyamatban lévő finoman pulzál */
.hh2-phase::before {
	transition: background .2s ease;
}

.hh2-phase--in_progress::before {
	animation: hh2-pulse 2.2s ease-in-out infinite;
}

@keyframes hh2-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(230, 162, 60, .45); }
	55%      { box-shadow: 0 0 0 7px rgba(230, 162, 60, 0); }
}

/* Visszajelzések: finom becsúszás */
.hh2-notice {
	animation: hh2-fadeup .45s cubic-bezier(.22, .8, .35, 1);
}

@keyframes hh2-fadeup {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

/* Dokumentumlista: hover-csúszás */
.hh2-doclib__list li {
	transition: background .18s ease, padding-left .18s ease;
	border-radius: 8px;
}

.hh2-doclib__list li:hover {
	background: var(--hh2-soft, #f7f9fa);
	padding-left: 12px;
}

/* Dokumentum-kategória: gradiens aláhúzás */
.hh2-doclib__cat {
	position: relative;
	border-bottom: 0;
	padding-bottom: 10px;
}

.hh2-doclib__cat::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	width: 48px;
	border-radius: 2px;
	background: linear-gradient(90deg, #1f4e5f, #3aa08c);
}

/* Űrlapmezők: finom emelkedés fókuszra */
.hh2-reg__form input:focus,
.hh2-reg__form textarea:focus {
	transform: translateY(-1px);
}

/* Csökkentett mozgás: minden animáció kikapcsol */
@media (prefers-reduced-motion: reduce) {
	.hh2-anim {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	.hh2-card,
	.hh2-card__img img,
	.hh2-btn,
	.hh2-btn--ghost::after,
	.hh2-progress__bar,
	.hh2-doclib__list li,
	.hh2-reg__form input,
	.hh2-reg__form textarea {
		transition: none !important;
		transform: none !important;
	}

	.hh2-progress__bar--lit::after,
	.hh2-phase--in_progress::before,
	.hh2-notice {
		animation: none !important;
	}
}

/* Sötét témák: a dokumentumtár is kártyában jelenik meg, hogy olvasható maradjon */
.hh2-doclib {
	background: #fff;
	border: 1px solid var(--hh2-line, #e8edf0);
	border-radius: 14px;
	padding: 6px 28px 24px;
}

.hh2-doclib .hh2-notice {
	margin-top: 20px;
}

.hh2-empty {
	color: #93a3aa;
}

/* Jelentkezési űrlap */
.hh2-apply__title {
	margin: 4px 0 18px;
}

.hh2-apply h4 {
	margin: 26px 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--hh2-line, #e8edf0);
	font-size: 1em;
}

.hh2-reg__form select {
	width: 100%;
	max-width: 460px;
	margin-top: 6px;
	padding: 11px 14px;
	border: 1px solid #d5dee2;
	border-radius: 10px;
	font-size: .95em;
	background: #fff;
	color: var(--hh2-ink, #17323d);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.hh2-reg__form select:focus {
	outline: none;
	border-color: var(--hh2-brand, #1f4e5f);
	box-shadow: 0 0 0 3px rgba(31, 78, 95, .12);
}
