/**
 * LLW Membership Suite — front-end (shortcode) styling.
 *
 * Replaces the few inline rules the suite shipped with a small, self-contained
 * stylesheet that gives the member-facing shortcodes (login, profile, renewal,
 * directory, fellowship cards, payment forms) a more modern, consistent look
 * and makes the directory + fellowship tables responsive on phones.
 *
 * Everything is namespaced under `.llw-*` so it cannot disturb the host theme.
 */

.llw-card {
	border: 1px solid #e6e8eb;
	border-radius: 14px;
	padding: 22px 24px;
	margin: 14px 0;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px rgba(16, 24, 40, .06);
}

.llw-btn {
	display: inline-block;
	padding: 11px 22px;
	border-radius: 10px;
	background: linear-gradient(180deg, #2a7fc4 0%, #2271b1 100%);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
	box-shadow: 0 2px 6px rgba(34, 113, 177, .28);
}

.llw-btn:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(34, 113, 177, .32);
	color: #fff;
}

.llw-btn:active {
	transform: translateY(0);
}

.llw-btn--ghost {
	background: #fff;
	color: #2271b1;
	border: 1px solid #c9d6e2;
	box-shadow: none;
}

.llw-avatar {
	border-radius: 50%;
	width: 96px;
	height: 96px;
	object-fit: cover;
	box-shadow: 0 2px 8px rgba(16, 24, 40, .12);
}

/* ---- Member directory ---------------------------------------------------- */

.llw-directory-tools {
	margin: 0 0 16px;
}

.llw-directory-search {
	width: 100%;
	max-width: 360px;
	padding: 11px 16px;
	border-radius: 10px;
	border: 1px solid #d4d8dd;
	font-size: 15px;
}

.llw-directory {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}

.llw-directory .llw-card {
	margin: 0;
	text-align: center;
	padding: 20px 14px;
	transition: transform .15s ease, box-shadow .15s ease;
}

.llw-directory .llw-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(16, 24, 40, .12);
}

.llw-directory .llw-card .llw-avatar {
	width: 72px;
	height: 72px;
}

.llw-directory .llw-card .llw-dir-name {
	display: block;
	margin-top: 10px;
	font-weight: 600;
	color: #1d2327;
}

.llw-directory-empty {
	color: #646970;
	font-style: italic;
}

/* ---- Fellowship summary table / cards ------------------------------------ */

.llw-fellowship-table h3 {
	margin-top: 0;
}

.llw-fellowship-table__email {
	color: #646970;
	margin-top: -6px;
}

.llw-table {
	width: 100%;
	border-collapse: collapse;
}

.llw-table th[scope="row"] {
	text-align: left;
	color: #646970;
	font-weight: 600;
	padding: 8px 12px 8px 0;
	white-space: nowrap;
}

.llw-table td {
	padding: 8px 0;
	border-bottom: 1px solid #f0f1f3;
}

.llw-table tr:last-child td,
.llw-table tr:last-child th {
	border-bottom: 0;
}

/* ---- Form controls (shared across all shortcode forms) ------------------- */

.llw-dynamic-form input:not([type="radio"]):not([type="checkbox"]),
.llw-dynamic-form select,
.llw-dynamic-form textarea,
.llw-card form input[type="text"],
.llw-card form input[type="email"],
.llw-card form input[type="number"],
.llw-card form input[type="date"],
.llw-card form input[type="password"],
.llw-card form input[type="search"],
.llw-card form select,
.llw-card form textarea {
	border: 1px solid #d4d8dd;
	border-radius: 9px;
	padding: 9px 12px;
	font-size: 15px;
	background: #fff;
	color: #1d2327;
	transition: border-color .12s ease, box-shadow .12s ease;
	box-sizing: border-box;
}

.llw-dynamic-form input:focus,
.llw-dynamic-form select:focus,
.llw-dynamic-form textarea:focus,
.llw-card form input:focus,
.llw-card form select:focus,
.llw-card form textarea:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, .15);
	outline: none;
}

.llw-form-field label {
	color: #1d2327;
}

/* ---- Mobile ------------------------------------------------------------- */

@media screen and (max-width: 600px) {
	.llw-card {
		padding: 18px 18px;
	}

	.llw-directory {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
		gap: 12px;
	}

	.llw-table th[scope="row"] {
		display: block;
		padding-bottom: 0;
	}

	.llw-table td {
		display: block;
		padding-top: 2px;
		padding-bottom: 12px;
		border-bottom: 1px solid #f0f1f3;
	}
}
