/**
 * BPH Kakitangan — Frontend search/filter styles.
 *
 * These are intentionally minimal/structural so the site's existing
 * theme or Breakdance global styles remain in control of typography,
 * colours, and spacing scale.
 *
 * @package BPH_Kakitangan
 * @version 1.3.1
 */

/* ==========================================================================
   Wrapper
   ========================================================================== */

.bph-kk-wrap {
	font-family: inherit;
}

/* ==========================================================================
   Filters row
   ========================================================================== */

.bph-kk-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	align-items: center;
}

.bph-kk-search,
.bph-kk-select {
	flex: 1 1 200px;
	padding: 0.5rem 0.75rem;
	font-size: 0.9375rem;
	font-family: inherit;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background-color: #fff;
	color: inherit;
	min-width: 0;
	appearance: auto;
}

.bph-kk-search:focus,
.bph-kk-select:focus {
	outline: 2px solid #2563eb;
	outline-offset: 1px;
	border-color: #2563eb;
}

.bph-kk-select:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.bph-kk-btn-cari {
	flex: 0 0 auto;
	padding: 0.55rem 1.75rem;
	font-size: 0.9375rem;
	font-family: inherit;
	font-weight: 700;
	border: none;
	border-radius: 10px;
	background-color: #4b1e6e;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.bph-kk-btn-cari:hover {
	background-color: #3a1657;
}

.bph-kk-btn-reset {
	flex: 0 0 auto;
	font-size: 0.875rem;
	color: #6b7280;
	text-decoration: underline;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
}

.bph-kk-btn-reset:hover {
	color: #374151;
}

/* ==========================================================================
   Results list
   ========================================================================== */

.bph-kk-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* ==========================================================================
   Card — horizontal 3-column layout
   ========================================================================== */

.bph-kk-card {
	display: grid;
	grid-template-columns: 1fr 1.4fr 1.4fr;
	align-items: stretch;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	margin-bottom: 0;
	overflow: hidden;
}

/* Columns */
.bph-kk-card__col {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 1.5rem 2rem;
}

.bph-kk-card__col--photo {
	align-items: center;
	border-right: 1px solid #e5e7eb;
}

.bph-kk-card__col--info {
	align-items: center;
	text-align: center;
	border-right: 1px solid #e5e7eb;
}

.bph-kk-card__col--contact {
	justify-content: center;
	gap: 0.75rem;
}

/* Photo */
.bph-kk-card__img {
	width: 160px;
	height: 190px;
	object-fit: cover;
	object-position: top;
	display: block;
}

.bph-kk-card__img--placeholder {
	width: 160px;
	height: 190px;
	background-color: #f3f4f6;
}

/* Name */
.bph-kk-card__name {
	font-size: 1.1rem !important;
	font-weight: 700;
	margin: 0.875rem 0 0;
	line-height: 1.4;
	text-align: center;
	color: #111827;
}

/* Info column */
.bph-kk-card__jawatan {
	font-size: 0.9375rem;
	font-weight: 400;
	color: #374151;
	margin: 0 0 0.4rem;
}

.bph-kk-card__unit,
.bph-kk-card__seksyen {
	font-size: 1rem;
	font-weight: 700;
	color: #111827;
	margin: 0;
	line-height: 1.4;
}

.bph-kk-card__seksyen {
	margin-top: 0.2rem;
}

/* Contact column */
.bph-kk-card__telefon,
.bph-kk-card__email {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	font-size: 0.9375rem;
	color: #374151;
}

.bph-kk-card__telefon a,
.bph-kk-card__email a {
	color: inherit;
	text-decoration: none;
}

.bph-kk-card__telefon a:hover,
.bph-kk-card__email a:hover {
	text-decoration: underline;
}

/* Icons */
.bph-kk-icon {
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
	fill: #4b1e6e;
}

/* ==========================================================================
   Responsive — stack on small screens
   ========================================================================== */

@media ( max-width: 640px ) {
	.bph-kk-card {
		grid-template-columns: 1fr;
	}

	.bph-kk-card__col {
		border-right: none;
		border-bottom: 1px solid #e5e7eb;
		padding: 1.25rem;
	}

	.bph-kk-card__col:last-child {
		border-bottom: none;
	}
}

/* ==========================================================================
   States
   ========================================================================== */

.bph-kk-loading,
.bph-kk-no-results {
	color: #9ca3af;
	font-style: italic;
	padding: 1.5rem 0;
	margin: 0;
}
