/* ==========================================================
   Posenda Filter Sets v1.7.0 — posenda.com
   ========================================================== */

.posenda-filter-sets-wrapper {
	width: 100%;
	margin-bottom: 32px;
}

.posenda-filter-title {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 14px;
	color: #1a1a1a;
}

/* ── Filter Row ──────────────────────────────────────────── */
.posenda-filter-form {
	display: grid;
	gap: 16px;
	align-items: start;
}

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

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

/* ── Filter Group ────────────────────────────────────────── */
.posenda-filter-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* ── Label ───────────────────────────────────────────────── */
.posenda-filter-label {
	font-size: 0.85rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #111;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 4px;
}

.posenda-required {
	color: #e53e3e;
	font-size: 1rem;
	line-height: 1;
}

/* ── Required error message ──────────────────────────────── */
.posenda-required-msg {
	font-size: 0.78rem;
	color: #e53e3e;
	font-weight: 500;
	margin-top: 2px;
}

/* ── Select ──────────────────────────────────────────────── */
.posenda-select-wrap { position: relative; }

.posenda-select-wrap::after {
	content: '';
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 0; height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #666;
	pointer-events: none;
}

.posenda-filter-select {
	width: 100%;
	padding: 10px 38px 10px 14px;
	font-size: 0.9rem;
	color: #333;
	background: #fff;
	border: 1.5px solid #d0d5dd;
	border-radius: 6px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
	outline: none;
}

.posenda-filter-select:focus,
.posenda-filter-select:hover {
	border-color: #0071a1;
	box-shadow: 0 0 0 3px rgba(0, 113, 161, 0.12);
}

.posenda-filter-select.posenda-has-value {
	border-color: #0071a1;
	background: #f0f8ff;
	color: #0071a1;
	font-weight: 500;
}

/* Zorunlu alan hatası */
.posenda-filter-select.posenda-error {
	border-color: #e53e3e !important;
	box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15) !important;
	background: #fff5f5 !important;
}

/* ── Actions ─────────────────────────────────────────────── */
.posenda-filter-actions {
	margin-top: 14px;
	display: flex;
	align-items: center;
	gap: 10px;
}



.posenda-btn-reset {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	font-size: 0.85rem;
	font-weight: 500;
	color: #555;
	background: transparent;
	border: 1.5px solid #ccc;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
}

.posenda-btn-reset:hover {
	background: #f5f5f5;
	border-color: #999;
	color: #222;
}

/* ── Inline buton grubu (4. sütun) ─────────────────────── */
.posenda-filter-label--spacer {
	visibility: hidden;
	pointer-events: none;
}

.posenda-inline-actions {
	display: flex;
	gap: 8px;
	align-items: center;
	height: 100%;
}

/* Git butonu — yeşil */
.posenda-btn-go {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 20px;
	font-size: 0.9rem;
	font-weight: 700;
	color: #fff;
	background: #2e9e4f;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.posenda-btn-go:hover {
	background: #27883f;
	transform: translateX(2px);
}

/* Temizle butonu — ikon */
.posenda-btn-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	font-size: 1rem;
	color: #888;
	background: transparent;
	border: 1.5px solid #d0d5dd;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
	padding: 0;
}

.posenda-btn-reset:hover {
	background: #fdf2f2;
	border-color: #e74c3c;
	color: #e74c3c;
}

/* ── Zorunlu alan validasyonu ────────────────────────────── */
.posenda-required {
	color: #e74c3c;
	margin-left: 2px;
}

.posenda-filter-select.posenda-error {
	border-color: #e74c3c !important;
	box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
}

.posenda-error-msg {
	display: block;
	margin-top: 5px;
	font-size: 0.78rem;
	color: #e74c3c;
	font-weight: 600;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
	.posenda-cols-4,
	.posenda-cols-3,
	.posenda-cols-2 {
		grid-template-columns: 1fr !important;
	}
	.posenda-filter-label--spacer { display: none; }
	.posenda-inline-actions { margin-top: 4px; }
}
