/**
 * Atlas plugins catalog page (moved out of atlas-plugins.js, SLAI-12).
 */

.atlas_plugins_wrap {
	max-width: 1200px;
	padding: 20px 20px 20px 0;
}

/* Banner */
.atlas_plugins_banner {
	background: linear-gradient(135deg, #1d2327 0%, #2c3338 100%);
	color: #fff;
	padding: 16px 24px;
	border-radius: 10px;
	margin-bottom: 20px;
}

.atlas_plugins_banner h2 {
	font-size: 18px;
	font-weight: 600;
	color: #fff;
	margin: 0 0 4px 0;
}

.atlas_plugins_banner h2 span {
	color: #72aee6;
}

.atlas_plugins_banner p {
	font-size: 14px;
	color: #c3c4c7;
	margin: 0;
}

/* Header */
.atlas_plugins_header {
	margin-bottom: 8px;
}

.atlas_plugins_header_row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
}

.atlas_plugins_header p {
	font-size: 14px;
	color: #50575e;
	margin: 0;
}

.atlas_plugins_refresh_btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: #f0f0f1;
	color: #1d2327;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.atlas_plugins_refresh_btn:hover {
	background: #e0e0e0;
	border-color: #999;
}

.atlas_plugins_refresh_btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.atlas_plugins_refresh_btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
}

.atlas_plugins_refresh_btn.atlas_plugins_refreshing .dashicons {
	animation: atlas_plugins_spin 1s linear infinite;
}

@keyframes atlas_plugins_spin {

	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.atlas_plugins_refresh_msg {
	font-size: 13px;
	margin-left: 8px;
}

.atlas_plugins_refresh_msg.atlas_plugins_success {
	color: #00a32a;
}

.atlas_plugins_refresh_msg.atlas_plugins_fail {
	color: #d63638;
}

/* Grid */
.atlas_plugins_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 24px;
	padding: 24px 0;
}

/* Card */
.atlas_plugins_card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease;
	position: relative;
}

.atlas_plugins_card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.atlas_plugins_card.atlas_plugins_current_card {
	border-color: #2271b1;
	border-width: 2px;
}

/* Card header with icon */
.atlas_plugins_card_header {
	display: flex;
	gap: 14px;
	margin-bottom: 12px;
	align-items: flex-start;
}

.atlas_plugins_icon {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	flex-shrink: 0;
	object-fit: cover;
	background: #f0f0f1;
}

.atlas_plugins_card_header_info {
	flex: 1;
	min-width: 0;
}

.atlas_plugins_name {
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
	margin: 0 0 4px 0;
	line-height: 1.3;
}

/* Badges row */
.atlas_plugins_badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 4px;
}

.atlas_plugins_badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.atlas_plugins_badge_new {
	background: #fcf0e3;
	color: #b26200;
}

.atlas_plugins_badge_pro {
	background: #f0e6ff;
	color: #6b21a8;
}

.atlas_plugins_badge_recommended {
	background: #e6f4ea;
	color: #1a7431;
}

.atlas_plugins_badge_here {
	background: #e8f0fe;
	color: #1a56db;
}

/* Rating & installs */
.atlas_plugins_meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #646970;
}

.atlas_plugins_star {
	font-size: 14px;
	line-height: 1;
}

.atlas_plugins_star_full {
	color: #f0b849;
}

.atlas_plugins_star_half {
	color: #f0b849;
	opacity: 0.6;
}

.atlas_plugins_star_empty {
	color: #c3c4c7;
}

.atlas_plugins_meta_sep {
	color: #c3c4c7;
}

/* Description */
.atlas_plugins_description {
	font-size: 13px;
	color: #50575e;
	margin: 0 0 14px 0;
	line-height: 1.5;
}

/* Accordion */
.atlas_plugins_accordion {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	margin-bottom: 16px;
	overflow: hidden;
}

.atlas_plugins_accordion_header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: #f6f7f7;
	cursor: pointer;
	border: none;
	width: 100%;
	font-size: 13px;
	font-weight: 500;
	color: #1d2327;
	text-align: left;
}

.atlas_plugins_accordion_header:hover {
	background: #f0f0f1;
}

.atlas_plugins_accordion_icon {
	transition: transform 0.2s ease;
}

.atlas_plugins_accordion_icon.atlas_plugins_open {
	transform: rotate(180deg);
}

.atlas_plugins_accordion_body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.atlas_plugins_accordion_body.atlas_plugins_expanded {
	max-height: 500px;
}

.atlas_plugins_features_list {
	list-style: none;
	margin: 0;
	padding: 10px 14px;
}

.atlas_plugins_features_list li {
	padding: 5px 0;
	font-size: 12px;
	color: #50575e;
	border-bottom: 1px solid #f0f0f1;
	display: flex;
	align-items: flex-start;
	gap: 6px;
}

.atlas_plugins_features_list li:last-child {
	border-bottom: none;
}

.atlas_plugins_feature_check {
	color: #00a32a;
	flex-shrink: 0;
	font-weight: 700;
	font-size: 13px;
}

/* Actions */
.atlas_plugins_actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 8px;
	flex-wrap: wrap;
}

.atlas_plugins_btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s ease;
	text-decoration: none;
}

.atlas_plugins_btn:hover {
	opacity: 0.9;
}

.atlas_plugins_btn:disabled {
	background: #a7aaad !important;
	cursor: not-allowed;
}

.atlas_plugins_btn .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	line-height: 14px;
}

.atlas_plugins_install_btn {
	background: #2271b1;
}

.atlas_plugins_install_btn:hover {
	background: #135e96;
}

.atlas_plugins_activate_btn {
	background: #00a32a;
}

.atlas_plugins_activate_btn:hover {
	background: #008a20;
}

.atlas_plugins_configure_btn {
	background: #50575e;
}

.atlas_plugins_configure_btn:hover {
	background: #3c4043;
}

.atlas_plugins_pro_btn {
	background: linear-gradient(135deg, #6b21a8, #9333ea);
}

.atlas_plugins_pro_btn:hover {
	opacity: 0.9;
}

.atlas_plugins_activating .atlas_plugins_activate_btn {
	background: #dba617;
}

.atlas_plugins_installing .atlas_plugins_install_btn {
	background: #dba617;
}

.atlas_plugins_link {
	font-size: 13px;
	color: #2271b1;
	text-decoration: none;
	font-weight: 500;
}

.atlas_plugins_link:hover {
	color: #135e96;
	text-decoration: underline;
}

.atlas_plugins_active_badge {
	display: inline-block;
	padding: 6px 14px;
	background: #00a32a;
	color: #fff;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
}

.atlas_plugins_error {
	color: #d63638;
	font-size: 13px;
	margin-top: 4px;
	width: 100%;
}
