/* ==============================================
   Product Carousel — Settings Page
   ============================================== */

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

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

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

.pc-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);
}

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

.pc-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;
}

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

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

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

.pc-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;
}

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

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

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

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

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

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

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

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

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

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

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

.pc-card__body {
	padding: 20px;
}

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

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

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

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

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

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

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

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

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

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

/* ----------------------------------------------
   Buttons
   ---------------------------------------------- */

.pc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 20px;
	font-size: 13px;
	font-weight: 600;
	border-radius: var(--pc-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;
}

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

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

.pc-btn--secondary {
	background: var(--pc-bg);
	color: var(--pc-text);
	border: 1px solid var(--pc-border);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.pc-btn--secondary:hover,
.pc-btn--secondary:focus {
	background: #eef0f3;
	color: var(--pc-text);
}

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

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

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

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

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

.pc-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;
}

.pc-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;
}

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

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

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

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

.pc-status-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

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

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

.pc-status-dot--ok   { background: #22c55e; }
.pc-status-dot--warn { background: #f59e0b; }
.pc-status-dot--err  { background: #ef4444; }

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

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

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

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

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

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

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

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

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

/* ----------------------------------------------
   Translation notice
   ---------------------------------------------- */

.pc-translation-notice .pc-card__body {
	padding: 14px 20px;
}

.pc-translation-notice__text {
	margin: 0 0 6px;
	font-size: 13px;
	color: var(--pc-muted);
}

.pc-translation-notice__link {
	font-size: 13px;
	font-weight: 600;
	color: var(--pc-accent);
	text-decoration: none;
}

.pc-translation-notice__link:hover,
.pc-translation-notice__link:focus {
	color: var(--pc-accent-dark);
	text-decoration: underline;
}
