/* Theme Options page (inc/admin/theme-options.php) */
.wpi-theme-options {
	max-width: 1000px;
}
.wpi-theme-options-header {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px;
}
.wpi-theme-options-header h1 {
	display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; font-size: 26px; font-weight: 600;
}
.wpi-theme-options-version {
	padding: 2px 8px; border-radius: 10px; background: #f0f0f1; color: #50575e; font-size: 12px; font-weight: 500; line-height: 1.6;
}
.wpi-theme-options-header p {
	margin: 0; color: #50575e; font-size: 14px;
}
.wpi-theme-options .notice {
	margin: 0 0 20px;
}
.wpi-theme-options-cards {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none;
}
.wpi-theme-options-cards li {
	margin: 0;
}
.wpi-theme-options-card {
	display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; row-gap: 2px; height: 100%; box-sizing: border-box; padding: 18px; border: 1px solid #dcdcde; border-radius: 8px; background: #fff; color: #1d2327; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.wpi-theme-options-card:hover {
	border-color: #2271b1; color: #1d2327; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.wpi-theme-options-card:focus {
	border-color: #2271b1; box-shadow: 0 0 0 2px #2271b1; outline: 2px solid transparent;
}
.wpi-theme-options-card .dashicons {
	grid-row: span 2; width: 36px; height: 36px; border-radius: 8px; background: #f0f6fc; color: #2271b1; font-size: 20px; line-height: 36px; text-align: center;
}
.wpi-theme-options-card strong {
	font-size: 14px; font-weight: 600;
}
.wpi-theme-options-card span:last-child {
	color: #50575e; font-size: 13px; line-height: 1.5;
}
.wpi-theme-options-plugins {
	margin: 20px 0 0;
}
.wpi-theme-options-help-title {
	margin: 32px 0 10px; font-size: 14px; font-weight: 600;
}
.wpi-theme-options-help {
	display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none;
}
.wpi-theme-options-help li {
	margin: 0;
}
.wpi-theme-options-help a {
	display: inline-flex; align-items: center; gap: 4px; text-decoration: none;
}
.wpi-theme-options-help .dashicons {
	font-size: 18px; width: 18px; height: 18px;
}


/* Upgrade to Pro */
.wp-core-ui .wpi-theme-options .wpi-theme-options-pro {
	display: inline-flex; align-items: center; gap: 8px;
}
.wp-core-ui .wpi-theme-options .wpi-theme-options-pro .dashicons {
	font-size: 18px; width: 18px; height: 18px; line-height: 1; vertical-align: middle;
}

/* Documentation page (inc/admin/theme-documentation.php) */
.wpi-theme-docs {
	max-width: 1120px;
}
.wpi-theme-docs h2,
.wpi-theme-docs h3 {
	color: #1d2327;
}

