/* Nomad Plugin — formularze kont (logowanie, rejestracja, profil): czytelny komunikat i luźniejsze pola. */
.nomad-unconfirmed {
	display: block;
	margin: 0 0 1.2em;
	font-size: 1.7em;
	line-height: 1.35;
	font-weight: 700;
	color: #c40000;
}
.nomad-unconfirmed strong { font-weight: 800; }
.nomad-unconfirmed a { color: #c40000; text-decoration: underline; }

[id^="wpmem_"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
[id^="wpmem_"] select,
[id^="wpmem_"] textarea,
.wpmem_msg + form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]) {
	margin: 0.45em 0 1.3em;
}
[id^="wpmem_"] label { display: inline-block; margin-top: 0.5em; }
.wpmem_msg { margin-bottom: 1.4em; }

/* Potwierdzenie po zalogowaniu — na górze strony głównej. */
.nomad-login-notice {
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 1.5em;
	padding: 1.1em 1.4em;
	background: #1f6b3a;
	color: #fff;
	font-size: 1.9em;
	line-height: 1.3;
	text-align: center;
}
.nomad-login-notice strong { font-weight: 800; word-break: break-word; }

/* ===== Strona konta (Mój profil): logowanie, rejestracja, edycja danych — karty zamiast surowych pól ===== */
.yuki-entry-content figure.wp-block-table:has([id^="wpmem_"]) { margin: 0; }
.yuki-entry-content figure.wp-block-table:has([id^="wpmem_"]) table,
.yuki-entry-content figure.wp-block-table:has([id^="wpmem_"]) tbody,
.yuki-entry-content figure.wp-block-table:has([id^="wpmem_"]) tr,
.yuki-entry-content figure.wp-block-table:has([id^="wpmem_"]) td { display: block; width: 100%; border: 0; padding: 0; }
.yuki-entry-content figure.wp-block-table:has([id^="wpmem_"]) td:first-child { margin: 0 0 1.2rem; font-size: 1.15em; color: #6b5f54; }
.yuki-entry-content figure.wp-block-table:has([id^="wpmem_"]) strong { font-weight: inherit; }

:has(> #wpmem_login):has(> #wpmem_reg) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: 2rem;
	align-items: start;
}

#wpmem_login, #wpmem_reg, #wpmem_pwdchange_form, #wpmem_pwdreset_form, #wpmem_reconfirm_form, #wpmem_getusername_form {
	box-sizing: border-box;
	color: #2b211a;
}
#wpmem_login form, #wpmem_reg form, #wpmem_pwdchange_form, #wpmem_pwdreset_form, #wpmem_reconfirm_form, #wpmem_getusername_form {
	margin: 0;
	padding: 2rem 2rem 1.6rem;
	background: #fff;
	border: 1px solid rgba(43, 33, 26, 0.08);
	border-radius: 20px;
	box-shadow: 0 14px 38px rgba(43, 33, 26, 0.09);
}
#wpmem_login fieldset, #wpmem_reg fieldset, [id^="wpmem_"][id$="_form"] fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
[id^="wpmem_"] legend {
	float: left;
	width: 100%;
	margin: 0 0 1.2rem;
	padding: 0 0 0.7rem;
	font-size: 1.6em;
	font-weight: 800;
	line-height: 1.2;
	border-bottom: 3px solid #1f6b3a;
}
[id^="wpmem_"] legend + * { clear: both; }
[id^="wpmem_"] label { display: block; margin: 0.9rem 0 0; font-size: 0.95em; font-weight: 600; color: #4a3f35; }
[id^="wpmem_"] .req { color: #c40000; margin-left: 0.2em; }
[id^="wpmem_"] .div_text, [id^="wpmem_"] .div_textarea { margin: 0; }
[id^="wpmem_"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
[id^="wpmem_"] select, [id^="wpmem_"] textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.85em 1em;
	font: inherit;
	color: #2b211a;
	background: #fbf9f6;
	border: 1.5px solid #d9d1c7;
	border-radius: 12px;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
[id^="wpmem_"] input:focus, [id^="wpmem_"] select:focus, [id^="wpmem_"] textarea:focus {
	outline: 0;
	background: #fff;
	border-color: #1f6b3a;
	box-shadow: 0 0 0 4px rgba(31, 107, 58, 0.16);
}
[id^="wpmem_"] .button_div { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 1.4rem; }
[id^="wpmem_"] .button_div label { display: inline; margin: 0; font-weight: 400; }
[id^="wpmem_"] input[type="submit"], [id^="wpmem_"] .buttons {
	cursor: pointer;
	margin: 0 0 0 auto;
	padding: 0.9em 2em;
	font: inherit;
	font-weight: 700;
	color: #fff;
	background: #1f6b3a;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(31, 107, 58, 0.3);
	transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
[id^="wpmem_"] input[type="submit"]:hover, [id^="wpmem_"] .buttons:hover { background: #17552d; box-shadow: 0 8px 20px rgba(31, 107, 58, 0.38); }
[id^="wpmem_"] input[type="submit"]:active, [id^="wpmem_"] .buttons:active { transform: translateY(1px); }
[id^="wpmem_"] .link-text { margin-top: 1.1rem; font-size: 0.92em; color: #6b5f54; }
[id^="wpmem_"] .link-text a, #wpmem_login a { color: #1f6b3a; font-weight: 600; text-underline-offset: 3px; }

.nomad-reg-steps { margin: 0 0 1.2rem; padding: 1.1rem 1.4rem; background: #f4efe7; border-radius: 16px; font-size: 0.95em; color: #4a3f35; }
.nomad-reg-steps p { margin: 0 0 0.4rem; }
.nomad-reg-steps ol { margin: 0; padding-left: 1.3rem; }
.nomad-reg-steps li { margin: 0.25rem 0; }
.nomad-gift-note { margin: 1rem 0 0; padding: 0.2rem 0 0.2rem 1rem; border-left: 4px solid #1f6b3a; font-size: 0.92em; color: #6b5f54; }
.wpmem_msg { padding: 1rem 1.3rem; background: #f4efe7; border-radius: 14px; }

@media (max-width: 600px) {
	#wpmem_login form, #wpmem_reg form, [id^="wpmem_"][id$="_form"] { padding: 1.4rem 1.2rem 1.2rem; border-radius: 16px; }
	[id^="wpmem_"] input[type="submit"], [id^="wpmem_"] .buttons { width: 100%; margin: 0.4rem 0 0; }
}

/* Edycja danych (?a=edit): jedna węższa karta, sekcja profilu publicznego jako osobny blok. */
#wpmem_reg form#wpmem_profile_form { max-width: 760px; margin-left: auto; margin-right: auto; }
.nomad-public-profile { margin: 1.8rem 0 0.6rem; padding: 1.2rem 0 0; border-top: 1px solid rgba(43, 33, 26, 0.12); }
.nomad-public-profile strong { font-size: 1.15em; }
.nomad-public-profile small { color: #6b5f54; line-height: 1.5; }
[id^="wpmem_"] .div_text label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 0.7rem; margin: 0.5rem 0 0; font-weight: 500; }
[id^="wpmem_"] input[type="checkbox"] { width: 1.25em; height: 1.25em; margin: 0; accent-color: #1f6b3a; }
[id^="wpmem_"] .req-text { margin-top: 1rem; font-size: 0.88em; color: #6b5f54; }

/* ===== Profil zalogowanego: nagłówek, statystyki aktywności, ulubione zdjęcia ===== */
.nomad-activity { margin: 0 0 2rem; color: #2b211a; }
.nomad-activity__head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.4rem; }
.nomad-activity__avatar { flex: none; display: grid; place-items: center; width: 4.2rem; height: 4.2rem; border-radius: 50%; background: #1f6b3a; color: #fff; font-size: 1.9rem; font-weight: 800; }
.nomad-activity__head h2 { margin: 0; font-size: 1.7em; line-height: 1.15; }
.nomad-activity__head p { margin: 0.2rem 0 0; color: #6b5f54; word-break: break-word; }
.nomad-activity__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem; margin-bottom: 1.6rem; }
.nomad-activity__stat { padding: 1.1rem 1.2rem; background: #fff; border: 1px solid rgba(43, 33, 26, 0.08); border-radius: 16px; box-shadow: 0 8px 22px rgba(43, 33, 26, 0.07); }
.nomad-activity__stat strong { display: block; font-size: 2.1em; line-height: 1.1; color: #1f6b3a; }
.nomad-activity__stat span { display: block; margin-top: 0.35rem; font-size: 0.88em; color: #6b5f54; line-height: 1.35; }
.nomad-activity__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.6rem; }
.nomad-activity h3 { margin: 0 0 0.7rem; font-size: 1.15em; }
.nomad-activity__list { margin: 0; padding: 0; list-style: none; }
.nomad-activity__list li + li { margin-top: 0.5rem; }
.nomad-activity__list a { display: flex; align-items: center; gap: 0.8rem; padding: 0.5rem 0.7rem 0.5rem 0.5rem; background: #fff; border: 1px solid rgba(43, 33, 26, 0.08); border-radius: 14px; color: inherit; text-decoration: none; transition: box-shadow 0.15s, transform 0.1s; }
.nomad-activity__list a:hover { box-shadow: 0 8px 20px rgba(43, 33, 26, 0.12); transform: translateY(-1px); }
.nomad-activity__list img, .nomad-activity__noimg { flex: none; width: 3.4rem; height: 3.4rem; border-radius: 10px; object-fit: cover; background: #ece4d8; }
.nomad-activity__name { flex: 1; min-width: 0; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nomad-activity__meta { flex: none; font-size: 0.85em; color: #1f6b3a; font-weight: 700; }
.nomad-activity__note { padding: 1rem 1.3rem; background: #f4efe7; border-radius: 14px; color: #4a3f35; }

.nomad-favorites { margin: 0 0 2rem; }
.nomad-favorites__title { margin: 0 0 0.9rem; font-size: 1.3em; }
.nomad-favorites__count { color: #6b5f54; font-weight: 500; }
.nomad-favorites__grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.nomad-favorites__item { overflow: hidden; background: #fff; border: 1px solid rgba(43, 33, 26, 0.08); border-radius: 16px; box-shadow: 0 8px 22px rgba(43, 33, 26, 0.08); }
.nomad-favorites__item img { height: 170px; border-radius: 0; transition: transform 0.25s; }
.nomad-favorites__item:hover img { transform: scale(1.04); }
.nomad-favorites__item figcaption { padding: 0.6rem 0.8rem 0.8rem; margin: 0; font-size: 0.88em; color: #4a3f35; }
.nomad-favorites__remove { color: #c40000; }
.nomad-favorites__empty { padding: 1rem 1.3rem; background: #f4efe7; border-radius: 14px; color: #4a3f35; }

/* Motyw (prose) dopisuje numery i punkty do list — w kartach aktywności i linkach konta ich nie chcemy. */
.nomad-activity ol.nomad-activity__list, .nomad-activity + ul { list-style: none; margin: 0; padding: 0; }
.nomad-activity ol.nomad-activity__list > li, .nomad-activity + ul > li { padding: 0; }
.nomad-activity ol.nomad-activity__list > li::marker, .nomad-activity + ul > li::marker { content: ""; }
.nomad-activity ol.nomad-activity__list > li + li { margin-top: 0.5rem; }
.nomad-activity + ul { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0 0 2rem; }
.nomad-activity + ul > li { margin: 0; }
.nomad-activity + ul a { display: inline-block; padding: 0.7em 1.4em; background: #fff; border: 1.5px solid #1f6b3a; border-radius: 999px; color: #1f6b3a; font-weight: 700; text-decoration: none; transition: background 0.15s, color 0.15s; }
.nomad-activity + ul a:hover { background: #1f6b3a; color: #fff; }
