/*
Theme Name: ZVDÖK
Description: Színes, játékos téma a ZVDÖK számára – a logó kézlenyomataiból és betűiből.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: zvdok
*/

:root {
	--red: #d9262c;
	--yellow: #f5c400;
	--pink: #e2187f;
	--blue: #0a9bdb;
	--green: #7cc02a;
	--orange: #f39a3b;
	--ink: #2b2236;
	--muted: #6b6475;
	--paper: #fffaf3;
	--card: #ffffff;
	--radius: 22px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 17px/1.65 "Nunito", system-ui, sans-serif;
}

h1, h2, h3, .site-nav a, .btn {
	font-family: "Fredoka", "Nunito", system-ui, sans-serif;
	font-weight: 600;
	line-height: 1.2;
}

a { color: var(--blue); }
a:hover { color: var(--pink); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Ötszínű csík a logó betűiből */
.stripe {
	height: 8px;
	background: linear-gradient(90deg,
		var(--red) 0 20%, var(--yellow) 20% 40%, var(--pink) 40% 60%,
		var(--blue) 60% 80%, var(--green) 80% 100%);
}

/* Fejléc */
.site-header { background: #fff; box-shadow: 0 4px 18px rgba(43, 34, 54, .06); }
.site-header .wrap {
	display: flex; flex-wrap: wrap; align-items: center;
	justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px;
}
.site-logo img { display: block; width: 190px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.site-nav a {
	display: block; padding: 8px 16px; border-radius: 999px;
	text-decoration: none; color: var(--ink); font-size: 1.05rem;
}
.site-nav li:nth-child(5n+1) a:hover, .site-nav li:nth-child(5n+1).current_page_item a, .site-nav li:nth-child(5n+1).current-menu-item a { background: var(--red); color: #fff; }
.site-nav li:nth-child(5n+2) a:hover, .site-nav li:nth-child(5n+2).current_page_item a, .site-nav li:nth-child(5n+2).current-menu-item a { background: var(--yellow); color: var(--ink); }
.site-nav li:nth-child(5n+3) a:hover, .site-nav li:nth-child(5n+3).current_page_item a, .site-nav li:nth-child(5n+3).current-menu-item a { background: var(--pink); color: #fff; }
.site-nav li:nth-child(5n+4) a:hover, .site-nav li:nth-child(5n+4).current_page_item a, .site-nav li:nth-child(5n+4).current-menu-item a { background: var(--blue); color: #fff; }
.site-nav li:nth-child(5n+5) a:hover, .site-nav li:nth-child(5n+5).current_page_item a, .site-nav li:nth-child(5n+5).current-menu-item a { background: var(--green); color: #fff; }

@media (max-width: 640px) {
	.site-header .wrap { justify-content: center; }
	.site-nav ul { justify-content: center; }
	.site-nav a { padding: 6px 12px; font-size: .95rem; }
}

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; padding: 40px 0 64px; }

.page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 28px; }
.page-title::after {
	content: ""; display: block; width: 90px; height: 6px; margin-top: 10px;
	border-radius: 6px; background: var(--pink);
}

/* Bejegyzés-kártyák */
.cards {
	display: grid; gap: 28px;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.card {
	background: var(--card); border-radius: var(--radius); overflow: hidden;
	box-shadow: 0 6px 22px rgba(43, 34, 54, .08);
	border-top: 6px solid var(--c, var(--blue));
	display: flex; flex-direction: column;
	transition: transform .15s ease;
}
.card:hover { transform: translateY(-4px) rotate(-.4deg); }
.card:nth-child(5n+1) { --c: var(--red); }
.card:nth-child(5n+2) { --c: var(--yellow); }
.card:nth-child(5n+3) { --c: var(--pink); }
.card:nth-child(5n+4) { --c: var(--blue); }
.card:nth-child(5n+5) { --c: var(--green); }
.card-thumb { display: block; aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--c) 18%, #fff); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 18px 22px 22px; }
.card h2 { font-size: 1.3rem; margin: 0 0 6px; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--c); }
.meta { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.card p { margin: 0; }

/* Kiemelt (legfrissebb) bejegyzés a főoldalon */
.home .cards.is-first-page .card:first-child { grid-column: 1 / -1; }
@media (min-width: 760px) {
	.home .cards.is-first-page .card:first-child { flex-direction: row; }
	.home .cards.is-first-page .card:first-child .card-thumb { flex: 0 0 58%; aspect-ratio: auto; min-height: 320px; }
	.home .cards.is-first-page .card:first-child .card-body { padding: 32px; align-self: center; }
	.home .cards.is-first-page .card:first-child h2 { font-size: 2rem; }
}

/* Egy bejegyzés / oldal */
.entry { max-width: 780px; margin: 0 auto; }
.entry-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.entry-cover img { display: block; width: 100%; }
.entry-content > * { margin-top: 0; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content img, .entry-content figure img { border-radius: 14px; }
.entry-content .wp-block-gallery img { border-radius: 14px; }

.pagination { margin-top: 40px; text-align: center; }
.pagination .page-numbers {
	display: inline-block; min-width: 42px; padding: 8px 12px; margin: 2px;
	border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink);
}
.pagination .current { background: var(--blue); color: #fff; }

/* Dokumentumok */
.docs { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.docs a {
	display: flex; align-items: center; gap: 16px; padding: 14px 18px;
	background: #fff; border-radius: 16px; text-decoration: none; color: var(--ink);
	box-shadow: 0 4px 14px rgba(43, 34, 54, .06);
}
.docs a:hover { outline: 3px solid var(--green); }
.docs .ext {
	flex: 0 0 56px; text-align: center; padding: 6px 0; border-radius: 10px;
	background: var(--green); color: #fff; font: 600 .85rem "Fredoka", sans-serif; text-transform: uppercase;
}
.docs .name { font-weight: 700; }
.docs .meta { margin: 0; }

/* Kapcsolat űrlap */
.contact-form { display: grid; gap: 16px; margin-top: 28px; }
.contact-form label { font-weight: 700; display: block; margin-bottom: 4px; }
.contact-form input, .contact-form textarea {
	width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
	border: 2px solid #e6dfd6; border-radius: 14px; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); }
.contact-form .hp { position: absolute; left: -9999px; }
.btn {
	justify-self: start; padding: 12px 28px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--pink); color: #fff; font-size: 1.1rem;
}
.btn:hover { background: var(--blue); }
.notice { padding: 14px 18px; border-radius: 14px; font-weight: 700; }
.notice.ok { background: #e9f6db; color: #3d6b0c; }
.notice.err { background: #fde4ea; color: #a0123f; }

/* Lábléc */
.site-footer { background: var(--ink); color: #eee; padding: 28px 0; text-align: center; font-size: .95rem; }
.site-footer a { color: var(--yellow); }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
