/* 123Greetings Reader Contribution Manager — front end.
   Everything is scoped under .g123rc-* so it never clashes with Soledad or Elementor.
   Colours, radius, form width and message size can be changed from
   Reader Contributions → Settings → Appearance & CSS (no code needed).
   Your own CSS goes in the same screen. */

.g123rc-form-wrap,
.g123rc-reader-messages,
.g123rc-pagination {
	--g123rc-accent: #d6336c;
	--g123rc-accent-dark: #b02556;
	--g123rc-icon: #2a6fb0;
	--g123rc-border: #e3e3e8;
	--g123rc-bg: #ffffff;
	--g123rc-soft: #fbf7f9;
	--g123rc-text: #2b2b33;
	--g123rc-muted: #6b6b76;
	--g123rc-radius: 10px;
	box-sizing: border-box;
}
.g123rc-form-wrap *,
.g123rc-reader-messages * { box-sizing: border-box; }

/* ---------- Form ---------- */
.g123rc-form-wrap {
	max-width: var(--g123rc-form-width, 640px);
	margin: 0 auto 2rem;
	padding: 1.5rem;
	background: var(--g123rc-soft);
	border: 1px solid var(--g123rc-border);
	border-radius: var(--g123rc-radius);
	color: var(--g123rc-text);
}
.g123rc-form-title { margin: 0 0 1rem; }
.g123rc-field { margin-bottom: 1rem; }
.g123rc-field label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .95rem; }
.g123rc-req { color: #c0152f; }
.g123rc-field input[type="text"],
.g123rc-field input[type="email"],
.g123rc-field input[type="url"],
.g123rc-field select,
.g123rc-field textarea {
	width: 100%;
	padding: .65rem .8rem;
	font: inherit;
	color: var(--g123rc-text);
	background: var(--g123rc-bg);
	border: 1px solid var(--g123rc-border);
	border-radius: 8px;
	line-height: 1.4;
}
.g123rc-field textarea { resize: vertical; min-height: 140px; }
.g123rc-field input:focus,
.g123rc-field select:focus,
.g123rc-field textarea:focus {
	outline: 2px solid var(--g123rc-accent);
	outline-offset: 1px;
	border-color: var(--g123rc-accent);
}
.g123rc-field small,
.g123rc-field .g123rc-help { display: block; margin-top: .3rem; color: var(--g123rc-muted); font-size: .8rem; }
.g123rc-field .g123rc-invalid { border-color: #c0152f; }

/* honeypot: off-screen, not display:none (some bots skip display:none) */
.g123rc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.g123rc-submit {
	display: inline-block;
	padding: .75rem 1.6rem;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--g123rc-accent);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s;
}
.g123rc-submit:hover { background: var(--g123rc-accent-dark); }
.g123rc-submit[disabled] { opacity: .6; cursor: wait; }

.g123rc-msg { margin-top: 1rem; }
.g123rc-msg:empty { display: none; }
.g123rc-msg.is-error,
.g123rc-msg.is-success { padding: .75rem 1rem; border-radius: 8px; font-size: .95rem; }
.g123rc-msg.is-error { background: #fdecee; color: #8a1226; border: 1px solid #f5c2c9; }
.g123rc-msg.is-success { background: #e9f7ef; color: #14532d; border: 1px solid #b7e4c7; }

/* ---------- Approved messages (list layout, same idea as the manual lists) ---------- */
.g123rc-reader-messages {
	margin: 1rem 0;
	color: var(--g123rc-text);
}
.g123rc-reader { margin: 0 0 1.4rem; }

.g123rc-reader-name {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 0 0 .6rem;
	padding: 0 0 .35rem;
	font-family: var(--g123rc-title-font, Georgia, "Times New Roman", serif);
	font-size: var(--g123rc-title-size, .9rem);
	font-weight: 400;
	line-height: 1.3;
	color: var(--g123rc-title-color, #444);
	border-bottom: 1px solid var(--g123rc-border);
	position: relative;
}
.g123rc-reader-name::after {          /* short coloured underline accent */
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 70px;
	height: 2px;
	background: var(--g123rc-icon);
}
.g123rc-ico-user { width: var(--g123rc-name-icon-size, 14px); height: var(--g123rc-name-icon-size, 14px); color: var(--g123rc-name-icon, var(--g123rc-accent)); flex: none; }
.g123rc-reader-social { margin-left: .4rem; font-family: inherit; font-size: .8rem; color: var(--g123rc-icon); text-decoration: none; }
.g123rc-reader-social:hover { text-decoration: underline; }

.g123rc-msg-list { list-style: none; margin: 0; padding: 0; }
.g123rc-msg-list li {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	margin: 0 0 .85rem;
	padding: 0;
	font-family: var(--g123rc-msg-font, inherit);
	font-size: var(--g123rc-msg-size, .9rem);
	color: var(--g123rc-msg-color, var(--g123rc-text));
	line-height: 1.6;
}
.g123rc-msg-list li::before { content: none !important; }   /* neutralise theme bullets */
.g123rc-msg-text { flex: 1; min-width: 0; white-space: pre-line; overflow-wrap: anywhere; }
.g123rc-msg-text::before { content: "\201C"; }
.g123rc-msg-text::after  { content: "\201D"; }

.g123rc-copy {
	position: relative;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	padding: 0;
	color: var(--g123rc-icon);
	background: transparent;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.g123rc-copy:hover,
.g123rc-copy:focus-visible { background: rgba(42, 111, 176, .12); outline: none; }
.g123rc-copy.is-copied { color: #1a7f37; }
.g123rc-copy.is-copied::after {
	content: attr(data-copied);
	position: absolute;
	left: 28px;
	top: 50%;
	transform: translateY(-50%);
	padding: 2px 8px;
	font-size: .75rem;
	line-height: 1.4;
	white-space: nowrap;
	color: #fff;
	background: #1a7f37;
	border-radius: 4px;
}

.g123rc-pagination { margin: 1rem 0 2rem; text-align: center; }
.g123rc-pagination .page-numbers {
	display: inline-block;
	min-width: 2.2rem;
	padding: .4rem .7rem;
	margin: 0 .15rem;
	border: 1px solid var(--g123rc-border);
	border-radius: 6px;
	text-decoration: none;
	color: var(--g123rc-text);
}
.g123rc-pagination .page-numbers.current { background: var(--g123rc-accent); border-color: var(--g123rc-accent); color: #fff; }

/* ---------- Searchable category dropdown ---------- */
.g123rc-cb-input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b6b76' stroke-width='2'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right .8rem center !important;
	padding-right: 2.2rem !important;
}
.g123rc-cb-list {
	margin-top: 4px !important;
	background: var(--g123rc-bg);
	border: 1px solid var(--g123rc-border);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.g123rc-cb-item { padding: .5rem .8rem; font-size: .95rem; line-height: 1.35; cursor: pointer; color: var(--g123rc-text); }
.g123rc-cb-item::before { content: none !important; }
.g123rc-cb-item.is-active { background: var(--g123rc-soft); box-shadow: inset 3px 0 0 var(--g123rc-accent); }
.g123rc-cb-empty,
.g123rc-cb-more { padding: .5rem .8rem; font-size: .85rem; color: var(--g123rc-muted); }

/* ---------- Social media picker (form) and icons (reader messages) ---------- */
.g123rc-form-wrap,
.g123rc-reader-messages {
	--g123rc-soc-facebook: #1877F2;
	--g123rc-soc-instagram: #E4405F;
	--g123rc-soc-pinterest: #E60023;
	--g123rc-soc-x: #111111;
	--g123rc-soc-youtube: #FF0000;
	--g123rc-soc-linkedin: #0A66C2;
	--g123rc-soc-website: #5b6470;
}
.g123rc-soc--facebook  { --soc: var(--g123rc-soc-facebook); }
.g123rc-soc--instagram { --soc: var(--g123rc-soc-instagram); }
.g123rc-soc--pinterest { --soc: var(--g123rc-soc-pinterest); }
.g123rc-soc--x         { --soc: var(--g123rc-soc-x); }
.g123rc-soc--youtube   { --soc: var(--g123rc-soc-youtube); }
.g123rc-soc--linkedin  { --soc: var(--g123rc-soc-linkedin); }
.g123rc-soc--website   { --soc: var(--g123rc-soc-website); }

.g123rc-field .g123rc-label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .95rem; }
.g123rc-soc-pick { display: flex; flex-wrap: wrap; gap: .5rem; }
.g123rc-soc-btn {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .4rem .75rem;
	font: inherit;
	font-size: .85rem;
	line-height: 1.2;
	color: var(--g123rc-text);
	background: var(--g123rc-bg);
	border: 1px solid var(--g123rc-border);
	border-radius: 999px;
	cursor: pointer;
	transition: border-color .15s, background .15s, box-shadow .15s;
}
.g123rc-soc-btn .g123rc-ico { flex: none; color: var(--soc, var(--g123rc-muted)); }
.g123rc-soc-btn:hover { border-color: var(--soc, var(--g123rc-accent)); }
.g123rc-soc-btn[aria-pressed="true"] {
	background: var(--g123rc-soft);
	border-color: var(--soc, var(--g123rc-accent));
	box-shadow: inset 0 0 0 1px var(--soc, var(--g123rc-accent));
	font-weight: 600;
}
.g123rc-soc-rows { margin-top: .25rem; }
.g123rc-soc-row { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; }
.g123rc-soc-row[hidden] { display: none !important; }
.g123rc-soc-row .g123rc-soc-ico { display: inline-flex; flex: none; color: var(--soc, var(--g123rc-muted)); }
.g123rc-soc-row input[type="text"] { flex: 1 1 0; width: auto; min-width: 0; }
.g123rc-soc-remove {
	flex: none;
	width: 30px;
	height: 30px;
	padding: 0;
	font-size: 20px;
	line-height: 1;
	color: var(--g123rc-muted);
	background: transparent;
	border: 1px solid var(--g123rc-border);
	border-radius: 50%;
	cursor: pointer;
}
.g123rc-soc-remove:hover { color: var(--g123rc-text); border-color: var(--g123rc-text); }

.g123rc-soc-list { display: inline-flex; align-items: center; gap: .45rem; margin-left: .35rem; }
.g123rc-soc { display: inline-flex; line-height: 0; color: var(--soc, var(--g123rc-muted)); text-decoration: none; transition: transform .12s, opacity .12s; }
.g123rc-soc:hover { transform: translateY(-1px); opacity: .8; }
