/**
 * Wander Wise Pro — Social Layer (Phase 2a) : Auth + profile styles
 * Reuses brand vars if present; falls back to twilight palette.
 */
.ww-auth-wrap, .ww-profile-wrap {
	--ww-primary: var(--primary, #6B2FA0);
	--ww-primary-deep: #3B1A5E;
	--ww-gold: var(--gold, #D4A24C);
	--ww-ink: #241633;
	--ww-sub: #6E6180;
	--ww-mist: #F6F2FB;
	--ww-line: #EBE1F6;
	font-family: inherit;
	color: var(--ww-ink);
}

/* ── Auth card ─────────────────────────────────────────────── */
.ww-auth-wrap {
	display: flex;
	justify-content: center;
	padding: 3rem 1rem;
}
.ww-auth-card {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border: 1px solid var(--ww-line);
	border-radius: 20px;
	padding: 2rem;
	box-shadow: 0 10px 40px rgba(74,29,115,.08);
}
.ww-auth-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.7rem;
	margin: 0 0 .35rem;
	color: var(--ww-ink);
}
.ww-auth-sub { color: var(--ww-sub); margin: 0 0 1.5rem; font-size: .95rem; }

.ww-field { margin-bottom: 1rem; }
.ww-field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--ww-ink); }
.ww-field input, .ww-field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--ww-line);
	border-radius: 12px;
	padding: .7rem .85rem;
	font: inherit;
	font-size: .95rem;
	color: var(--ww-ink);
	background: var(--ww-mist);
}
.ww-field input:focus, .ww-field textarea:focus {
	outline: 2px solid var(--ww-primary);
	border-color: transparent;
	background: #fff;
}
.ww-hint { display: block; margin-top: .3rem; font-size: .78rem; color: var(--ww-sub); }

/* Honeypot — visually removed, still in DOM for bots. */
.ww-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.ww-btn {
	display: inline-block;
	border: none;
	border-radius: 999px;
	padding: .75rem 1.5rem;
	font: inherit;
	font-weight: 600;
	font-size: .95rem;
	cursor: pointer;
}
.ww-btn-primary {
	width: 100%;
	color: #fff;
	background: linear-gradient(135deg, #3B1A5E, #6B2FA0, #B0688F);
	margin-top: .5rem;
}
.ww-btn-primary.is-busy { opacity: .7; cursor: default; }
.ww-btn-ghost {
	background: #fff;
	border: 1.5px solid var(--ww-line);
	color: var(--ww-primary);
}

.ww-auth-alt { text-align: center; margin-top: 1.25rem; font-size: .9rem; color: var(--ww-sub); }
.ww-auth-alt a { color: var(--ww-primary); font-weight: 600; text-decoration: none; }

.ww-auth-msg { border-radius: 10px; padding: .6rem .8rem; margin-bottom: 1rem; font-size: .9rem; }
.ww-auth-msg.is-error { background: #FBECEE; color: #B23B4E; }
.ww-auth-msg.is-ok { background: #E7F6EE; color: #1E7A46; }

/* ── Profile ───────────────────────────────────────────────── */
.ww-profile-wrap { max-width: 760px; margin: 2rem auto; padding: 0 1rem; }
.ww-profile-head {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}
.ww-avatar {
	width: 96px; height: 96px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--ww-gold);
}
.ww-profile-id { flex: 1; min-width: 180px; }
.ww-profile-name {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.6rem;
	margin: 0;
	color: var(--ww-ink);
}
.ww-profile-handle { color: var(--ww-primary); font-weight: 600; }
.ww-profile-state {
	display: inline-block;
	margin-left: .5rem;
	background: var(--ww-mist);
	border-radius: 999px;
	padding: .1rem .6rem;
	font-size: .8rem;
	color: var(--ww-sub);
}
.ww-logout { margin-left: .5rem; color: var(--ww-sub); font-size: .85rem; text-decoration: underline; }
.ww-profile-bio { margin: 1rem 0 0; color: var(--ww-ink); line-height: 1.55; }

.ww-edit {
	background: var(--ww-mist);
	border: 1px solid var(--ww-line);
	border-radius: 16px;
	padding: 1.25rem;
	margin-top: 1.25rem;
}

.ww-section { margin-top: 2rem; }
.ww-section-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.25rem;
	color: var(--ww-ink);
	margin: 0 0 1rem;
}
.ww-empty { color: var(--ww-sub); font-style: italic; }

.ww-card-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 1rem;
}
.ww-mini-card a {
	display: block;
	border: 1px solid var(--ww-line);
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: var(--ww-ink);
	background: #fff;
}
.ww-mini-thumb {
	display: block;
	height: 90px;
	background-size: cover;
	background-position: center;
	background-color: var(--ww-mist);
}
.ww-mini-title { display: block; padding: .6rem .7rem 0; font-weight: 600; font-size: .92rem; }
.ww-mini-state { display: block; padding: 0 .7rem .6rem; font-size: .78rem; color: var(--ww-sub); }

