/* Tadilat Pazarı — ön yüz stilleri */
.tp-auth-wrap,
.tp-panel {
	--tp-primary: #d97706;
	--tp-primary-d: #b45309;
	--tp-ink: #1f2937;
	--tp-muted: #6b7280;
	--tp-line: #e5e7eb;
	--tp-bg: #f9fafb;
	--tp-ok: #16a34a;
	--tp-no: #dc2626;
	--tp-wait: #ca8a04;
	color: var(--tp-ink);
	font-size: 15px;
	line-height: 1.5;
}

/* ---- Genel ---- */
.tp-card {
	background: #fff;
	border: 1px solid var(--tp-line);
	border-radius: 12px;
	padding: 22px;
	margin-bottom: 18px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.tp-muted { color: var(--tp-muted); }
.tp-sm { font-size: 13px; }
.tp-empty { text-align: center; color: var(--tp-muted); padding: 40px 20px; }
.tp-notice { background: #fff7ed; border-color: #fed7aa; }

.tp-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid transparent;
	border-radius: 8px;
	padding: 9px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	line-height: 1;
	transition: .15s;
}
.tp-btn-primary { background: var(--tp-primary); color: #fff; }
.tp-btn-primary:hover { background: var(--tp-primary-d); color: #fff; }
.tp-btn-ok { background: var(--tp-ok); color: #fff; }
.tp-btn-ok:hover { filter: brightness(.93); color: #fff; }
.tp-btn-ghost { background: #fff; border-color: var(--tp-line); color: var(--tp-ink); }
.tp-btn-ghost:hover { background: var(--tp-bg); color: var(--tp-ink); }
.tp-btn.tp-sm { padding: 6px 12px; font-size: 13px; }
.tp-btn .dashicons { width: 18px; height: 18px; font-size: 18px; }

/* ---- Formlar ---- */
.tp-form label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 14px; }
.tp-form label small { font-weight: 400; color: var(--tp-muted); }
.tp-form input[type=text],
.tp-form input[type=email],
.tp-form input[type=password],
.tp-form input[type=number],
.tp-form select,
.tp-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--tp-line);
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
	background: #fff;
}
.tp-form input:focus,
.tp-form select:focus,
.tp-form textarea:focus {
	outline: none;
	border-color: var(--tp-primary);
	box-shadow: 0 0 0 3px rgba(217, 119, 6, .12);
}
.tp-form .tp-btn { margin-top: 18px; }
.tp-check { font-weight: 400 !important; display: flex; align-items: center; gap: 8px; }
.tp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }

/* ---- Auth ---- */
.tp-auth-wrap { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--tp-line); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 20px rgba(0, 0, 0, .06); }
.tp-auth-tabs { display: flex; border-bottom: 1px solid var(--tp-line); }
.tp-tab-btn { flex: 1; padding: 16px; background: var(--tp-bg); border: 0; font-size: 15px; font-weight: 700; cursor: pointer; color: var(--tp-muted); }
.tp-tab-btn.tp-active { background: #fff; color: var(--tp-primary); box-shadow: inset 0 -3px 0 var(--tp-primary); }
.tp-tab { display: none; padding: 26px; }
.tp-tab.tp-active { display: block; }

.tp-role-select { display: grid; gap: 10px; }
.tp-role-opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--tp-line); border-radius: 10px; padding: 12px 14px; cursor: pointer; font-weight: 400 !important; margin: 0 !important; }
.tp-role-opt span { display: flex; flex-direction: column; font-weight: 700; }
.tp-role-opt small { font-weight: 400; color: var(--tp-muted); }
.tp-role-opt:has(input:checked) { border-color: var(--tp-primary); background: #fff7ed; }

/* ---- Alert ---- */
.tp-alert { border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.tp-alert-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.tp-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.tp-alert ul { margin: 0; padding-left: 18px; }

/* ---- Panel ---- */
.tp-panel { max-width: 1080px; margin: 0 auto; }
.tp-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #fff; border: 1px solid var(--tp-line); border-radius: 12px; margin-bottom: 18px; }
.tp-role-pill { background: var(--tp-primary); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tp-panel-body { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; }
.tp-sidebar { background: #fff; border: 1px solid var(--tp-line); border-radius: 12px; padding: 10px; position: sticky; top: 20px; }
.tp-sidebar a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 8px; color: var(--tp-ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.tp-sidebar a:hover { background: var(--tp-bg); }
.tp-sidebar a.tp-active { background: #fff7ed; color: var(--tp-primary); }
.tp-sidebar a .dashicons { width: 18px; height: 18px; font-size: 18px; }
.tp-content { min-width: 0; }

.tp-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tp-section-head h2 { margin: 0; }

/* ---- Project / quotes ---- */
.tp-project h3 { margin: 0 0 4px; }
.tp-project-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tp-meta { color: var(--tp-muted); font-size: 13px; }
.tp-needs { background: var(--tp-bg); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.tp-quote-block { margin-top: 16px; border-top: 1px dashed var(--tp-line); padding-top: 12px; }
.tp-quote-block h4 { margin: 0 0 8px; font-size: 15px; }
.tp-quote-form { margin-top: 14px; padding: 16px; background: var(--tp-bg); border-radius: 10px; }

.tp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tp-table th { text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--tp-line); color: var(--tp-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.tp-table td { padding: 10px; border-bottom: 1px solid var(--tp-line); vertical-align: middle; }
.tp-table .tp-row-ok { background: #f0fdf4; }
.tp-price { font-weight: 700; white-space: nowrap; }
.tp-inline { display: inline-block; margin-right: 6px; }

.tp-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.tp-badge-ok { background: #dcfce7; color: #166534; }
.tp-badge-no { background: #fee2e2; color: #991b1b; }
.tp-badge-wait { background: #fef9c3; color: #854d0e; }

/* ---- Stats ---- */
.tp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tp-stat { background: #fff; border: 1px solid var(--tp-line); border-radius: 12px; padding: 18px; display: flex; align-items: center; gap: 14px; }
.tp-stat .dashicons { font-size: 30px; width: 30px; height: 30px; color: var(--tp-primary); }
.tp-stat-val { font-size: 22px; font-weight: 700; }
.tp-stat-lbl { color: var(--tp-muted); font-size: 13px; }

@media (max-width: 782px) {
	.tp-panel-body { grid-template-columns: 1fr; }
	.tp-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
	.tp-sidebar a { flex: 1; justify-content: center; }
}

/* ---- Değerlendirme / yıldız ---- */
.tp-stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.tp-stars .tp-star-on { color: #f59e0b; }
.tp-stars .tp-star-off { color: #d1d5db; }

.tp-star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin: 6px 0; }
.tp-star-input input { position: absolute; opacity: 0; pointer-events: none; }
.tp-star-input label { font-size: 30px; line-height: 1; color: #d1d5db; cursor: pointer; transition: color .1s; }
.tp-star-input label:hover,
.tp-star-input label:hover ~ label,
.tp-star-input input:checked ~ label { color: #f59e0b; }

.tp-review-card { margin-top: 12px; padding: 14px 16px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; }
.tp-review-head { font-size: 14px; margin-bottom: 4px; }
.tp-review-head .dashicons { color: #f59e0b; vertical-align: -3px; }
.tp-review-form textarea { margin-top: 4px; }
.tp-review-done { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.tp-review-text { width: 100%; color: var(--tp-muted); font-style: italic; }

.tp-review-item { padding: 8px 0; border-bottom: 1px solid var(--tp-line); font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.tp-review-item:last-child { border-bottom: 0; }
.tp-review-item span { color: var(--tp-slate); }

.tp-rating-summary { display: flex; align-items: center; }
.tp-rating-big { font-size: 18px; margin-top: 2px; }
.tp-review-provider { font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tp-reviews-public .tp-card { margin-bottom: 14px; }

/* ---- Çok kriterli değerlendirme ---- */
.tp-crit { display: flex; align-items: center; gap: 12px; margin: 2px 0; }
.tp-crit-label { min-width: 130px; font-weight: 600; font-size: 14px; }
.tp-crit .tp-star-input { margin: 2px 0; }
.tp-crit .tp-star-input label { font-size: 24px; }
.tp-breakdown { display: inline-block; }
