/**
 * Bilin Framework
 * Translator Request
 *
 * @package Bilin_Framework
 */


/* =========================================================
   Base
========================================================= */

.translator-request-page {
	direction: rtl;
	min-height: 100vh;
	background: #fffdf9;
	color: #25323a;
	box-sizing: border-box;
}

.translator-request-page *,
.translator-request-page *::before,
.translator-request-page *::after {
	box-sizing: border-box;
}

.translator-request-container {
	width: min(1120px, calc(100% - 40px));
	margin: 48px auto;
}


/* =========================================================
   Message
========================================================= */

.translator-request-message {
	padding: 48px 32px;
	border: 1px solid #ece4dc;
	border-radius: 22px;
	background: #fff;
	text-align: center;
	box-shadow: 0 10px 32px rgba(37, 50, 58, .05);
}

.translator-request-message h1 {
	margin: 0 0 14px;
	color: #25323a;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.5;
}

.translator-request-message p {
	margin: 0;
	color: #68757c;
	font-size: 15px;
	line-height: 2;
}

.translator-request-message a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 22px;
	min-height: 44px;
	padding: 0 22px;
	border-radius: 12px;
	background: #c75b45;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition:
		background-color .2s ease,
		transform .2s ease,
		box-shadow .2s ease;
}

.translator-request-message a:hover {
	background: #b84f3a;
	box-shadow: 0 5px 15px rgba(199, 91, 69, .18);
	transform: translateY(-1px);
}


/* =========================================================
   Header
========================================================= */

.translator-request-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.translator-request-header > div:first-child {
	min-width: 0;
}

.translator-request-eyebrow {
	display: inline-block;
	margin-bottom: 10px;
	color: #c75b45;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
}

.translator-request-header h1 {
	margin: 0;
	color: #25323a;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.4;
}

.translator-request-header p {
	margin: 10px 0 0;
	color: #7b868d;
	font-size: 13px;
	line-height: 1.8;
}

.translator-request-header-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid #d7eee2;
	border-radius: 999px;
	background: #e7f6ef;
	color: #157347;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
}


/* =========================================================
   Cards
========================================================= */

.translator-request-card {
	margin-bottom: 24px;
	padding: 28px;
	border: 1px solid #ece4dc;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(37, 50, 58, .04);
}

.translator-request-card-title {
	margin-bottom: 22px;
}

.translator-request-card-title h2 {
	margin: 0;
	color: #25323a;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.5;
}

.translator-request-card-title p {
	margin: 8px 0 0;
	color: #7a858c;
	font-size: 14px;
	line-height: 1.8;
}


/* =========================================================
   Request Grid
========================================================= */

.translator-request-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.translator-request-field {
	min-width: 0;
	padding: 18px;
	border: 1px solid #eee4da;
	border-radius: 16px;
	background: #fffaf5;
}

.translator-request-field span {
	display: block;
	margin-bottom: 8px;
	color: #8a949b;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.7;
}

.translator-request-field strong {
	display: block;
	overflow-wrap: anywhere;
	color: #25323a;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.8;
}

.translator-request-field strong span {
	display: inline;
	margin: 0;
	color: #25323a;
	font-size: inherit;
	font-weight: inherit;
}


/* =========================================================
   Description
========================================================= */

.translator-request-description {
	padding: 4px 0;
	color: #4b5961;
	font-size: 15px;
	line-height: 2.2;
	white-space: pre-line;
}


/* =========================================================
   Translation Archive
========================================================= */

.translator-request-archive {
	margin-top: 24px;
}

.translator-request-archive .translator-request-card-title {
	margin-bottom: 22px;
}

.translator-request-archive .translator-request-card-title p {
	margin: 6px 0 0;
	color: #7a858c;
	font-size: 14px;
	line-height: 1.8;
}


/* =========================================================
   Files
========================================================= */

.translator-request-files {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.translator-request-file {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 18px;
	border: 1px solid #e8e3dc;
	border-radius: 14px;
	background: #fffdfa;
	transition:
		border-color .2s ease,
		box-shadow .2s ease,
		transform .2s ease;
}

.translator-request-file:hover {
	border-color: #ddd4ca;
	box-shadow: 0 5px 18px rgba(37, 50, 58, .05);
	transform: translateY(-1px);
}

.translator-request-file-main {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	flex: 1 1 auto;
}

.translator-request-file-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: #f5eee6;
	color: #c75b45;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .04em;
}

.translator-request-file-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.translator-request-file-info strong {
	display: block;
	overflow: hidden;
	color: #25323a;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.7;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.translator-request-file-info span {
	color: #89939a;
	font-size: 12px;
	line-height: 1.7;
}

.translator-request-file-meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
	flex: 0 0 auto;
	color: #89939a;
	font-size: 12px;
}

.translator-request-file-meta > span {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 9px;
	border-radius: 7px;
	background: #f5f1ed;
	color: #737e85;
}

.translator-request-file-meta a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 14px;
	border-radius: 9px;
	background: #c75b45;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	transition:
		background-color .2s ease,
		transform .2s ease,
		box-shadow .2s ease;
}

.translator-request-file-meta a:hover {
	background: #b84f3a;
	box-shadow: 0 4px 12px rgba(199, 91, 69, .18);
	transform: translateY(-1px);
}

.translator-request-file-meta a:focus-visible {
	outline: 3px solid rgba(199, 91, 69, .22);
	outline-offset: 2px;
}


/* =========================================================
   Empty State
========================================================= */

.translator-request-files-empty {
	padding: 24px;
	border: 1px dashed #ddd5cc;
	border-radius: 12px;
	background: #fffdfa;
	color: #7a858c;
	font-size: 14px;
	line-height: 1.9;
	text-align: center;
}


