/**
 * ShopBar Info Page - Admin Styles
 *
 * @package shopbar
 */

/* ── Variables ── */
:root {
	--sn-color-primary: #1C1C1C;
	--sn-color-accent: #B8977E;
	--sn-color-accent-hover: #A0785E;
	--sn-color-sky: #0072FF;
	--sn-color-green: #00A86B;
	--sn-color-red: #E53E3E;
	--sn-color-orange: #FFB800;
	--sn-color-purple: #805AD5;
	--sn-color-teal: #319795;
	--sn-color-bg: #F8F9FA;
	--sn-color-card: #FFFFFF;
	--sn-color-border: #E2E8F0;
	--sn-color-text: #1A202C;
	--sn-color-text-secondary: #718096;
	--sn-color-text-muted: #A0AEC0;
	--sn-radius-sm: 6px;
	--sn-radius-md: 10px;
	--sn-radius-lg: 16px;
	--sn-radius-xl: 24px;
	--sn-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
	--sn-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
	--sn-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
	--sn-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Wrap ── */
.shopbar-info-wrap {
	max-width: 1200px;
	margin: 20px auto;
	padding: 0 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
	color: var(--sn-color-text);
}

/* ── Header ── */
.shopbar-info-header {
	background: var(--sn-color-card);
	border: 1px solid var(--sn-color-border);
	border-radius: var(--sn-radius-lg);
	padding: 28px 32px;
	margin-bottom: 4px;
	box-shadow: var(--sn-shadow-sm);
}

.shopbar-info-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.shopbar-info-brand {
	display: flex;
	align-items: center;
	gap: 16px;
}

.shopbar-info-logo {
	width: 48px;
	height: 48px;
	background: linear-gradient(135deg, var(--sn-color-primary), #333);
	border-radius: var(--sn-radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
}

.shopbar-info-title-group {
	display: flex;
	flex-direction: column;
}

.shopbar-info-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--sn-color-text);
	margin: 0;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.shopbar-info-version {
	font-size: 12px;
	color: var(--sn-color-text-muted);
	font-weight: 500;
	margin-top: 2px;
}

.shopbar-info-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* ── Buttons ── */
.shopbar-info-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--sn-transition);
	text-decoration: none;
	border: none;
	line-height: 1.4;
	white-space: nowrap;
}

.shopbar-info-btn-primary {
	background: var(--sn-color-primary);
	color: #fff;
}

.shopbar-info-btn-primary:hover {
	background: #333;
	color: #fff;
}

.shopbar-info-btn-upgrade {
	background: linear-gradient(135deg, var(--sn-color-accent), var(--sn-color-accent-hover));
	color: #fff;
}

.shopbar-info-btn-upgrade:hover {
	background: linear-gradient(135deg, var(--sn-color-accent-hover), #8B6F57);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 15px rgba(184, 151, 126, 0.35);
}

.shopbar-info-btn-outline {
	background: transparent;
	color: var(--sn-color-text-secondary);
	border: 1px solid var(--sn-color-border);
}

.shopbar-info-btn-outline:hover {
	border-color: var(--sn-color-primary);
	color: var(--sn-color-primary);
	background: rgba(28, 28, 28, 0.02);
}

.shopbar-info-btn-lg {
	padding: 12px 28px;
	font-size: 15px;
	border-radius: var(--sn-radius-md);
}

.shopbar-info-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
}

/* ── Tabs ── */
.shopbar-info-tabs {
	background: var(--sn-color-card);
	border: 1px solid var(--sn-color-border);
	border-top: none;
	border-radius: 0 0 var(--sn-radius-lg) var(--sn-radius-lg);
	margin-bottom: 24px;
	box-shadow: var(--sn-shadow-sm);
}

.shopbar-info-tabs-inner {
	display: flex;
	gap: 0;
	padding: 0 8px;
	overflow-x: auto;
}

.shopbar-info-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 14px 20px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--sn-color-text-secondary);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: all var(--sn-transition);
	white-space: nowrap;
}

.shopbar-info-tab:hover {
	color: var(--sn-color-text);
	background: rgba(0, 0, 0, 0.015);
}

.shopbar-info-tab.active {
	color: var(--sn-color-primary);
	border-bottom-color: var(--sn-color-primary);
	font-weight: 600;
}

