/**
 * Association Members — Frontend styles.
 */

.amp-directory,
.amp-profile,
.amp-join {
	max-width: 1080px;
	margin: 0 auto;
	font-family: inherit;
}

.amp-directory-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.amp-directory-title {
	margin: 0;
	font-size: 1.6em;
}

.amp-directory-count {
	margin: 0;
	color: #64748b;
	font-size: .9em;
}

.amp-directory-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 22px;
}

.amp-directory-filters input[type="search"],
.amp-directory-filters select {
	padding: 8px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
}

.amp-directory-filters input[type="search"] {
	min-width: 220px;
}

.amp-btn {
	display: inline-block;
	padding: 9px 18px;
	border: 0;
	border-radius: 8px;
	background: #2563eb;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.amp-btn:hover {
	background: #1d4ed8;
	color: #fff;
}

/* Directory grid */
.amp-directory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
}

.amp-cols-1 { grid-template-columns: 1fr; }
.amp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.amp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.amp-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.amp-cols-2,
	.amp-cols-3,
	.amp-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.amp-cols-2,
	.amp-cols-3,
	.amp-cols-4 {
		grid-template-columns: 1fr;
	}
}

.amp-member-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow .15s ease, transform .15s ease;
}

.amp-member-card:hover {
	box-shadow: 0 8px 24px rgba(2, 6, 23, .12);
	transform: translateY(-2px);
}

.amp-card-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 20px 16px;
	color: inherit;
	text-decoration: none;
}

.amp-card-photo {
	width: 84px;
	height: 84px;
	object-fit: cover;
	border-radius: 50%;
	margin-bottom: 12px;
}

.amp-card-avatar,
.amp-profile-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: #2563eb;
	color: #fff;
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 12px;
}

.amp-card-name {
	margin: 0 0 6px;
	font-size: 1.05em;
}

.amp-card-tier,
.amp-profile-tier {
	display: inline-block;
	padding: 2px 12px;
	border-radius: 999px;
	color: #fff;
	font-size: .72em;
	font-weight: 600;
	letter-spacing: .02em;
	margin-bottom: 6px;
}

.amp-card-field,
.amp-card-location,
.amp-card-email,
.amp-card-phone {
	display: block;
	color: #64748b;
	font-size: .85em;
	margin-top: 3px;
}

.amp-card-email {
	color: #2563eb;
}

.amp-directory-pagination {
	margin-top: 26px;
}

.amp-directory-pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	margin: 0 2px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	text-decoration: none;
}

.amp-directory-pagination .page-numbers.current {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
}

.amp-directory-empty,
.amp-directory-disabled,
.amp-join-disabled,
.amp-profile-private,
.amp-profile-missing {
	padding: 24px;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	color: #475569;
}

/* Profile */
.amp-profile-header {
	display: flex;
	gap: 22px;
	align-items: center;
	margin-bottom: 26px;
}

.amp-profile-photo {
	width: 130px;
	height: 130px;
	object-fit: cover;
	border-radius: 50%;
}

.amp-profile-avatar {
	width: 130px;
	height: 130px;
	font-size: 48px;
	flex-shrink: 0;
}

.amp-profile-heading {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.amp-profile-name {
	margin: 0;
	font-size: 1.7em;
}

.amp-profile-tier {
	align-self: flex-start;
}

.amp-profile-standing {
	display: inline-block;
	align-self: flex-start;
	font-size: .8em;
	font-weight: 600;
	padding: 2px 12px;
	border-radius: 999px;
}

.amp-standing-ok {
	background: #dcfce7;
	color: #166534;
}

.amp-standing-no {
	background: #f1f5f9;
	color: #475569;
}

.amp-profile-location {
	color: #64748b;
	font-size: .9em;
}

.amp-profile-bio,
.amp-profile-fields {
	margin-top: 22px;
}

.amp-profile-bio h2,
.amp-profile-fields h2 {
	font-size: 1.15em;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 8px;
}

.amp-profile-dl {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px 28px;
}

.amp-profile-field {
	padding: 10px 0;
	border-bottom: 1px solid #f1f5f9;
}

.amp-profile-field dt {
	font-size: .78em;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #64748b;
	margin-bottom: 2px;
}

.amp-profile-field dd {
	margin: 0;
	font-weight: 500;
}

/* Join form */
.amp-join-title {
	margin-bottom: 16px;
}

.amp-join-errors {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
	border-radius: 10px;
	padding: 12px 18px;
	margin-bottom: 18px;
}

.amp-join-errors ul {
	margin: 0;
	padding-left: 18px;
}

.amp-join-success {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
	border-radius: 10px;
	padding: 20px 24px;
}

.amp-join-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.amp-join-section {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px;
}

.amp-join-section legend {
	font-weight: 700;
	padding: 0 8px;
}

.amp-tier-options {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.amp-tier-option {
	position: relative;
	display: block;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	padding: 14px;
	cursor: pointer;
	transition: border-color .12s ease, box-shadow .12s ease;
}

.amp-tier-option:hover {
	border-color: #93c5fd;
}

.amp-tier-option input {
	position: absolute;
	opacity: 0;
}

.amp-tier-option:has(input:checked) {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.amp-tier-featured {
	border-color: #f59e0b;
}

.amp-tier-option-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.amp-tier-option-name {
	font-weight: 700;
}

.amp-tier-option-price {
	font-weight: 800;
	color: #2563eb;
}

.amp-tier-option-duration {
	font-size: .82em;
	color: #64748b;
}

.amp-tier-option-desc {
	font-size: .82em;
	color: #475569;
	margin-top: 4px;
}

.amp-join-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px 20px;
}

.amp-field {
	margin: 0;
}

.amp-field label {
	display: block;
	font-weight: 600;
	font-size: .9em;
	margin-bottom: 5px;
}

.amp-field input[type="text"],
.amp-field input[type="email"],
.amp-field input[type="tel"],
.amp-field input[type="date"],
.amp-field select,
.amp-field textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
}

.amp-join-submit {
	margin: 0;
}

/* Minor helpers */
.amp-mt-1 { margin-top: 1em; }
