/* Patent Market - Filtre ve Kart Grid Stilleri */

.pm-wrap {
	max-width: 1200px;
	margin: 0 auto;
	font-family: inherit;
}

.pm-wrap input,
.pm-wrap select,
.pm-wrap button,
.pm-wrap textarea {
	box-sizing: border-box;
}

/* ---------- Filtre formu ---------- */
.pm-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-start;
	background: #f5f6f8;
	border: 1px solid #e2e4e8;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 24px;
}

.pm-filter-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 180px;
	min-width: 160px;
}

.pm-filter-search {
	flex: 2 1 240px;
}

.pm-filter-item label {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #444 !important;
	line-height: 1.3 !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
}

.pm-filter-item input[type="text"],
.pm-filter-item select {
	box-sizing: border-box !important;
	height: 40px !important;
	padding: 0 10px !important;
	margin: 0 !important;
	border: 1px solid #ccc !important;
	border-radius: 5px !important;
	font-size: 14px !important;
	background: #fff !important;
	line-height: normal !important;
	width: 100% !important;
}

.pm-filter-actions {
	flex: 0 0 auto;
	flex-direction: row;
	gap: 8px;
	align-self: flex-end;
	height: 40px;
}

.pm-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 20px;
	border-radius: 5px;
	border: none;
	background: #1a4f8b;
	color: #fff !important;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease;
	line-height: normal;
}

.pm-btn:hover {
	background: #123a68;
}

.pm-btn-clear {
	background: transparent;
	color: #1a4f8b !important;
	border: 1px solid #1a4f8b;
}

.pm-btn-clear:hover {
	background: #e9eef5;
}

.pm-result-count {
	font-size: 14px;
	color: #666;
	margin-bottom: 16px;
}

/* ---------- Kart grid ---------- */
.pm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.pm-card {
	border: 1px solid #e2e4e8;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
	display: flex;
	flex-direction: column;
}

.pm-card:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.pm-card-thumb {
	width: 100%;
	height: 150px;
	background: #eef1f5;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.pm-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pm-card-thumb-placeholder .dashicons {
	font-size: 42px;
	width: 42px;
	height: 42px;
	color: #b7c0cc;
}

.pm-card-body {
	padding: 14px 16px 18px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pm-card-title {
	font-size: 15px;
	line-height: 1.35;
	margin: 0 0 4px;
	color: #1a1a1a;
	text-transform: uppercase;
	font-weight: 700;
}

.pm-card-title a {
	color: inherit;
	text-decoration: none;
}

.pm-card-title a:hover {
	color: #1a4f8b;
	text-decoration: underline;
}

.pm-card-meta {
	font-size: 12.5px;
	color: #555;
	margin: 0;
}

.pm-card-tags {
	margin: 4px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pm-tag {
	display: inline-block;
	background: #e9eef5;
	color: #1a4f8b;
	border-radius: 20px;
	padding: 3px 10px;
	font-size: 11.5px;
	font-weight: 600;
}

.pm-card-basvuru {
	margin-top: auto;
	font-size: 11.5px;
	color: #888;
	padding-top: 8px;
	border-top: 1px solid #f0f1f3;
}

.pm-no-results {
	padding: 40px 0;
	text-align: center;
	color: #777;
	font-size: 15px;
}

/* ---------- Sayfalama ---------- */
.pm-pagination {
	margin-top: 28px;
	display: flex;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
}

.pm-pagination .page-numbers {
	display: inline-block;
	padding: 7px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #1a4f8b;
	text-decoration: none;
	font-size: 13px;
}

.pm-pagination .page-numbers.current {
	background: #1a4f8b;
	color: #fff;
	border-color: #1a4f8b;
}

.pm-pagination .page-numbers:hover:not(.current) {
	background: #f0f4f9;
}

@media (max-width: 640px) {
	.pm-filters {
		flex-direction: column;
	}
	.pm-filter-actions {
		flex-direction: row;
		align-self: stretch;
	}
}

/* ---------- Tekil patent detay sayfasi ---------- */
.pm-detail {
	max-width: 800px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e2e4e8;
}

.pm-detail-back {
	display: inline-block;
	margin-bottom: 18px;
	font-size: 13px;
	color: #1a4f8b;
	text-decoration: none;
	font-weight: 600;
}

.pm-detail-back:hover {
	text-decoration: underline;
}

.pm-detail-row {
	font-size: 14px;
	margin: 0 0 10px;
	color: #333;
}

.pm-detail-ozet {
	font-size: 14.5px;
	line-height: 1.6;
	color: #333;
	background: #f8f9fa;
	border-left: 3px solid #1a4f8b;
	padding: 12px 16px;
	margin: 0 0 16px;
}

.pm-tag-durum {
	background: #fff4e5;
	color: #a35c00;
}

.pm-detail-tags {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.pm-detail-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 12px;
	font-size: 14px;
}

.pm-detail-table th,
.pm-detail-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid #eee;
	vertical-align: top;
}

.pm-detail-table th {
	width: 220px;
	color: #444;
	font-weight: 600;
	background: #f8f9fa;
}

.pm-detail-table td {
	color: #222;
}