.shopbar-info-tab svg {
	opacity: 0.6;
}

.shopbar-info-tab.active svg {
	opacity: 1;
}

/* ── Tab Notification Badge ── */
.shopbar-info-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--sn-color-red);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	line-height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	margin-left: 4px;
	vertical-align: middle;
	animation: shopbar-badge-pulse 2s ease-in-out infinite;
}

@keyframes shopbar-badge-pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.7;
	}
}

/* ── Content ── */
.shopbar-info-content {
	min-height: 400px;
}

/* ── Grid Layout ── */
.shopbar-info-grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 24px;
}

@media (max-width: 900px) {
	.shopbar-info-grid {
		grid-template-columns: 1fr;
	}
}

/* ── Cards ── */
.shopbar-info-card {
	background: var(--sn-color-card);
	border: 1px solid var(--sn-color-border);
	border-radius: var(--sn-radius-lg);
	box-shadow: var(--sn-shadow-sm);
	overflow: hidden;
}

.shopbar-info-card-sidebar {
	background: none;
    border: none;
    box-shadow: none;
}

.shopbar-info-card-sidebar .shopbar-info-card.card-two {
	margin-top: 20px;
}

.shopbar-info-card-main {
	grid-row: 1 / 3;
}

.shopbar-info-card-full {
	grid-column: 1 / -1;
	margin-top: 24px;
}

.shopbar-info-card-header {
	padding: 24px 28px 0;
}

.shopbar-info-card-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--sn-color-text);
	margin: 0;
	letter-spacing: -0.01em;
}

.shopbar-info-card-subtitle {
	font-size: 13.5px;
	color: var(--sn-color-text-secondary);
	margin: 6px 0 0;
	line-height: 1.5;
}

.shopbar-info-card-body {
	padding: 20px 28px 28px;
}

/* ── Details List ── */
.shopbar-info-details-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.shopbar-info-detail-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--sn-color-border);
}

.shopbar-info-detail-item:last-child {
	border-bottom: none;
}

.shopbar-info-detail-label {
	font-size: 13.5px;
	color: var(--sn-color-text-secondary);
	font-weight: 500;
}

.shopbar-info-detail-value {
	font-size: 13.5px;
	color: var(--sn-color-text);
	font-weight: 600;
}

.shopbar-info-detail-value a {
	color: var(--sn-color-sky);
	text-decoration: none;
}

.shopbar-info-detail-value a:hover {
	text-decoration: underline;
}

/* ── Description ── */
.shopbar-info-description {
	font-size: 13.5px;
	color: var(--sn-color-text-secondary);
	line-height: 1.7;
	margin: 0;
}

/* ── Links ── */
.shopbar-info-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.shopbar-info-links li {
	margin: 0;
}

.shopbar-info-links a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	font-size: 13.5px;
	color: var(--sn-color-text-secondary);
	text-decoration: none;
	border-radius: var(--sn-radius-sm);
	transition: all var(--sn-transition);
}

.shopbar-info-links a:hover {
	background: var(--sn-color-bg);
	color: var(--sn-color-text);
}

.shopbar-info-links a svg {
	flex-shrink: 0;
	opacity: 0.5;
}

.shopbar-info-links a:hover svg {
	opacity: 1;
}

/* ── Features Grid ── */
.shopbar-info-features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 900px) {
	.shopbar-info-features-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.shopbar-info-features-grid {
		grid-template-columns: 1fr;
	}
}

.shopbar-info-feature {
	text-align: center;
	padding: 24px 16px;
	border-radius: var(--sn-radius-md);
	border: 1px solid var(--sn-color-border);
	transition: all var(--sn-transition);
}

.shopbar-info-feature:hover {
	border-color: transparent;
	box-shadow: var(--sn-shadow-md);
	transform: translateY(-2px);
}

