/**
 * Sky Changelog Notifier — Admin Settings
 *
 * @package SkyChangelogNotifier
 */

/* ─── Layout ─── */
.scln-settings {
	max-width: 960px;
	margin: 20px auto 0;
}

/* ─── Title ─── */
.scln-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 24px;
	font-weight: 600;
	margin-bottom: 24px;
}

.scln-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	color: #fff;
	border-radius: 8px;
	font-size: 18px;
}

.scln-version {
	font-size: 11px;
	font-weight: 500;
	color: #6366f1;
	background: #eef2ff;
	padding: 2px 8px;
	border-radius: 10px;
	letter-spacing: 0.02em;
}

/* ─── Tabs ─── */
.scln-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #e5e7eb;
	margin-bottom: 0;
}

.scln-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 20px;
	font-size: 13px;
	font-weight: 500;
	color: #6b7280;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
	white-space: nowrap;
}

.scln-tab:hover {
	color: #374151;
}

.scln-tab--active {
	color: #6366f1;
	border-bottom-color: #6366f1;
}

.scln-tab .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
}

.scln-badge {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #fff;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	padding: 1px 6px;
	border-radius: 4px;
	line-height: 1.5;
}

/* ─── Panels ─── */
.scln-panel {
	display: none;
	padding: 24px 0;
	animation: scln-fade-in 0.25s ease;
}

.scln-panel--active {
	display: block;
}

@keyframes scln-fade-in {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ─── Cards ─── */
.scln-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px 28px;
	margin-bottom: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.scln-card__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: #111827;
	margin: 0 0 4px;
}

.scln-card__title .dashicons {
	color: #6366f1;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.scln-card__desc {
	color: #6b7280;
	font-size: 13px;
	margin: 0 0 16px;
}

/* ─── Form Table ─── */
.scln-form-table th {
	font-weight: 500;
	color: #374151;
	padding: 16px 12px 16px 0;
	width: 200px;
}

.scln-form-table td {
	padding: 16px 0;
}

.scln-form-table select,
.scln-form-table input[type="number"] {
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 13px;
}

.scln-form-table .description {
	color: #9ca3af;
	font-size: 12px;
	margin-top: 6px;
}

/* ─── Preview ─── */
.scln-preview {
	margin-top: 12px;
	padding: 14px 16px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

.scln-preview strong {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #9ca3af;
	margin-bottom: 8px;
}

.scln-preview__code {
	font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
	font-size: 12px;
	line-height: 1.6;
	color: #374151;
	margin: 0;
	white-space: pre-wrap;
}

/* ─── Pro Feature Grid ─── */
.scln-pro-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.scln-pro-card {
	position: relative;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.scln-pro-card:hover {
	border-color: #c7d2fe;
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.scln-pro-card__tag {
	position: absolute;
	top: 12px;
	right: 12px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6366f1;
	background: #eef2ff;
	padding: 2px 8px;
	border-radius: 4px;
}

.scln-pro-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, #eef2ff, #e0e7ff);
	border-radius: 10px;
	margin-bottom: 14px;
}

.scln-pro-card__icon .dashicons {
	color: #6366f1;
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.scln-pro-card__title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	margin: 0 0 8px;
}

.scln-lock {
	color: #d1d5db;
	font-size: 14px !important;
	width: 14px !important;
	height: 14px !important;
}

.scln-pro-card__desc {
	font-size: 13px;
	color: #6b7280;
	line-height: 1.5;
	margin: 0;
}

/* ─── Pro CTA ─── */
.scln-pro-cta {
	text-align: center;
	margin-top: 32px;
	padding: 28px;
	background: linear-gradient(135deg, #f5f3ff, #eef2ff);
	border-radius: 12px;
	border: 1px solid #e0e7ff;
}

.scln-pro-cta p {
	font-size: 15px;
	color: #4b5563;
	margin: 0 0 16px;
}

.scln-upgrade-btn {
	background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
	border-color: #6366f1 !important;
	color: #fff !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em;
	transition: transform 0.15s, box-shadow 0.15s !important;
}

.scln-upgrade-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3) !important;
}

/* ─── Upgrade Page ─── */
.scln-upgrade__header {
	text-align: center;
	margin-bottom: 36px;
}

.scln-upgrade__header h2 {
	font-size: 28px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 8px;
}

.scln-upgrade__subtitle {
	font-size: 15px;
	color: #6b7280;
	margin: 0;
}

/* ─── Plans Grid ─── */
.scln-plans {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	align-items: start;
}

@media (max-width: 960px) {
	.scln-plans {
		grid-template-columns: 1fr;
		max-width: 400px;
		margin: 0 auto;
	}
}

.scln-plan {
	position: relative;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 28px 24px;
	text-align: center;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.scln-plan--featured {
	border-color: #6366f1;
	box-shadow: 0 4px 24px rgba(99, 102, 241, 0.12);
	transform: scale(1.03);
}

.scln-plan__ribbon {
	position: absolute;
	top: -1px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #fff;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	padding: 4px 16px;
	border-radius: 0 0 8px 8px;
}

.scln-plan__header {
	margin-bottom: 20px;
}

.scln-plan__header h3 {
	font-size: 18px;
	font-weight: 600;
	color: #111827;
	margin: 0 0 8px;
}

.scln-plan__price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 4px;
}

.scln-plan__amount {
	font-size: 36px;
	font-weight: 700;
	color: #111827;
	line-height: 1;
}

.scln-plan__period {
	font-size: 13px;
	color: #9ca3af;
}

/* ─── Plan Features ─── */
.scln-plan__features {
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
	text-align: left;
}

.scln-plan__feature {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	font-size: 13px;
	color: #374151;
}

.scln-plan__feature .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.scln-plan__feature--included .dashicons {
	color: #10b981;
}

.scln-plan__feature--pro .dashicons {
	color: #6366f1;
}

/* ─── Plan Actions ─── */
.scln-plan__action {
	margin-top: auto;
}

.scln-plan__action .button-hero {
	width: 100%;
	text-align: center;
	border-radius: 8px !important;
	font-weight: 600 !important;
}

.scln-plan--featured .button-primary {
	background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
	border-color: #6366f1 !important;
}

.scln-plan__btn--current {
	opacity: 0.6;
	cursor: default !important;
}

/* ─── Guarantee ─── */
.scln-guarantee {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
	padding: 16px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 10px;
}

.scln-guarantee .dashicons {
	color: #10b981;
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.scln-guarantee p {
	font-size: 13px;
	color: #166534;
	margin: 0;
}

