/* Recommendations Page Styles */
.peiwm-recommendations-wrap {
	margin: 0 auto;
}

.peiwm-recommendations-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 48px 24px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.peiwm-recommendations-header h2 {
	color: white;
}

.peiwm-recommendations-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
	pointer-events: none;
}

.peiwm-recommendations-header h1 {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 12px 0;
	color: #ffffff;
	position: relative;
	z-index: 1;
}

.peiwm-recommendations-header .subtitle {
	font-size: 18px;
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	position: relative;
	z-index: 1;
}

.peiwm-recommendations-content {
	margin-top: 25px;
}

/* Enhanced Section Headers */
.recommendation-section {
	margin-bottom: 48px;
}

.recommendation-section .section-header {
	margin-bottom: 0;
	padding: 32px;
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	border-radius: 12px 12px 0 0;
	border: 1px solid #e2e8f0;
	position: relative;
	justify-content: center;
	align-items: center;
	display: flex;
	flex-direction: column;
}

.recommendation-section .section-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
	border-radius: 12px 12px 0 0;
}

.recommendation-section .section-header .group-title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 12px 0;
	color: #1e293b;
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 40px;
}

.recommendation-section .section-header .group-description {
	color: #64748b;
	margin: 0 0 20px 0;
	font-size: 16px;
	line-height: 1.6;
}

/* Group Features */
.group-features {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	margin-top: 20px;
}

.features-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	flex: 1;
}