.shopbar-info-feature-icon {
	width: 48px;
	height: 48px;
	border-radius: var(--sn-radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
}

.shopbar-info-feature-icon-blue {
	background: rgba(0, 114, 255, 0.1);
	color: var(--sn-color-sky);
}

.shopbar-info-feature-icon-purple {
	background: rgba(128, 90, 213, 0.1);
	color: var(--sn-color-purple);
}

.shopbar-info-feature-icon-green {
	background: rgba(0, 168, 107, 0.1);
	color: var(--sn-color-green);
}

.shopbar-info-feature-icon-orange {
	background: rgba(255, 184, 0, 0.1);
	color: var(--sn-color-orange);
}

.shopbar-info-feature-icon-red {
	background: rgba(229, 62, 62, 0.1);
	color: var(--sn-color-red);
}

.shopbar-info-feature-icon-teal {
	background: rgba(49, 151, 149, 0.1);
	color: var(--sn-color-teal);
}

.shopbar-info-feature-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--sn-color-text);
	margin: 0 0 6px;
}

.shopbar-info-feature-desc {
	font-size: 12.5px;
	color: var(--sn-color-text-secondary);
	margin: 0;
	line-height: 1.5;
}

/* ── Plugins Grid ── */
.shopbar-info-plugins-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

@media (max-width: 900px) {
	.shopbar-info-plugins-grid {
		grid-template-columns: 1fr;
	}
}

.shopbar-info-plugin-card {
	display: flex;
	gap: 16px;
	padding: 20px;
	border: 1px solid var(--sn-color-border);
	border-radius: var(--sn-radius-md);
	transition: all var(--sn-transition);
	align-items: flex-start;
}

.shopbar-info-plugin-card:hover {
	border-color: transparent;
	box-shadow: var(--sn-shadow-md);
}

.shopbar-info-plugin-icon {
	width: 48px;
	height: 48px;
	border-radius: var(--sn-radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.shopbar-info-plugin-icon-cart {
	background: rgba(128, 90, 213, 0.1);
	color: var(--sn-color-purple);
}

.shopbar-info-plugin-icon-builder {
	background: rgba(0, 114, 255, 0.1);
	color: var(--sn-color-sky);
}

.shopbar-info-plugin-icon-email {
	background: rgba(229, 62, 62, 0.1);
	color: var(--sn-color-red);
}

.shopbar-info-plugin-icon-search {
	background: rgba(0, 168, 107, 0.1);
	color: var(--sn-color-green);
}

.shopbar-info-plugin-icon-forms {
	background: rgba(255, 184, 0, 0.1);
	color: var(--sn-color-orange);
}

.shopbar-info-plugin-icon-performance {
	background: rgba(49, 151, 149, 0.1);
	color: var(--sn-color-teal);
}

.shopbar-info-plugin-icon-library {
	background: rgba(128, 90, 213, 0.1);
	color: var(--sn-color-purple);
}

.shopbar-info-plugin-info {
	flex: 1;
	min-width: 0;
}

.shopbar-info-plugin-top {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	flex-wrap: wrap;
}

.shopbar-info-plugin-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--sn-color-text);
	margin: 0;
}

.shopbar-info-plugin-category {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--sn-color-text-muted);
	background: var(--sn-color-bg);
	padding: 2px 8px;
	border-radius: 20px;
}

.shopbar-info-plugin-desc {
	font-size: 12.5px;
	color: var(--sn-color-text-secondary);
	line-height: 1.5;
	margin: 0 0 12px;
}

.shopbar-info-plugin-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* ── Badges ── */
.shopbar-info-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11.5px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 20px;
}

.shopbar-info-badge-active {
	background: rgba(0, 168, 107, 0.1);
	color: var(--sn-color-green);
}

.shopbar-info-badge-inactive {
	background: var(--sn-color-bg);
	color: var(--sn-color-text-secondary);
}

/* ── Pro Notice ── */
.shopbar-info-pro-notice {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	border-radius: var(--sn-radius-md);
	margin-bottom: 24px;
	font-size: 14px;
	font-weight: 500;
}

.shopbar-info-pro-notice-active {
	background: rgba(0, 168, 107, 0.08);
	color: var(--sn-color-green);
	border: 1px solid rgba(0, 168, 107, 0.2);
}

.shopbar-info-pro-notice-upsell {
	background: rgba(184, 151, 126, 0.08);
	color: var(--sn-color-accent-hover);
	border: 1px solid rgba(184, 151, 126, 0.2);
	flex-wrap: wrap;
}

.shopbar-info-pro-notice-upsell span {
	flex: 1;
}

