/* ==============================================
   Content Expiry — Settings Page
   ============================================== */

:root {
	--spe-accent:      #4f46e5;
	--spe-accent-dark: #3730a3;
	--spe-text:        #1d2327;
	--spe-muted:       #6d7a8a;
	--spe-border:      #dde1e7;
	--spe-bg:          #f8f9fb;
	--spe-radius:      6px;
}

.spe-settings-page {
	max-width: 960px;
	margin-top: 16px;
}

/* ----------------------------------------------
   Header
   ---------------------------------------------- */

.spe-settings-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(135deg, #312e81 0%, #4f46e5 100%);
	color: #fff;
	padding: 18px 24px;
	border-radius: 10px;
	margin-bottom: 24px;
	box-shadow: 0 4px 16px rgba(79, 70, 229, .25);
}

.spe-settings-header__brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.spe-settings-header__icon {
	width: 42px;
	height: 42px;
	background: rgba(255, 255, 255, .15);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.spe-settings-header__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	margin: 0;
}

.spe-settings-header__sub {
	font-size: 12px;
	color: rgba(255, 255, 255, .65);
	margin-top: 1px;
}

.spe-settings-header__meta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.spe-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.spe-badge--free {
	background: rgba(255, 255, 255, .2);
	color: #fff;
}

.spe-badge--pro {
	background: #fbbf24;
	color: #1e1b4b;
}

.spe-settings-version {
	font-size: 12px;
	color: rgba(255, 255, 255, .55);
}

/* ----------------------------------------------
   Body layout
   ---------------------------------------------- */

.spe-settings-body {
	display: grid;
	grid-template-columns: 1fr 272px;
	gap: 20px;
	align-items: start;
}

.spe-settings-main {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.spe-sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ----------------------------------------------
   Cards
   ---------------------------------------------- */

.spe-card {
	background: #fff;
	border: 1px solid var(--spe-border);
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
	overflow: hidden;
}

.spe-card__header {
	padding: 14px 20px;
	border-bottom: 1px solid var(--spe-border);
	background: var(--spe-bg);
}

.spe-card__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--spe-text);
	margin: 0;
	padding: 0;
	border: none;
}

.spe-card__body {
	padding: 20px;
}

.spe-card__footer {
	padding: 14px 20px;
	border-top: 1px solid var(--spe-border);
	background: var(--spe-bg);
	display: flex;
	align-items: center;
	gap: 12px;
}

/* ----------------------------------------------
   Form fields
   ---------------------------------------------- */

.spe-settings-field {
	margin-bottom: 20px;
}

.spe-settings-field:last-child {
	margin-bottom: 0;
}

.spe-settings-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--spe-text);
	margin-bottom: 8px;
}

.spe-settings-desc {
	font-size: 12px;
	color: var(--spe-muted);
	margin: 6px 0 0;
}

.spe-check-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.spe-check-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--spe-text);
	cursor: pointer;
	margin: 0;
}

.spe-check-item input[type="checkbox"] {
	margin: 0;
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	accent-color: var(--spe-accent);
	cursor: pointer;
}

.spe-check-item code {
	font-size: 11px;
	color: var(--spe-muted);
	background: #f0f2f5;
	padding: 1px 6px;
	border-radius: 3px;
}

.spe-settings-select,
.spe-settings-input {
	height: 36px;
	padding: 0 12px;
	font-size: 13px;
	color: var(--spe-text);
	background: #fff;
	border: 1px solid var(--spe-border);
	border-radius: var(--spe-radius);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	box-sizing: border-box;
}

.spe-settings-select { min-width: 220px; }
.spe-settings-input  { width: 280px; }

.spe-settings-input--small { width: 80px; }

.spe-settings-select:focus,
.spe-settings-input:focus {
	outline: 2px solid var(--spe-accent);
	outline-offset: 1px;
	border-color: transparent;
}

/* ----------------------------------------------
   Save button
   ---------------------------------------------- */

.spe-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 20px;
	font-size: 13px;
	font-weight: 600;
	border-radius: var(--spe-radius);
	border: none;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.4;
	box-sizing: border-box;
	transition: background .15s ease, box-shadow .15s ease, color .15s ease;
}

.spe-btn--primary {
	background: var(--spe-accent);
	color: #fff;
	box-shadow: 0 1px 3px rgba(79, 70, 229, .3);
}

.spe-btn--primary:hover,
.spe-btn--primary:focus {
	background: var(--spe-accent-dark);
	color: #fff;
	box-shadow: 0 2px 8px rgba(79, 70, 229, .4);
}

/* ----------------------------------------------
   PRO upsell card
   ---------------------------------------------- */

.spe-pro-card {
	background: linear-gradient(145deg, #312e81 0%, #6d28d9 100%);
	border-color: transparent;
	box-shadow: 0 4px 16px rgba(109, 40, 217, .25);
}

.spe-pro-card .spe-card__header {
	background: transparent;
	border-bottom-color: rgba(255, 255, 255, .15);
}

.spe-pro-card .spe-card__title {
	color: #fff;
}

.spe-pro-feature-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.spe-pro-feature-list li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 13px;
	color: rgba(255, 255, 255, .9);
	line-height: 1.4;
}

.spe-pro-feature-list li::before {
	content: "✓";
	display: inline-flex;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background: rgba(255, 255, 255, .2);
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 700;
	margin-top: 1px;
}

.spe-btn--upgrade {
	display: flex;
	width: 100%;
	background: #fff;
	color: #4f46e5;
	box-shadow: none;
	font-size: 13px;
	padding: 10px 16px;
}

.spe-btn--upgrade:hover,
.spe-btn--upgrade:focus {
	background: #ede9fe;
	color: #3730a3;
	box-shadow: none;
}

.spe-pro-card .spe-card__body {
	padding: 16px 20px 20px;
}

/* ----------------------------------------------
   System status
   ---------------------------------------------- */

.spe-status-indicator {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.spe-status-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	flex-shrink: 0;
	margin-top: 4px;
}

.spe-status-dot--ok   { background: #22c55e; }
.spe-status-dot--warn { background: #f59e0b; }

.spe-status-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--spe-text);
	margin: 0 0 3px;
}

.spe-status-desc {
	font-size: 12px;
	color: var(--spe-muted);
	margin: 0;
	line-height: 1.5;
}

.spe-cron-command {
	margin-top: 8px;
	padding: 8px 10px;
	background: #f0f2f5;
	border-radius: 4px;
	font-size: 11px;
	font-family: monospace;
	color: var(--spe-text);
	overflow-x: auto;
	white-space: nowrap;
}

.spe-settings-footer {
	margin-top: 20px;
}

/* ----------------------------------------------
   Plugin info
   ---------------------------------------------- */

.spe-info-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.spe-info-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #f0f2f5;
	font-size: 12px;
}

.spe-info-list li:first-child { padding-top: 0; }
.spe-info-list li:last-child  { border-bottom: none; padding-bottom: 0; }

.spe-info-list .spe-info-label { color: var(--spe-muted); }
.spe-info-list .spe-info-value { color: var(--spe-text); font-weight: 500; }

/* ----------------------------------------------
   Responsive
   ---------------------------------------------- */

@media (max-width: 900px) {
	.spe-settings-body {
		grid-template-columns: 1fr;
	}
	.spe-sidebar {
		order: -1;
	}
}
