/* CCAA Alumni Directory - front-end styles */

.ccaa-ad-wrap {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 32px;
	max-width: 1200px;
	margin: 0 auto;
	font-family: inherit;
	color: #1f2430;
}

/* ---------- Sidebar ---------- */

.ccaa-ad-sidebar {
	border-right: 1px solid #e6e6ea;
	padding-right: 24px;
}

.ccaa-ad-sidebar-block {
	margin-bottom: 28px;
}

.ccaa-ad-sidebar-block h4 {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6b7280;
	margin: 0 0 10px;
}

.ccaa-ad-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 260px;
	overflow-y: auto;
}

.ccaa-ad-filter-list li {
	padding: 6px 8px;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	color: #374151;
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.ccaa-ad-filter-list li:hover {
	background: #f3f4f6;
}

.ccaa-ad-filter-list li.is-active {
	background: #1a3353;
	color: #fff;
	font-weight: 600;
}

.ccaa-ad-count {
	color: inherit;
	opacity: 0.65;
	font-size: 12px;
}

/* ---------- Toolbar ---------- */

.ccaa-ad-toolbar {
	display: grid;
	grid-template-columns: 1fr 200px 180px 180px;
	gap: 12px;
	margin-bottom: 16px;
}

.ccaa-ad-search-input,
.ccaa-ad-select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d7d9e0;
	border-radius: 8px;
	font-size: 14px;
	background: #fff;
}

.ccaa-ad-search-input:focus,
.ccaa-ad-select:focus {
	outline: none;
	border-color: #1a3353;
	box-shadow: 0 0 0 3px rgba(26, 51, 83, 0.15);
}

.ccaa-ad-meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	font-size: 13px;
	color: #6b7280;
}

.ccaa-ad-page-size-label select {
	margin: 0 4px;
	padding: 4px 8px;
	border-radius: 6px;
	border: 1px solid #d7d9e0;
}

/* ---------- Card grid ---------- */

.ccaa-ad-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	min-height: 200px;
}

.ccaa-ad-card {
	display: flex;
	gap: 14px;
	height: 150px;
	padding: 16px;
	border: 1px solid #e6e6ea;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	overflow: hidden;
}

.ccaa-ad-card-photo {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	overflow: hidden;
	background: #f3f4f6;
}

.ccaa-ad-card-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ccaa-ad-card-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.ccaa-ad-card-name {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #111827;
}

.ccaa-ad-card-year {
	font-size: 12.5px;
	color: #1a3353;
	font-weight: 500;
	margin-bottom: 2px;
}

.ccaa-ad-card-location {
	font-size: 12.5px;
	color: #6b7280;
	margin-bottom: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ccaa-ad-card-bio {
	font-size: 12.5px;
	color: #4b5563;
	margin: 0;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ccaa-ad-empty,
.ccaa-ad-loading {
	grid-column: 1 / -1;
	text-align: center;
	padding: 48px 0;
	color: #6b7280;
	font-size: 14px;
}

/* ---------- Pagination ---------- */

.ccaa-ad-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: 28px;
}

.ccaa-ad-page-btn {
	padding: 8px 14px;
	border: 1px solid #d7d9e0;
	background: #fff;
	border-radius: 8px;
	font-size: 13px;
	cursor: pointer;
	color: #374151;
}

.ccaa-ad-page-btn:hover:not(:disabled) {
	background: #f3f4f6;
}

.ccaa-ad-page-btn.is-active {
	background: #1a3353;
	border-color: #1a3353;
	color: #fff;
}

.ccaa-ad-page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.ccaa-ad-page-ellipsis {
	padding: 8px 4px;
	color: #9ca3af;
}

/* ---------- Restricted access notice ---------- */

.ccaa-ad-restricted {
	max-width: 520px;
	margin: 48px auto;
	padding: 32px 28px;
	text-align: center;
	border: 1px solid #e6e6ea;
	border-radius: 12px;
	background: #fafafa;
}

.ccaa-ad-restricted p {
	font-size: 15px;
	color: #374151;
	margin: 0 0 16px;
}

.ccaa-ad-restricted-btn {
	display: inline-block;
	padding: 10px 20px;
	background: #1a3353;
	color: #fff !important;
	text-decoration: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
}

.ccaa-ad-restricted-btn:hover {
	background: #142a44;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
	.ccaa-ad-wrap {
		grid-template-columns: 1fr;
	}
	.ccaa-ad-sidebar {
		border-right: none;
		border-bottom: 1px solid #e6e6ea;
		padding-right: 0;
		padding-bottom: 16px;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}
	.ccaa-ad-toolbar {
		grid-template-columns: 1fr 1fr;
	}
	.ccaa-ad-search-input {
		grid-column: 1 / -1;
	}
	.ccaa-ad-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.ccaa-ad-sidebar {
		grid-template-columns: 1fr;
	}
	.ccaa-ad-toolbar {
		grid-template-columns: 1fr;
	}
	.ccaa-ad-cards {
		grid-template-columns: 1fr;
	}
	.ccaa-ad-card {
		height: auto;
		min-height: 130px;
	}
}