/* ── Comparison Table ── */
.shopbar-info-comparison-table-wrap {
	overflow-x: auto;
	margin-bottom: 8px;
	border-radius: var(--sn-radius-md);
	border: 1px solid var(--sn-color-border);
}

.shopbar-info-comparison-table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
}

.shopbar-info-comparison-table thead {
	background: var(--sn-color-bg);
}

.shopbar-info-comparison-table th {
	padding: 16px 20px;
	font-size: 13px;
	font-weight: 600;
	color: var(--sn-color-text-secondary);
	text-align: center;
	border-bottom: 2px solid var(--sn-color-border);
}

.shopbar-info-comparison-table th:first-child {
	text-align: left;
}

.shopbar-info-comparison-table td {
	padding: 14px 20px;
	font-size: 13.5px;
	border-bottom: 1px solid var(--sn-color-border);
	text-align: center;
}

.shopbar-info-comparison-table td:first-child {
	text-align: left;
	font-weight: 500;
	color: var(--sn-color-text);
}

.shopbar-info-comparison-table tbody tr:last-child td {
	border-bottom: none;
}

.shopbar-info-row-even {
	background: var(--sn-color-card);
}

.shopbar-info-row-odd {
	background: #FAFBFC;
}

.shopbar-info-comparison-plan {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--sn-color-text);
}

.shopbar-info-comparison-price {
	display: block;
	font-size: 12px;
	color: var(--sn-color-text-muted);
	margin-top: 2px;
}

.shopbar-info-comparison-pro .shopbar-info-comparison-plan {
	color: var(--sn-color-accent-hover);
}

/* ── Check Marks ── */
.shopbar-info-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
}

.shopbar-info-check-yes {
	background: rgba(0, 168, 107, 0.1);
	color: var(--sn-color-green);
}

.shopbar-info-check-no {
	background: rgba(229, 62, 62, 0.06);
	color: #CBD5E0;
}

/* ── CTA Section ── */
.shopbar-info-cta {
	margin-top: 32px;
	background: linear-gradient(135deg, #1C1C1C 0%, #2D3748 100%);
	border-radius: var(--sn-radius-lg);
	padding: 40px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.shopbar-info-cta::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(184, 151, 126, 0.15) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.shopbar-info-cta-inner {
	position: relative;
	z-index: 1;
}

.shopbar-info-cta-title {
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 8px;
	letter-spacing: -0.02em;
}

.shopbar-info-cta-desc {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
	margin: 0 0 24px;
	line-height: 1.6;
}

.shopbar-info-cta-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.shopbar-info-cta .shopbar-info-btn-outline {
	color: rgba(255, 255, 255, 0.7);
	border-color: rgba(255, 255, 255, 0.2);
}

.shopbar-info-cta .shopbar-info-btn-outline:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.5);
	background: rgba(255, 255, 255, 0.05);
}

/* ── Footer ── */
.shopbar-info-footer {
	margin-top: 32px;
	padding: 20px 0;
	border-top: 1px solid var(--sn-color-border);
	text-align: center;
}

.shopbar-info-footer-inner p {
	font-size: 13px;
	color: var(--sn-color-text-muted);
	margin: 0;
}

.shopbar-info-footer-inner a {
	color: var(--sn-color-accent);
	text-decoration: none;
	font-weight: 500;
}

.shopbar-info-footer-inner a:hover {
	text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 782px) {
	.shopbar-info-wrap {
		margin: 10px auto;
		padding: 0 10px;
	}

	.shopbar-info-header {
		padding: 20px;
	}

	.shopbar-info-header-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.shopbar-info-tabs-inner {
		padding: 0 4px;
	}

	.shopbar-info-tab {
		padding: 12px 14px;
		font-size: 13px;
	}

	.shopbar-info-card-header {
		padding: 20px 20px 0;
	}

	.shopbar-info-card-body {
		padding: 16px 20px 20px;
	}

	.shopbar-info-features-grid {
		grid-template-columns: 1fr;
	}

	.shopbar-info-plugins-grid {
		grid-template-columns: 1fr;
	}

	.shopbar-info-cta {
		padding: 28px 20px;
	}

	.shopbar-info-cta-title {
		font-size: 18px;
	}
}