.ww-review-list-p { list-style: none; margin: 0; padding: 0; }
.ww-review-p {
	border: 1px solid var(--ww-line);
	border-radius: 14px;
	padding: 1rem;
	margin-bottom: .85rem;
	background: #fff;
}
.ww-review-place { font-weight: 700; color: var(--ww-primary); text-decoration: none; }
.ww-review-text-p { margin: .35rem 0 0; color: var(--ww-ink); line-height: 1.5; }

@media (max-width: 480px) {
	.ww-auth-card { padding: 1.5rem; }
	.ww-profile-state { display: block; margin: .4rem 0 0; }
}

/* ── 2a.1: cover banner, avatar overlap, uploads, socials ──── */
.ww-cover {
	position: relative;
	height: 200px;
	border-radius: 18px;
	background-size: cover;
	background-position: center;
	background-color: var(--ww-mist);
	margin-bottom: 0;
}
.ww-cover.is-empty {
	background-image: linear-gradient(135deg, #3B1A5E, #6B2FA0, #B0688F);
}
.ww-cover-upload {
	position: absolute;
	right: 12px; bottom: 12px;
	background: rgba(255,255,255,.9);
	color: var(--ww-primary);
	font-size: .82rem;
	font-weight: 600;
	padding: .4rem .8rem;
	border-radius: 999px;
	cursor: pointer;
}
.ww-profile-head.has-cover {
	align-items: flex-start;
	margin-top: -60px;
	padding-left: .5rem;
}
/* Only the avatar overlaps the cover; name + actions clear it. */
.ww-profile-head.has-cover .ww-profile-id { padding-top: 68px; }
.ww-profile-head.has-cover .ww-profile-actions { padding-top: 70px; }

.ww-avatar-wrap { position: relative; width: 120px; height: 120px; flex: 0 0 auto; }
.ww-avatar {
	width: 120px; height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #fff;
	background: var(--ww-mist);
	box-shadow: 0 4px 16px rgba(74,29,115,.15);
}
.ww-avatar-upload {
	position: absolute;
	right: 2px; bottom: 6px;
	width: 32px; height: 32px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6B2FA0, #B0688F);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.2rem; line-height: 1;
	cursor: pointer;
	border: 2px solid #fff;
}
.ww-profile-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }

