/* ===========================================================
   Profile Showcase — frontend styles
   Colours come from :root vars set inline by the plugin:
   --evx-ps-theme, --evx-ps-card-bg, --evx-ps-pill
   =========================================================== */

.evx-ps-aw-wrap {
	max-width: 1200px;
	margin: 0 auto;
}

/* ---- DataTable controls (Show entries / Search) ---- */
.evx-ps-aw-wrap .dataTables_wrapper .dataTables_length,
.evx-ps-aw-wrap .dataTables_wrapper .dataTables_filter {
	margin-bottom: 18px;
	font-size: 15px;
	color: #333;
}
.evx-ps-aw-wrap .dataTables_length select,
.evx-ps-aw-wrap .dataTables_filter input {
	border: 1px solid #cfd4da;
	border-radius: 6px;
	padding: 7px 10px;
	outline: none;
}
.evx-ps-aw-wrap .dataTables_filter input:focus,
.evx-ps-aw-wrap .dataTables_length select:focus {
	border-color: var(--evx-ps-theme, #7a2226);
	box-shadow: 0 0 0 2px rgba(122, 34, 38, .15);
}

/* ---- Table ---- */
table.evx-ps-aw-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border-radius: 8px;
}
table.evx-ps-aw-table thead th {
	background: var(--evx-ps-theme, #7a2226);
	color: #fff;
	text-align: left;
	font-weight: 700;
	font-size: 18px;
	padding: 20px 24px;
	border: none;
}
table.evx-ps-aw-table tbody td {
	padding: 18px 24px;
	border-bottom: 1px solid #ececec;
	vertical-align: middle;
	color: #444;
	font-size: 16px;
}
table.evx-ps-aw-table tbody tr:hover {
	background: #faf6f6;
}

.evx-ps-aw-thumb {
	width: 130px;
	height: 130px;
	object-fit: cover;
	display: block;
	border-radius: 2px;
}

/* ---- View button ---- */
.evx-ps-aw-view {
	background: var(--evx-ps-theme, #7a2226);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 14px 34px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 6px 14px rgba(122, 34, 38, .25);
	transition: transform .12s ease, filter .12s ease;
}
.evx-ps-aw-view:hover { filter: brightness(1.08); transform: translateY(-1px); }
.evx-ps-aw-view:active { transform: translateY(0); }
.evx-ps-eye {
	width: 16px; height: 16px;
	display: inline-block;
	background: #fff;
	-webkit-mask: no-repeat center / contain;
	        mask: no-repeat center / contain;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5c-7 0-10 7-10 7s3 7 10 7 10-7 10-7-3-7-10-7zm0 11a4 4 0 110-8 4 4 0 010 8zm0-6a2 2 0 100 4 2 2 0 000-4z'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5c-7 0-10 7-10 7s3 7 10 7 10-7 10-7-3-7-10-7zm0 11a4 4 0 110-8 4 4 0 010 8zm0-6a2 2 0 100 4 2 2 0 000-4z'/%3E%3C/svg%3E");
}

/* ---- Pagination + info ---- */
.evx-ps-aw-wrap .dataTables_info { color: #555; padding-top: 18px; }
.evx-ps-aw-wrap .dataTables_paginate { padding-top: 12px; }
.evx-ps-aw-wrap .dataTables_paginate .paginate_button {
	border: 1px solid #e2c9ca !important;
	border-radius: 6px !important;
	margin: 0 3px !important;
	padding: 8px 14px !important;
	color: var(--evx-ps-theme, #7a2226) !important;
	background: #fff !important;
}
.evx-ps-aw-wrap .dataTables_paginate .paginate_button.current,
.evx-ps-aw-wrap .dataTables_paginate .paginate_button.current:hover {
	background: #fff !important;
	color: var(--evx-ps-theme, #7a2226) !important;
	border: 2px solid var(--evx-ps-theme, #7a2226) !important;
	font-weight: 700;
}
.evx-ps-aw-wrap .dataTables_paginate .paginate_button:hover {
	background: var(--evx-ps-theme, #7a2226) !important;
	color: #fff !important;
}

/* ===========================================================
   PROFILE CARD (modal) — screenshot 3
   =========================================================== */
.evx-ps-aw-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.evx-ps-aw-modal.open { display: flex; }
.evx-ps-aw-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .65);
	backdrop-filter: blur(3px);
}
.evx-ps-aw-modal-dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 380px;
	max-height: 90vh;          /* never taller than the screen */
	overflow-y: auto;          /* scroll inside instead of getting cut off */
	border-radius: 16px;
	animation: evxPop .18s ease;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.evx-ps-aw-modal-dialog::-webkit-scrollbar { width: 6px; }
.evx-ps-aw-modal-dialog::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 6px; }
@keyframes evxPop {
	from { opacity: 0; transform: scale(.96); }
	to   { opacity: 1; transform: scale(1); }
}
/* Close button pinned to the viewport corner — always reachable while scrolling */
.evx-ps-aw-modal-close {
	position: fixed;
	top: 18px;
	right: 18px;
	z-index: 3;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: #fff;
	color: #222;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
	transition: transform .12s ease;
}
.evx-ps-aw-modal-close:hover { transform: rotate(90deg); }

.evx-ps-card {
	background: var(--evx-ps-card-bg, #0d1424);
	border-radius: 16px;
	padding: 26px 24px 30px;
	text-align: center;
	color: #fff;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.evx-ps-card-logo {
	width: var(--evx-ps-logo-w, 150px);   /* size controlled from Settings */
	max-width: 100%;
	height: auto;
	margin: 0 auto 8px;
	display: block;
}
.evx-ps-card-by {
	font-weight: 700;
	letter-spacing: .5px;
	margin: 4px 0 4px;
	font-size: 14px;
	opacity: .95;
}
.evx-ps-card-org {
	font-weight: 700;
	font-size: 16px;
	line-height: 1.35;
	margin-bottom: 16px;
}
.evx-ps-card-photo-wrap {
	display: inline-block;
	border: 2px solid var(--evx-ps-pill, #b03a2e);
	padding: 3px;
	margin-bottom: 16px;
	border-radius: 4px;
	box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.evx-ps-card-photo {
	display: block;
	width: 210px;
	height: 250px;
	object-fit: cover;
	border-radius: 2px;
}
.evx-ps-card-name {
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 8px;
	color: #fff;
	line-height: 1.2;
}
.evx-ps-card-verified {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .3px;
	margin-bottom: 14px;
	opacity: .95;
}
.evx-ps-card-pill {
	display: block;
	background: var(--evx-ps-pill, #c0392b);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	padding: 13px 20px;
	border-radius: 30px;
	margin: 9px auto 0;
	max-width: 320px;
	box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.evx-ps-card-pill-alt { opacity: .92; }

.evx-ps-aw-loading {
	color: #fff;
	background: var(--evx-ps-card-bg, #0d1424);
	border-radius: 16px;
	padding: 60px 20px;
	text-align: center;
	font-size: 16px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
	.evx-ps-aw-thumb { width: 84px; height: 84px; }
	table.evx-ps-aw-table thead th { font-size: 15px; padding: 14px; }
	table.evx-ps-aw-table tbody td { padding: 12px; font-size: 14px; }
	.evx-ps-aw-view { padding: 10px 18px; font-size: 14px; }
	.evx-ps-card-name { font-size: 22px; }
	.evx-ps-card-photo { width: 180px; height: 220px; }
}

/* ===========================================================
   VOLUNTEER / SUBMISSION FORM  ([profile_showcase_form])
   =========================================================== */
.evx-ps-form-wrap {
	max-width: 640px;
	margin: 0 auto;
}
.evx-ps-form-intro {
	font-size: 15px;
	color: #444;
	margin: 0 0 18px;
	line-height: 1.5;
}
.evx-ps-form {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	padding: 26px 24px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}
.evx-ps-field { margin-bottom: 16px; }
.evx-ps-field label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: #333;
	margin-bottom: 6px;
}
.evx-ps-req { color: #d63638; }
.evx-ps-field input[type="text"],
.evx-ps-field input[type="email"],
.evx-ps-field input[type="file"],
.evx-ps-field textarea {
	width: 100%;
	border: 1px solid #cfd4da;
	border-radius: 8px;
	padding: 11px 13px;
	font-size: 15px;
	color: #222;
	background: #fff;
	box-sizing: border-box;
	outline: none;
	transition: border-color .12s ease, box-shadow .12s ease;
}
.evx-ps-field textarea { resize: vertical; }
.evx-ps-field input:focus,
.evx-ps-field textarea:focus {
	border-color: var(--evx-ps-theme, #7a2226);
	box-shadow: 0 0 0 3px rgba(122, 34, 38, .12);
}
.evx-ps-row {
	display: flex;
	gap: 16px;
}
.evx-ps-row .evx-ps-field { flex: 1; }
.evx-ps-hint {
	display: block;
	font-size: 12px;
	color: #888;
	margin-top: 5px;
	font-weight: 400;
}
.evx-ps-captcha input { max-width: 180px; }

.evx-ps-form-submit {
	background: var(--evx-ps-theme, #7a2226);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 14px 34px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	margin-top: 6px;
	box-shadow: 0 6px 14px rgba(122, 34, 38, .25);
	transition: transform .12s ease, filter .12s ease;
}
.evx-ps-form-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.evx-ps-form-submit:active { transform: translateY(0); }

/* Honeypot — visually hidden, never reserves layout space, still submits */
.evx-ps-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
	left: -9999px;
}

/* Kill stray empty paragraphs / line breaks that some themes & page
   builders (wpautop) inject around shortcode output — the usual cause of
   a blank gap at the top of the form. */
.evx-ps-form-wrap > p:empty,
.evx-ps-form p:empty { display: none !important; margin: 0 !important; }
.evx-ps-form br { display: none; }
.evx-ps-form > *:first-child { margin-top: 0 !important; }

/* Notices */
.evx-ps-form-note {
	border-radius: 8px;
	padding: 13px 16px;
	font-size: 15px;
	margin-bottom: 18px;
	line-height: 1.45;
}
.evx-ps-form-ok  { background: #e6f6ea; border: 1px solid #a7e0b8; color: #1e6b32; }
.evx-ps-form-err { background: #fdecec; border: 1px solid #f3b5b5; color: #a81f1f; }

@media (max-width: 560px) {
	.evx-ps-row { flex-direction: column; gap: 0; }
	.evx-ps-form { padding: 20px 16px; }
}

/* Extra (custom) fields on the profile card */
.evx-ps-card-extra {
	margin-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	padding-top: 12px;
	text-align: left;
}
.evx-ps-card-xrow {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	padding: 5px 2px;
	line-height: 1.4;
}
.evx-ps-card-xlabel { opacity: .7; }
.evx-ps-card-xval   { font-weight: 600; text-align: right; }