/* =========================================================
   Upload
========================================================= */

.translator-request-upload {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee8e1;
}

.translator-request-upload form {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.translator-request-upload-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid #ddd5cc;
	border-radius: 9px;
	background: #fff;
	color: #25323a;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	transition:
		border-color .2s ease,
		background-color .2s ease,
		color .2s ease;
}

.translator-request-upload-label:hover {
	border-color: #c75b45;
	background: #fff8f4;
	color: #b84f3a;
}

.translator-request-upload-label:focus-within {
	border-color: #c75b45;
	outline: 3px solid rgba(199, 91, 69, .12);
	outline-offset: 2px;
}

.translator-request-upload input[type="file"] {
	max-width: 100%;
	min-height: 42px;
	font-size: 12px;
	color: #25323a;
}

.translator-request-upload input[type="file"]::file-selector-button {
	margin-inline-end: 10px;
	padding: 8px 12px;
	border: 1px solid #ddd5cc;
	border-radius: 7px;
	background: #fffdfa;
	color: #25323a;
	cursor: pointer;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	transition:
		border-color .2s ease,
		background-color .2s ease;
}

.translator-request-upload input[type="file"]::file-selector-button:hover {
	border-color: #c75b45;
	background: #fff8f4;
}

.translator-request-upload-help {
	flex: 1 1 100%;
	margin: 0;
	color: #89939a;
	font-size: 12px;
	line-height: 1.8;
}


/* =========================================================
   Action
========================================================= */

.translator-request-action {
	display: flex;
	justify-content: center;
	margin: 28px 0 0;
}

.translator-request-action form {
	margin: 0;
}

.translator-request-action-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 10px;
	background: #c75b45;
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
	transition:
		background-color .2s ease,
		transform .2s ease,
		box-shadow .2s ease;
}

.translator-request-action-button:hover {
	background: #b84f3a;
	box-shadow: 0 4px 12px rgba(199, 91, 69, .18);
	transform: translateY(-1px);
}

.translator-request-action-button:focus-visible {
	outline: 3px solid rgba(199, 91, 69, .22);
	outline-offset: 2px;
}

.translator-request-action-button:disabled,
.translator-request-action-button[disabled] {
	opacity: .55;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.translator-request-action-button-complete {
	background: #287d67;
}

.translator-request-action-button-complete:hover {
	background: #216b58;
	box-shadow: 0 4px 12px rgba(40, 125, 103, .18);
}


/* =========================================================
   Back
========================================================= */

.translator-request-back {
	margin-top: 30px;
	padding-top: 4px;
	text-align: center;
}

.translator-request-back a {
	color: #c75b45;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: color .2s ease;
}

.translator-request-back a:hover {
	color: #b84f3a;
	text-decoration: underline;
}


/* =========================================================
   Responsive — Tablet / Mobile
========================================================= */

@media (max-width: 760px) {

	.translator-request-container {
		width: min(100% - 28px, 640px);
		margin: 28px auto;
	}

	.translator-request-header {
		flex-direction: column;
		gap: 16px;
		margin-bottom: 22px;
	}

	.translator-request-header h1 {
		font-size: 28px;
	}

	.translator-request-header-status {
		align-self: flex-start;
	}

	.translator-request-card {
		margin-bottom: 18px;
		padding: 20px;
		border-radius: 18px;
	}

	.translator-request-card-title {
		margin-bottom: 18px;
	}

	.translator-request-card-title h2 {
		font-size: 19px;
	}

	.translator-request-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.translator-request-field {
		padding: 15px;
	}

	.translator-request-archive {
		margin-top: 18px;
	}

	.translator-request-file {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
		padding: 14px;
	}

	.translator-request-file-main {
		width: 100%;
	}

	.translator-request-file-icon {
		flex-basis: 48px;
		width: 48px;
		height: 48px;
	}

	.translator-request-file-meta {
		width: 100%;
		justify-content: flex-start;
	}

	.translator-request-file-meta a {
		width: 100%;
	}

	.translator-request-upload {
		margin-top: 16px;
		padding-top: 16px;
	}

	.translator-request-upload form {
		align-items: stretch;
		flex-direction: column;
	}

	.translator-request-upload-label,
	.translator-request-upload input[type="file"],
	.translator-request-upload .translator-request-action-button {
		width: 100%;
	}

	.translator-request-upload input[type="file"] {
		padding: 2px 0;
	}

	.translator-request-action {
		margin-top: 20px;
	}

}


/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 480px) {

	.translator-request-container {
		width: calc(100% - 20px);
		margin: 20px auto;
	}

	.translator-request-message {
		padding: 32px 20px;
		border-radius: 18px;
	}

	.translator-request-message h1 {
		font-size: 24px;
	}

	.translator-request-header h1 {
		font-size: 24px;
	}

	.translator-request-header-status {
		width: 100%;
	}

	.translator-request-card {
		padding: 16px;
		border-radius: 16px;
	}

	.translator-request-field {
		padding: 14px;
	}

	.translator-request-field strong {
		font-size: 15px;
	}

	.translator-request-file-main {
		gap: 11px;
	}

	.translator-request-file-info strong {
		font-size: 13px;
	}

	.translator-request-file-info span {
		font-size: 11px;
	}

	.translator-request-file-icon {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
		border-radius: 10px;
		font-size: 10px;
	}

	.translator-request-files-empty {
		padding: 20px 16px;
		font-size: 13px;
	}

	.translator-request-upload-label {
		width: 100%;
	}

	.translator-request-action-button {
		width: 100%;
	}

}

