/* cicabolt — macskás, barátságos bolt hangulat (PHP+CSS) */

:root {
	--font: "Quicksand", system-ui, -apple-system, sans-serif;
	--accent: #2a9d84;
	--accent-dark: #1e7564;
	--accent-soft: #e8f5f2;
	--coral: #e76f51;
	--coral-dark: #d45a3e;
	--cream: #fffaf3;
	--text: #3d342f;
	--text-muted: #5c534e;
	--bg: #fffcf7;
	--bg-soft: #fdf5eb;
	--border: #ead9c9;
	--footer-bg: #3d342f;
	--footer-text: #d4c9c0;
	--header-h: 72px;
	--maxw: 1200px;
	--logo-paw-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='14' cy='18' r='7' fill='%23000'/%3E%3Ccircle cx='24' cy='12' r='7' fill='%23000'/%3E%3Ccircle cx='34' cy='18' r='7' fill='%23000'/%3E%3Cellipse cx='24' cy='34' rx='16' ry='12' fill='%23000'/%3E%3C/svg%3E");
	--paw-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='%23c4a484' opacity='0.11'%3E%3Ccircle cx='22' cy='26' r='7'/%3E%3Ccircle cx='48' cy='18' r='7'/%3E%3Ccircle cx='74' cy='26' r='7'/%3E%3Cellipse cx='48' cy='48' rx='20' ry='15'/%3E%3C/g%3E%3C/svg%3E");
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--text-muted);
	background-color: var(--bg-soft);
	background-image: var(--paw-pattern);
	background-size: 96px 96px;
	font-weight: 500;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	color: var(--text);
	font-family: var(--font);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.5em 0;
	letter-spacing: -0.02em;
}

h1 {
	font-size: clamp(1.55rem, 4vw, 2.05rem);
}

h2 {
	font-size: 1.38rem;
}

a {
	color: var(--accent-dark);
	text-decoration: none;
	font-weight: 600;
}

a:hover {
	text-decoration: underline;
	color: var(--coral);
}

img {
	max-width: 100%;
	height: auto;
}

#page-container {
	background: var(--cream);
	min-height: 50vh;
	padding-bottom: 0;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.content {
	margin: 0 auto;
	max-width: var(--maxw);
	padding: 24px 20px 0;
}

.content-padding-bottom {
	height: 32px;
}

.clearfix::after {
	content: " ";
	display: table;
	clear: both;
}

/* --- Fejléc --- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 9000;
	background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
	border-bottom: 3px solid var(--accent);
	box-shadow:
		0 4px 20px rgba(61, 52, 47, 0.08),
		0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.header-bar {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 16px;
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: var(--header-h);
}

.header-brand {
	flex: 1;
	min-width: 0;
}

.logo-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--text);
	font-weight: 700;
	font-size: 1.22rem;
	text-decoration: none;
	max-width: 100%;
}

.logo-link:hover {
	text-decoration: none;
	color: var(--accent-dark);
}

.logo-text-block {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	line-height: 1.15;
}

.logo-text {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 700;
}

.logo-tagline {
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--coral-dark);
	letter-spacing: 0.02em;
	opacity: 0.95;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.logo-mark {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 14px;
	background: linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 100%);
	-webkit-mask: var(--logo-paw-svg) center / 78% 78% no-repeat;
	mask: var(--logo-paw-svg) center / 78% 78% no-repeat;
	box-shadow: none;
	filter: drop-shadow(0 3px 10px rgba(42, 157, 132, 0.45));
}

/* Menü — xconsult .menu / .submenu kompatibilitás */

.menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	z-index: 1000;
}

.menu > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	align-items: center;
	justify-content: flex-end;
}

.menu > ul > li {
	position: relative;
	padding: 4px 6px;
}

.menu a,
.menu .submenuitem {
	display: block;
	color: var(--text);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	padding: 6px 8px;
	border-radius: 6px;
}

.menu a:hover,
.menu .submenuitem:hover {
	color: var(--coral-dark);
	text-decoration: none;
	background: rgba(231, 111, 81, 0.12);
}

.submenu {
	position: absolute;
	top: 100%;
	left: 0;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	min-width: 180px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	display: none;
}

.submenu li {
	margin: 0;
}

.submenu a {
	padding: 10px 16px;
	font-weight: 600;
	border-radius: 0;
}

.submenu a:hover {
	background: var(--accent-soft);
	color: var(--accent-dark);
}

.menu > ul > li:hover > .submenu {
	display: block;
}

