/**
 * Atelier Structura — Admin Settings Styles
 * Scoped entirely to .atelier-settings-wrap — no global admin pollution.
 */

/* -----------------------------------------------------------------------
 * Wrap & Typography
 * -------------------------------------------------------------------- */
.atelier-settings-wrap {
	max-width: 900px;
	margin-top: 24px;
}

.atelier-settings-wrap h1 {
	font-size: 1.75rem;
	font-weight: 700;
	color: #1d2327;
	margin-bottom: 4px;
}

.atelier-settings-subtitle {
	color: #646970;
	margin-bottom: 24px;
	font-size: 0.9rem;
}

/* -----------------------------------------------------------------------
 * Tab Navigation
 * -------------------------------------------------------------------- */
.atelier-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #c3c4c7;
	margin-bottom: 28px;
}

.atelier-tab {
	display: inline-block;
	padding: 10px 18px;
	font-size: 0.875rem;
	font-weight: 500;
	color: #646970;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}

.atelier-tab:hover {
	color: #9C7A4E;
}

.atelier-tab.active {
	color: #9C7A4E;
	border-bottom-color: #9C7A4E;
	font-weight: 600;
}

/* -----------------------------------------------------------------------
 * Tab Panels
 * -------------------------------------------------------------------- */
.atelier-tab-panel {
	display: none;
}

.atelier-tab-panel.is-active {
	display: block;
	animation: atelierFadeIn 0.18s ease;
}

@keyframes atelierFadeIn {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* -----------------------------------------------------------------------
 * Form Table
 * -------------------------------------------------------------------- */
.atelier-settings-wrap .form-table th {
	width: 220px;
	padding-top: 18px;
	font-weight: 600;
	color: #2c3338;
}

.atelier-settings-wrap .form-table td {
	padding-top: 14px;
}

.atelier-settings-wrap .form-table p.description {
	margin-top: 6px;
	color: #646970;
	font-size: 0.8125rem;
}

.atelier-settings-wrap h2 {
	font-size: 1.125rem;
	font-weight: 600;
	color: #2c3338;
	margin-bottom: 4px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f0f1;
}

.atelier-settings-wrap h2 + p.description {
	margin-top: 0;
	margin-bottom: 20px;
}

/* -----------------------------------------------------------------------
 * Range Slider
 * -------------------------------------------------------------------- */
.atelier-range-field {
	display: flex;
	align-items: center;
	gap: 12px;
}

.atelier-range {
	-webkit-appearance: none;
	appearance: none;
	width: 240px;
	height: 4px;
	border-radius: 2px;
	background: #c3c4c7;
	outline: none;
	cursor: pointer;
}

.atelier-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #9C7A4E;
	cursor: pointer;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.25);
	transition: background 0.15s ease;
}

.atelier-range::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #9C7A4E;
	cursor: pointer;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.atelier-range-value {
	min-width: 36px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #9C7A4E;
	background: #fdf9f5;
	border: 1px solid #e0cdb8;
	border-radius: 4px;
	padding: 2px 8px;
	text-align: center;
}

/* -----------------------------------------------------------------------
 * Media Upload Field
 * -------------------------------------------------------------------- */
.atelier-media-field {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.atelier-media-preview {
	border-radius: 6px;
	border: 1px solid #c3c4c7;
	object-fit: cover;
}

/* -----------------------------------------------------------------------
 * XYZ Grid (camera position)
 * -------------------------------------------------------------------- */
.atelier-xyz-grid {
	display: flex;
	gap: 12px;
}

.atelier-xyz-grid label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 0.8125rem;
}

.atelier-xyz-grid label span {
	font-weight: 700;
	color: #9C7A4E;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.atelier-xyz-grid input[type="number"] {
	width: 80px;
	text-align: center;
}

/* -----------------------------------------------------------------------
 * Save Button
 * -------------------------------------------------------------------- */
.atelier-settings-form .submit {
	padding-top: 24px;
	border-top: 1px solid #f0f0f1;
	margin-top: 24px;
}

.atelier-settings-form #submit {
	background: #9C7A4E;
	border-color: #7a5e39;
	color: #fff;
	font-weight: 600;
	padding: 8px 24px;
	height: auto;
	font-size: 0.9rem;
	transition: background 0.15s ease;
}

.atelier-settings-form #submit:hover {
	background: #7a5e39;
}