.features-list li {
	background: white;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	color: #475569;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.group-highlight {
	background: linear-gradient(135deg, #f59e0b, #d97706);
	color: white;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

/* Enhanced Plugin Groups */
.plugin-group-section .plugin-group {
	background: white;
	border-radius: 0 0 12px 12px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	border: 1px solid #e2e8f0;
	border-top: none;
}

.plugin-group-section .plugin-items {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	padding: 32px;
	justify-content: center;
	align-items: stretch;
}

/* Enhanced Plugin Cards with Fixed Layout */
.enhanced-plugin-card {
	border: 2px solid #e2e8f0;
	border-radius: 16px;
	background: white;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	position: relative;
	width: 410px;
	max-width: 545px;
	min-width: 460px;
	display: flex;
	flex-direction: column;
}


.enhanced-plugin-card:hover {
	border-color: #3b82f6;
	transform: translateY(-6px);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.enhanced-plugin-card:hover::before {
	opacity: 1;
}

/* Plugin Card Content - Fixed Structure */
.plugin-card-content {
	padding: 28px 24px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1;
}

/* Large Plugin Icon Section - Fixed at Top */
.plugin-icon-section {
	width: 100%;
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
	order: 1;
}

.plugin-icon-section a {
	display: block;
	transition: transform 0.3s ease;
}

.plugin-icon-section a:hover {
	transform: scale(1.05);
}

.plugin-icon-large {
	width: 100px;
	height: 100px;
	border-radius: 16px;
	border: 3px solid #e2e8f0;
	object-fit: cover;
	background: #f8fafc;
	transition: all 0.3s ease;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
	display: block;
}

.enhanced-plugin-card:hover .plugin-icon-large {
	border-color: #3b82f6;
	box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* Plugin Info Section - Below Icon */
.plugin-info-section {
	width: 100%;
	order: 2;
	margin-bottom: 20px;
}

.plugin-title {
	margin: 0 0 16px 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #1e293b;
}

.plugin-title a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

.plugin-title a:hover {
	color: #3b82f6;
}

/* Plugin Benefits - Below Title */
.plugin-benefits {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-bottom: 16px;
}

.benefit-tag {
	background: linear-gradient(135deg, #eff6ff, #dbeafe);
	color: #1e40af;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	border: 1px solid #bfdbfe;
	white-space: nowrap;
}

/* Plugin Description - Below Benefits */
.plugin-description {
	width: 100%;
	text-align: left;
	order: 3;
	margin-bottom: 20px;
	flex: 1;
}

.plugin-description p {
	color: #475569;
	margin: 0 0 16px 0;
	line-height: 1.5;
	font-size: 14px;
}

.key-features {
	background: #f8fafc;
	padding: 16px;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
}

.key-features h4 {
	margin: 0 0 12px 0;
	font-size: 13px;
	font-weight: 700;
	color: #374151;
	text-align: center;
}

.key-features ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.key-features li {
	padding: 3px 0;
	font-size: 12px;
	color: #6b7280;
	position: relative;
	padding-left: 16px;
	font-weight: 500;
}

.key-features li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #10b981;
	font-weight: bold;
	font-size: 14px;
}

/* Plugin Actions Section - At Bottom */
.plugin-actions-section {
	width: 100%;
	order: 4;
	margin-top: auto;
}

.action-buttons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	text-align: center;
	justify-content: center;
	flex-direction: column;
}

.enhanced-plugin-card .button {
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	border: 2px solid transparent;
	transition: all 0.3s ease;
	cursor: pointer;
	min-width: 100px;
	text-align: center;
}

.enhanced-plugin-card .button-primary {
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	color: white;
	border-color: #3b82f6;
}

.enhanced-plugin-card .button-primary:hover {
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.enhanced-plugin-card .button-success {
	background: linear-gradient(135deg, #10b981, #059669);
	color: white;
	border-color: #10b981;
}

.enhanced-plugin-card .button-secondary {
	background: white;
	color: #6b7280;
	border-color: #d1d5db;
}

.enhanced-plugin-card .button-secondary:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

.enhanced-plugin-card .button-disabled {
	background: #f3f4f6;
	color: #9ca3af;
	border-color: #e5e7eb;
	cursor: not-allowed;
}

/* Plugin Card Footer */
.plugin-card-footer {
	padding: 16px 24px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	margin-top: auto;
}

.plugin-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	font-size: 11px;
	text-align: center;
}

.meta-item {
	color: #6b7280;
}

.meta-item strong {
	color: #374151;
}

.author-info cite {
	font-style: normal;
	color: #3b82f6;
	font-weight: 500;
}

/* Developer Links */
.developer-info-section .developer-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

.developer-links .link-grid {
	display: contents;
}

.dev-link {
	display: flex;
	align-items: center;
	padding: 24px;
	background: white;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dev-link:hover {
	border-color: #3b82f6;
	background: #f8fafc;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.dev-link .link-icon {
	font-size: 2rem;
	margin-right: 20px;
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #eff6ff, #dbeafe);
	border-radius: 12px;
	border: 2px solid #bfdbfe;
}

.dev-link .link-content h3 {
	margin: 0 0 6px 0;
	font-size: 1.2rem;
	font-weight: 700;
	color: #1e293b;
}

.dev-link .link-content p {
	margin: 0 0 6px 0;
	color: #64748b;
	font-size: 0.95rem;
	line-height: 1.4;
}

.dev-link .link-content .link-url {
	font-size: 0.85rem;
	color: #3b82f6;
	font-weight: 600;
}

/* Loading State */
.peiwm-loading {
	text-align: center;
	padding: 80px 20px;
}

.peiwm-loading-spinner {
	width: 48px;
	height: 48px;
	border: 4px solid #e2e8f0;
	border-top: 4px solid #3b82f6;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 24px;
}

.peiwm-loading h3 {
	color: #64748b;
	font-weight: 600;
	margin: 0 0 8px 0;
	font-size: 18px;
}

.peiwm-loading p {
	color: #94a3b8;
	margin: 0;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Error State */
.peiwm-error {
	text-align: center;
	padding: 60px 20px;
	color: #dc2626;
}

.peiwm-error h3 {
	margin: 0 0 12px 0;
	font-size: 1.4rem;
	font-weight: 600;
}

.peiwm-error p {
	margin: 0;
	color: #6b7280;
}

/* Responsive Design */
@media (max-width: 1200px) {
	.plugin-group-section .plugin-items {
		gap: 20px;
		padding: 28px;
	}

	.enhanced-plugin-card {
		width: 380px;
		max-width: 380px;
		min-width: 340px;
	}
}

@media (max-width: 900px) {
	.plugin-group-section .plugin-items {
		gap: 18px;
		padding: 24px;
	}

	.enhanced-plugin-card {
		width: 360px;
		max-width: 360px;
		min-width: 320px;
	}

	.plugin-icon-large {
		width: 90px;
		height: 90px;
	}

	.plugin-title {
		font-size: 17px;
	}
}

@media (max-width: 768px) {
	.peiwm-recommendations-header {
		padding: 32px 16px;
	}

	.peiwm-recommendations-header h1 {
		font-size: 24px;
	}

	.peiwm-recommendations-header .subtitle {
		font-size: 16px;
	}

	.recommendation-section .section-header {
		padding: 24px 20px;
	}

	.recommendation-section .section-header .group-title {
		font-size: 22px;
	}

	.group-features {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.plugin-group-section .plugin-items {
		flex-direction: column;
		align-items: center;
		gap: 20px;
		padding: 20px;
	}

	.enhanced-plugin-card {
		width: 100%;
		max-width: 400px;
		min-width: 280px;
	}

	.plugin-card-content {
		padding: 24px 20px 20px;
	}

	.plugin-icon-large {
		width: 80px;
		height: 80px;
	}

	.plugin-title {
		font-size: 16px;
	}

	.plugin-description p {
		font-size: 13px;
	}

	.key-features {
		padding: 14px;
	}

	.key-features h4 {
		font-size: 12px;
	}

	.key-features li {
		font-size: 11px;
	}

	.action-buttons {
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}

	.enhanced-plugin-card .button {
		min-width: 160px;
		padding: 10px 20px;
	}

	.plugin-meta {
		flex-direction: column;
		gap: 6px;
		font-size: 10px;
	}

	.developer-links {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.plugin-group-section .plugin-items {
		padding: 16px;
	}

	.enhanced-plugin-card {
		max-width: 100%;
		min-width: 260px;
	}

	.plugin-card-content {
		padding: 20px 16px 16px;
	}

	.plugin-card-footer {
		padding: 14px 16px;
	}

	.plugin-icon-large {
		width: 70px;
		height: 70px;
	}

	.plugin-title {
		font-size: 15px;
	}

	.benefit-tag {
		font-size: 10px;
		padding: 3px 8px;
	}

	.plugin-description p {
		font-size: 12px;
		line-height: 1.4;
	}

	.enhanced-plugin-card .button {
		min-width: 140px;
		font-size: 12px;
	}
}