.menu-caret {
	display: inline-block;
	margin-left: 4px;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid var(--coral);
	vertical-align: middle;
}

/* Mobil menü */

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	border-radius: 8px;
	flex-shrink: 0;
}

.nav-toggle span {
	display: block;
	height: 3px;
	width: 22px;
	background: var(--coral);
	border-radius: 3px;
	margin: 0 auto;
}

.nav-toggle:hover {
	background: var(--bg-soft);
}

.header-actions {
	flex-shrink: 0;
}

.header-icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--accent-dark);
	background: var(--accent-soft);
	border: 2px solid rgba(42, 157, 132, 0.25);
	text-decoration: none;
}

.header-icon-link:hover {
	background: var(--accent);
	color: var(--cream);
	border-color: var(--accent);
	text-decoration: none;
}

.icon-user {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid currentColor;
	position: relative;
}

.icon-user::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -8px;
	transform: translateX(-50%);
	width: 22px;
	height: 10px;
	border-radius: 10px 10px 0 0;
	border: 2px solid currentColor;
	border-bottom: none;
}

@media screen and (max-width: 1024px) {
	.nav-toggle {
		display: flex;
		order: -1;
	}

	.menu {
		position: fixed;
		top: var(--header-h);
		left: 0;
		width: min(320px, 88vw);
		height: calc(100vh - var(--header-h));
		background: var(--bg);
		border-right: 1px solid var(--border);
		box-shadow: 8px 0 32px rgba(0, 0, 0, 0.08);
		padding: 16px;
		overflow-y: auto;
		transform: translateX(-100%);
		transition: transform 0.25s ease;
		align-items: stretch;
		justify-content: flex-start;
	}

	.menu.is-open {
		transform: translateX(0);
	}

	.menu > ul {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.menu > ul > li {
		padding: 0;
		border-bottom: 1px solid var(--border);
	}

	.menu a,
	.menu .submenuitem {
		padding: 12px 8px;
	}

	.submenu {
		position: static;
		display: block;
		border: none;
		box-shadow: none;
		padding-left: 12px;
		background: var(--bg-soft);
		border-radius: 0 0 8px 8px;
	}

	.menu > ul > li:hover > .submenu {
		display: block;
	}

	.menu-caret {
		display: none;
	}
}

/* --- Gombok (xconsult .btn) --- */

.btn {
	border: 0;
	border-radius: 999px;
	letter-spacing: 0.04em;
	font-size: 0.875rem;
	font-family: var(--font);
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	padding: 14px 28px;
	display: inline-block;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(231, 111, 81, 0.22);
}

.btn-primary {
	background: linear-gradient(180deg, var(--coral) 0%, var(--coral-dark) 100%);
	color: #fff;
}

.btn-primary:hover {
	filter: brightness(1.06);
	text-decoration: none;
	color: #fff;
	box-shadow: 0 6px 18px rgba(231, 111, 81, 0.35);
}

div.text-center {
	text-align: center;
}

div.text-left {
	text-align: left;
}

div.text-right {
	text-align: right;
}

/* --- Űrlap --- */

div.form-center {
	border: 1px solid var(--border);
	margin: 24px auto;
	width: 100%;
	max-width: 560px;
	background: var(--bg);
	color: var(--text);
	border-radius: 20px;
	padding: 0;
	overflow: hidden;
	box-shadow:
		0 12px 40px rgba(61, 52, 47, 0.08),
		0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

div.form-center form {
	padding: 28px 28px 8px;
}

div.form-center form h2 {
	text-align: center;
}

div.form-center form label {
	display: block;
	text-align: left;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 4px;
}

div.form-center input {
	padding: 12px 14px;
	margin: 0 0 16px 0;
	border-radius: 8px;
	border: 1px solid var(--border);
	font-size: 1rem;
	width: 100%;
	font-family: inherit;
}

div.form-center input::placeholder,
textarea::placeholder {
	font-size: 0.875rem;
	color: #aaa;
}

div.form-center input[type="checkbox"] {
	width: auto;
	display: inline-block;
	margin-right: 10px;
}

div.form-center input[type="submit"] {
	cursor: pointer;
	background: var(--accent);
	color: #fff;
	border: none;
	font-weight: 700;
	transition: background 0.2s ease;
}

div.form-center input[type="submit"]:hover {
	background: var(--coral);
	color: #fff;
}

div.form-center div.form-row {
	margin: 0 0 8px 0;
}

textarea {
	font-family: inherit;
}

/* --- Alert --- */

.alertbox {
	padding: 16px 18px 16px 48px;
	border-radius: 14px;
	font-size: 0.95rem;
	margin: 0 auto 20px;
	width: 100%;
	max-width: 720px;
	text-align: left;
	position: relative;
	font-weight: 600;
}

.alertbox::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	border-radius: 50%;
}

.alertbox.success {
	background: #e8f5ef;
	color: #14532d;
	border: 1px solid #b8e0c8;
}

.alertbox.success::before {
	background: linear-gradient(145deg, var(--accent), var(--accent-dark));
	box-shadow: inset 0 0 0 3px #fff;
}

.alertbox.error {
	background: #fdecea;
	color: #7f1d1d;
	border: 1px solid #f5c6c4;
}

.alertbox.error::before {
	background: #dc2626;
	box-shadow: inset 0 0 0 3px #fff;
}

.article-title a,
article .title a {
	color: inherit;
	text-decoration: none;
}

article a.article-click,
.article-box a.article-click {
	position: absolute;
	inset: 0;
	display: block;
	cursor: pointer;
	z-index: 2;
}

article {
	position: relative;
}

/* --- Kártya rács (xconsult .grid3 egyszerűsítve) --- */

.grid3 {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 16px 0;
}

.grid3 .title,
.grid3 .title a {
	font-weight: 700;
	font-size: 1rem !important;
	line-height: 1.3 !important;
	margin-bottom: 8px;
	color: var(--text);
	text-decoration: none;
}

.grid3 .excerpt {
	font-size: 0.95rem !important;
	line-height: 1.4 !important;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	text-overflow: ellipsis;
	max-height: calc(1.4em * 3);
}

.grid3 > div {
	flex: 1;
	min-width: 220px;
	background: var(--bg);
	padding: 18px 18px 18px 20px;
	border-left: 4px solid var(--accent);
	border-radius: 16px;
	box-shadow: 0 4px 18px rgba(61, 52, 47, 0.06);
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
	position: relative;
	overflow: hidden;
}

.grid3 > div::before {
	content: "";
	position: absolute;
	top: 10px;
	right: 10px;
	width: 28px;
	height: 28px;
	background: var(--accent-soft);
	-webkit-mask: var(--logo-paw-svg) center / contain no-repeat;
	mask: var(--logo-paw-svg) center / contain no-repeat;
	opacity: 0.55;
	pointer-events: none;
}

.grid3 > div:hover {
	border-color: var(--coral);
	box-shadow: 0 10px 28px rgba(42, 157, 132, 0.15);
	transform: translateY(-2px);
}

@media screen and (max-width: 1024px) {
	div.form-center {
		width: 100%;
	}

	div.form-center form {
		padding: 20px 16px 8px;
	}

	.grid3 {
		display: block;
	}

	.grid3 > div {
		margin-bottom: 12px;
	}
}

/* --- Lábléc --- */

.site-footer {
	background: var(--footer-bg);
	color: var(--footer-text);
	padding: 44px 20px 28px;
	margin-top: 16px;
	border-top: 4px solid var(--coral);
	border-radius: 28px 28px 0 0;
}

.footer-inner {
	max-width: var(--maxw);
	margin: 0 auto;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px 32px;
	margin-bottom: 28px;
}

.footer-brand strong {
	color: #fff;
	font-size: 1.1rem;
	display: block;
	margin-bottom: 8px;
}

.footer-meta {
	margin: 0;
	font-size: 0.9rem;
	color: var(--footer-text);
}

.footer-contact p {
	margin: 0 0 6px 0;
	font-size: 0.95rem;
}

.footer-contact a {
	color: var(--accent);
	text-decoration: none;
}

.footer-contact a:hover {
	color: #9ee5d6;
	text-decoration: underline;
}

.footer-bottom {
	padding-top: 20px;
	border-top: 1px solid #333;
	font-size: 0.85rem;
	color: #888;
}

@media screen and (max-width: 640px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}

	:root {
		--header-h: 56px;
	}

	.logo-tagline {
		font-size: 0.62rem;
		white-space: normal;
		line-height: 1.2;
		max-width: 200px;
	}

	.logo-text-block {
		gap: 0;
	}

	.logo-mark {
		width: 38px;
		height: 38px;
		border-radius: 12px;
	}
}

div.invest-alert {
	border: 1px solid var(--border);
	background: var(--bg-soft);
	padding: 14px 16px;
	margin: 20px 0;
	font-size: 0.9rem;
	border-radius: 14px;
}