/* Quick start */
.wpi-theme-docs-quick {
	margin: 0 0 28px; padding: 22px; border-radius: 12px; background: linear-gradient(135deg, #f0f6fc 0%, #fff 70%); border: 1px solid #dcdcde;
}
.wpi-theme-docs-quick > h2 {
	margin: 0 0 14px; font-size: 16px; font-weight: 600;
}
.wpi-theme-docs-quick-list {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: wpi-quick;
}
.wpi-theme-docs-quick-card {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; margin: 0; padding: 18px; border: 1px solid #dcdcde; border-radius: 10px; background: #fff; counter-increment: wpi-quick;
}
.wpi-theme-docs-quick-card::before {
	content: counter(wpi-quick); position: absolute; top: 14px; right: 16px; color: #c3c4c7; font-size: 22px; font-weight: 700; line-height: 1;
}
.wpi-theme-docs-quick-card .dashicons {
	width: 36px; height: 36px; border-radius: 8px; background: var(--wp-admin-theme-color, #2271b1); color: #fff; font-size: 20px; line-height: 36px; text-align: center;
}
.wpi-theme-docs-quick-card h3 {
	margin: 12px 0 4px; font-size: 14px; font-weight: 600;
}
.wpi-theme-docs-quick-card p {
	flex-grow: 1; margin: 0 0 14px; color: #50575e; font-size: 13px; line-height: 1.5;
}

/* Layout: side navigation + guide */
.wpi-theme-docs-layout {
	display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start;
}
.wpi-theme-docs-aside {
	position: sticky; top: 52px;
}
.wpi-theme-docs-search {
	position: relative; margin: 0 0 12px;
}
.wpi-theme-docs-search .dashicons {
	position: absolute; top: 50%; left: 10px; transform: translateY(-50%); color: #787c82; pointer-events: none;
}
.wpi-theme-docs-search input[type="search"] {
	width: 100%; min-height: 38px; padding: 0 10px 0 36px; border-color: #c3c4c7; border-radius: 8px;
}
.wpi-theme-docs-nav ul {
	margin: 0; padding: 0; list-style: none;
}
.wpi-theme-docs-nav li {
	margin: 0 0 2px;
}
.wpi-theme-docs-nav a {
	display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: #2c3338; font-size: 13px; text-decoration: none;
}
.wpi-theme-docs-nav a:hover {
	background: #f0f0f1; color: #1d2327;
}
.wpi-theme-docs-nav a:focus {
	box-shadow: 0 0 0 2px var(--wp-admin-theme-color, #2271b1); outline: 2px solid transparent;
}
.wpi-theme-docs-nav a[aria-current="true"] {
	background: #f0f6fc; color: var(--wp-admin-theme-color, #2271b1); font-weight: 600;
}
.wpi-theme-docs-nav .dashicons {
	flex-shrink: 0; width: 18px; height: 18px; font-size: 18px; color: #787c82;
}
.wpi-theme-docs-nav a[aria-current="true"] .dashicons {
	color: var(--wp-admin-theme-color, #2271b1);
}
.wpi-theme-docs-nav li.is-hidden {
	display: none;
}

/* Sections */
.wpi-theme-docs-status {
	margin: 0; color: #50575e; font-size: 13px;
}
.wpi-theme-docs-status:not(:empty) {
	margin: 0 0 12px;
}
.wpi-theme-docs-section {
	margin: 0 0 18px; border: 1px solid #dcdcde; border-radius: 12px; background: #fff; scroll-margin-top: 52px; overflow: hidden;
}
.wpi-theme-docs-section-header {
	display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid #f0f0f1;
}
.wpi-theme-docs-section-header > div {
	flex-grow: 1; min-width: 0;
}
.wpi-theme-docs-section-header h2 {
	margin: 0 0 2px; font-size: 16px; font-weight: 600;
}
.wpi-theme-docs-section-header p {
	margin: 0; color: #50575e; font-size: 13px;
}
.wpi-theme-docs .wpi-theme-docs-icon {
	flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: #f0f6fc; color: var(--wp-admin-theme-color, #2271b1); font-size: 22px; line-height: 40px; text-align: center;
}
.wp-core-ui .wpi-theme-docs-action {
	flex-shrink: 0;
}
.wpi-theme-docs-steps {
	margin: 0; padding: 8px 22px 14px; list-style: none; counter-reset: wpi-step;
}
.wpi-theme-docs-steps li {
	position: relative; margin: 0; padding: 10px 0 10px 38px; border-bottom: 1px dashed #f0f0f1; color: #2c3338; font-size: 13px; line-height: 1.65; counter-increment: wpi-step;
}
.wpi-theme-docs-steps li:last-child {
	border-bottom: 0;
}
.wpi-theme-docs-steps li::before {
	content: counter(wpi-step); position: absolute; top: 10px; left: 0; width: 24px; height: 24px; border-radius: 50%; background: #f0f0f1; color: #50575e; font-size: 12px; font-weight: 600; line-height: 24px; text-align: center;
}
.wpi-theme-docs-steps li.is-hidden,
.wpi-theme-docs-section.is-hidden {
	display: none;
}
.wpi-theme-docs-empty {
	padding: 32px; border: 1px dashed #c3c4c7; border-radius: 12px; color: #50575e; text-align: center;
}

/* Help + Pro */
.wpi-theme-docs-help {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 28px;
}
.wpi-theme-docs-help-card {
	display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid #dcdcde; border-radius: 12px; background: #fff;
}
.wpi-theme-docs-help-card > div {
	flex-grow: 1;
}
.wpi-theme-docs-help-card h2 {
	margin: 0 0 2px; font-size: 14px; font-weight: 600;
}
.wpi-theme-docs-help-card p {
	margin: 0; color: #50575e; font-size: 13px;
}
.wpi-theme-docs-help-card > .dashicons {
	flex-shrink: 0; width: 28px; height: 28px; font-size: 28px; color: var(--wp-admin-theme-color, #2271b1);
}
.wpi-theme-docs-help-card.is-pro {
	border-color: var(--wp-admin-theme-color, #2271b1); background: #f0f6fc;
}
.wpi-theme-docs-help-card.is-pro > .dashicons {
	color: #dba617;
}

@media (max-width: 960px) {
	.wpi-theme-docs-layout {
		grid-template-columns: minmax(0, 1fr); gap: 16px;
	}
	.wpi-theme-docs-aside {
		position: static;
	}
	.wpi-theme-docs-nav ul {
		display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px;
	}
	.wpi-theme-docs-nav li {
		flex-shrink: 0; margin: 0;
	}
	.wpi-theme-docs-nav a {
		border: 1px solid #dcdcde; background: #fff; white-space: nowrap;
	}
}
@media (max-width: 600px) {
	.wpi-theme-docs-quick,
	.wpi-theme-docs-section-header,
	.wpi-theme-docs-steps {
		padding-left: 16px; padding-right: 16px;
	}
	.wpi-theme-docs-section-header {
		flex-wrap: wrap;
	}
	.wpi-theme-docs-section-header > div {
		flex-basis: calc(100% - 54px);
	}
}


/* ============================================================================= */


.blogfusion-widget-table {
	margin-top: 15px;
	margin-bottom: 15px;
	width: 100%;
}

.blogfusion-widget-table-td-left {
	vertical-align: top;
	padding-top: 5px;
}

.blogfusion-widget-preview-image {
	display: block;
	margin-top: 5px;
    margin-left: auto;
    margin-right: auto;
	max-width: 100%;
}