.ww-socials { display: flex; gap: .6rem; margin-top: 1rem; }
.ww-social {
	width: 40px; height: 40px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: #fff;
	text-decoration: none;
	transition: transform .12s;
}
.ww-social:hover { transform: translateY(-2px); }
.ww-social-instagram { background: linear-gradient(45deg,#F58529,#DD2A7B,#8134AF); }
.ww-social-youtube { background: #FF0000; }
.ww-social-pinterest { background: #E60023; }

.ww-edit-sub {
	font-size: 1rem;
	margin: 1.25rem 0 .25rem;
	color: var(--ww-ink);
}
.ww-field-social input { background: #fff; }

@media (max-width: 480px) {
	.ww-cover { height: 140px; margin-bottom: 0; }
	.ww-avatar-wrap, .ww-avatar { width: 96px; height: 96px; }
	.ww-profile-head.has-cover { margin-top: -48px; }
	.ww-profile-head.has-cover .ww-profile-id { padding-top: 54px; }
	.ww-profile-head.has-cover .ww-profile-actions { padding-top: 0; width: 100%; margin: .5rem 0 0; }
}

/* Show/hide password toggle */
.ww-pass-wrap { position: relative; }
.ww-pass-wrap input { padding-right: 4rem; }
.ww-pass-toggle {
	position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
	background: none; border: none; cursor: pointer;
	color: var(--ww-primary, #6B2FA0); font: inherit; font-size: .82rem; font-weight: 600; padding: .3rem .5rem;
}

/* ── Persistent bottom nav bar ─────────────────────────────── */
.ww-social-navbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
	display: flex; align-items: stretch; justify-content: space-around;
	background: #fff; border-top: 1px solid var(--ww-line, #EBE1F6);
	box-shadow: 0 -4px 20px rgba(74,29,115,.08);
	padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
}
.ww-nav-item {
	position: relative; flex: 1;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	padding: 8px 4px; text-decoration: none; color: var(--ww-sub, #6E6180);
	font-size: .68rem; font-weight: 600;
}
.ww-nav-item svg { width: 24px; height: 24px; }
.ww-nav-item.is-active { color: var(--ww-primary, #6B2FA0); }
.ww-nav-noti .ww-bell-badge {
	position: absolute; top: 3px; right: 50%; margin-right: -22px;
	min-width: 17px; height: 17px; padding: 0 4px;
	background: #D6336C; color: #fff; border-radius: 999px;
	font-size: .66rem; font-weight: 700; line-height: 17px; text-align: center;
}
/* Keep content clear of the fixed bar */
.ww-feed-wrap, .ww-profile-wrap, .ww-notif-wrap, .ww-edit-wrap, .ww-auth-wrap { padding-bottom: 84px; }

/* Guest CTA variant */
.ww-navbar-guest { gap: .75rem; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
.ww-nav-guest-login {
	flex: 0 0 auto; align-self: center; color: var(--ww-primary, #6B2FA0);
	font-weight: 700; text-decoration: none; font-size: .95rem;
}
.ww-nav-guest-join {
	flex: 1; text-align: center; text-decoration: none;
	background: linear-gradient(135deg,#3B1A5E,#6B2FA0,#B0688F); color: #fff;
	font-weight: 700; font-size: .95rem; padding: .7rem 1rem; border-radius: 999px;
}

/* ── Google / OAuth button ─────────────────────────────────── */
.ww-oauth { margin-top: 1.1rem; }
.ww-oauth-or {
	position: relative; text-align: center; margin: 1rem 0;
}
.ww-oauth-or::before {
	content: ""; position: absolute; left: 0; right: 0; top: 50%;
	height: 1px; background: var(--ww-line, #EBE1F6);
}
.ww-oauth-or span {
	position: relative; background: #fff; padding: 0 .75rem;
	color: var(--ww-sub, #6E6180); font-size: .85rem;
}
.ww-google-btn {
	display: flex; align-items: center; justify-content: center; gap: .6rem;
	width: 100%; box-sizing: border-box;
	background: #fff; color: #241633;
	border: 1.5px solid var(--ww-line, #EBE1F6); border-radius: 999px;
	padding: .8rem 1rem; font-weight: 600; font-size: .95rem;
	text-decoration: none; transition: box-shadow .15s, border-color .15s;
}
.ww-google-btn:hover { border-color: #C9B7E4; box-shadow: 0 4px 14px rgba(74,29,115,.1); }
.ww-google-btn svg { flex: 0 0 auto; }

/* ── /join editorial redesign (v3.14) ──────────────────────── */
.ww-join {
	--ww-primary: #6B2FA0; --ww-ink: #241633; --ww-sub: #6E6180; --ww-line: #EBE1F6; --ww-mist: #F6F2FB;
	max-width: 460px; margin: 2rem auto 7rem; padding: 0 1rem;
}
.ww-join-hero {
	background: linear-gradient(150deg, #3B1A5E, #6B2FA0 55%, #B0688F);
	color: #fff; border-radius: 24px 24px 0 0; padding: 2.1rem 1.8rem 1.9rem;
	position: relative; overflow: hidden;
}
.ww-join-hero::after {
	content: ""; position: absolute; right: -40px; top: -40px;
	width: 160px; height: 160px; border-radius: 50%;
	background: rgba(255,255,255,.08);
}
.ww-join-badge {
	display: inline-block; background: rgba(255,255,255,.18);
	border-radius: 999px; padding: .32rem .85rem;
	font-size: .72rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
	margin-bottom: 1rem;
}
.ww-join-title {
	font-family: Georgia, "Times New Roman", serif; font-size: 2rem; line-height: 1.12;
	margin: 0 0 .55rem; color: #fff;
}
.ww-join-tag { margin: 0 0 1.4rem; opacity: .92; font-size: .98rem; line-height: 1.5; }
.ww-join-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.ww-join-benefits li { display: flex; align-items: center; gap: .7rem; font-size: .92rem; font-weight: 500; }
.ww-join-ico {
	flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
	background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.ww-join-card {
	background: #fff; border: 1px solid var(--ww-line); border-top: none;
	border-radius: 0 0 24px 24px; padding: 1.8rem;
	box-shadow: 0 24px 60px rgba(74,29,115,.14);
}
.ww-join-card-title {
	font-family: Georgia, serif; font-size: 1.2rem; color: var(--ww-ink); margin: 0 0 1.15rem;
}
.ww-join .ww-google-btn-lg { padding: .9rem 1rem; font-size: 1rem; }
.ww-join .ww-btn-block { width: 100%; box-sizing: border-box; margin-top: .5rem; }
.ww-join-trust { text-align: center; color: var(--ww-sub); font-size: .8rem; margin: 1rem 0 0; }
.ww-join .ww-auth-alt { text-align: center; margin-top: 1rem; color: var(--ww-sub); }

@media (max-width: 480px) {
	.ww-join-title { font-size: 1.7rem; }
}
