/*
 * Hukuk Price List — Front-end Styles
 * Based on the beach-bliss-cart design (RTL / Hebrew)
 * Font: 'Assistant' (Google Fonts — loaded via WordPress theme or @import below)
 */

@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;600;700;800&display=swap');

/* ──────────────────────────────────────────────────────────────────────────────
   Design Tokens
   ────────────────────────────────────────────────────────────────────────────── */
.hukuk-price-list {
	--hukuk-bg:              #f8f7f5;
	--hukuk-card-bg:         #ffffff;
	--hukuk-foreground:      #1e2433;
	--hukuk-muted:           #6b778a;
	--hukuk-border:          #dde2ea;
	--hukuk-primary:         #0ea5e9;
	--hukuk-price:           #c47a06;
	--hukuk-btn-bg:          #2e9e5e;
	--hukuk-btn-fg:          #ffffff;
	--hukuk-btn-hover:       #237a48;
	--hukuk-filter-active:   #0ea5e9;
	--hukuk-filter-inactive: #eef0f3;
	--hukuk-filter-text:     #6b778a;
	--hukuk-radius:          12px;
	--hukuk-radius-sm:       8px;
	--hukuk-shadow-sm:       0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
	--hukuk-shadow-md:       0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
}

/* ──────────────────────────────────────────────────────────────────────────────
   Container
   ────────────────────────────────────────────────────────────────────────────── */
.hukuk-price-list {
	direction: rtl;
	font-family: 'Assistant', 'Segoe UI', Arial, sans-serif;
	background-color: var(--hukuk-bg);
	width: 100%;
	max-width: 860px;
	margin: 0 auto;
	padding: 32px 16px;
	box-sizing: border-box;
}

/* ──────────────────────────────────────────────────────────────────────────────
   Section Header
   ────────────────────────────────────────────────────────────────────────────── */
.hukuk-section-title {
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--hukuk-foreground);
	text-align: center;
	margin: 0 0 8px;
	line-height: 1.25;
}

.hukuk-section-subtitle {
	font-size: 1rem;
	color: var(--hukuk-muted);
	text-align: center;
	margin: 0 0 28px;
	line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────────────────────────
   Filter Buttons
   ────────────────────────────────────────────────────────────────────────────── */
.hukuk-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 28px;
}

.hukuk-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 22px;
	border-radius: 999px !important;
	border: none !important;
	outline: none !important;
	box-shadow: none;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	background-color: var(--hukuk-filter-inactive);
	color: var(--hukuk-filter-text);
	transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
	white-space: nowrap;
}

.hukuk-filter-btn:hover {
	background-color: #d8dde5;
	color: var(--hukuk-foreground);
}

.hukuk-filter-btn.is-active {
	background-color: var(--hukuk-filter-active);
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(162, 66, 38, .40);
}

/* ──────────────────────────────────────────────────────────────────────────────
   Items List
   ────────────────────────────────────────────────────────────────────────────── */
.hukuk-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ──────────────────────────────────────────────────────────────────────────────
   Card
   ────────────────────────────────────────────────────────────────────────────── */
.hukuk-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	background-color: var(--hukuk-card-bg);
	border: 1px solid var(--hukuk-border);
	border-radius: var(--hukuk-radius);
	padding: 14px 16px;
	box-shadow: var(--hukuk-shadow-sm);
	transition: box-shadow .2s ease, transform .2s ease;
}

.hukuk-card:hover {
	box-shadow: var(--hukuk-shadow-md);
	transform: translateY(-2px);
}

/* Hidden by JS filter */
.hukuk-card[hidden] {
	display: none !important;
}

/* ── Badge ─────────────────────────────────────────────────────────────────── */
.hukuk-badge {
	position: absolute;
	top: -10px;
	right: 16px;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	color: #ffffff;
	background-color: var(--hukuk-primary);
	white-space: nowrap;
	line-height: 1.5;
}

/* ── Image ─────────────────────────────────────────────────────────────────── */
.hukuk-card-image {
	flex-shrink: 0;
}

.hukuk-card-image img {
	width: 72px !important;
	height: 72px !important;
	border-radius: var(--hukuk-radius-sm);
	object-fit: cover !important;
	display: block;
}

/* ── Body ──────────────────────────────────────────────────────────────────── */
.hukuk-card-body {
	flex: 1;
	min-width: 0;
}

.hukuk-service-name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--hukuk-foreground);
	margin: 0 0 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}

.hukuk-description {
	font-size: 16px;
	color: var(--hukuk-muted);
	margin: 0 0 4px;
	line-height: 1.5;

	/* Allow up to 2 lines */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hukuk-category-label {
	display: inline-block;
	font-size: 0.75rem;
	color: #A24226;
	margin-top: 2px;
}

/* ── Meta (price + button) ─────────────────────────────────────────────────── */
.hukuk-card-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	flex-shrink: 0;
}

.hukuk-price {
	font-size: 1.125rem;
	font-weight: 800;
	color: var(--hukuk-price);
	white-space: nowrap;
}

/* ── Button ────────────────────────────────────────────────────────────────── */
.hukuk-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 16px;
	border-radius: 999px;
	background-color: var(--hukuk-btn-bg);
	color: var(--hukuk-btn-fg);
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .18s ease, box-shadow .18s ease;
	cursor: pointer;
	border: none;
	outline: none;
}

.hukuk-btn--no-link {
	background-color: #9eaabb;
	cursor: default;
	pointer-events: none;
}

.hukuk-btn:hover,
.hukuk-btn:focus-visible {
	background-color: var(--hukuk-btn-hover);
	box-shadow: 0 3px 10px rgba(46, 158, 94, .35);
	color: var(--hukuk-btn-fg);
	text-decoration: none;
}

/* ──────────────────────────────────────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.hukuk-price-list {
		padding: 20px 12px;
	}

	.hukuk-card {
		flex-wrap: wrap;
		gap: 12px;
	}

	.hukuk-card-meta {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		width: 100%;
	}

	.hukuk-service-name {
		white-space: normal;
	}

	.hukuk-card-image img {
		width: 60px;
		height: 60px;
	}

	.hukuk-section-title {
		font-size: 1.4rem;
	}
}
