/**
 * STRYKE WP — Plugin Meta Styles
 *
 * Loaded only on plugins.php to highlight the STRYKE WP row
 * and style the deactivation feedback modal.
 */

/* ==========================================================================
   1. Plugin Row Highlight
   ========================================================================== */

tr[data-plugin="stryke-wp/stryke-wp.php"] th,
tr[data-plugin="stryke-wp/stryke-wp.php"] td {
	border-left: 4px solid #189ba7;
}

tr[data-plugin="stryke-wp/stryke-wp.php"] .plugin-title strong {
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Plugin logo before name — path set via CSS custom property from JS */
tr[data-plugin="stryke-wp/stryke-wp.php"] .plugin-title strong::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 22px;
	background-image: var(--stryke-icon-url);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	vertical-align: middle;
	flex-shrink: 0;
	border-radius: 4px;
}

/* Action links styling */
tr[data-plugin="stryke-wp/stryke-wp.php"] .row-actions a[href*="page=stryke-wp"] {
	font-weight: 500;
	color: #189ba7;
}

/* Row meta — external links as subtle pill buttons */
tr[data-plugin="stryke-wp/stryke-wp.php"] .plugin-description a[href*="strykehub"],
tr[data-plugin="stryke-wp/stryke-wp.php"] .plugin-description a[href*="strykemarketing"] {
	display: inline-block;
	padding: 2px 10px;
	border: 1px solid #189ba7;
	border-radius: 12px;
	color: #189ba7;
	font-weight: 500;
	font-size: 12px;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}

tr[data-plugin="stryke-wp/stryke-wp.php"] .plugin-description a[href*="strykehub"]:hover,
tr[data-plugin="stryke-wp/stryke-wp.php"] .plugin-description a[href*="strykemarketing"]:hover {
	background-color: #189ba7;
	color: #fff;
}

/* Active row subtle background */
tr[data-plugin="stryke-wp/stryke-wp.php"].active th,
tr[data-plugin="stryke-wp/stryke-wp.php"].active td {
	background-color: rgba(24, 155, 167, 0.03);
}

/* ==========================================================================
   2. Dark Theme Compatibility (Branding Module active)
   ========================================================================== */

body.stryke-admin-shell tr[data-plugin="stryke-wp/stryke-wp.php"] th,
body.stryke-admin-shell tr[data-plugin="stryke-wp/stryke-wp.php"] td {
	border-left-color: #189ba7;
}

body.stryke-admin-shell tr[data-plugin="stryke-wp/stryke-wp.php"].active th,
body.stryke-admin-shell tr[data-plugin="stryke-wp/stryke-wp.php"].active td {
	background-color: rgba(24, 155, 167, 0.08);
}

/* Dark theme pill buttons */
body.stryke-admin-shell tr[data-plugin="stryke-wp/stryke-wp.php"] .plugin-description a[href*="strykehub"],
body.stryke-admin-shell tr[data-plugin="stryke-wp/stryke-wp.php"] .plugin-description a[href*="strykemarketing"] {
	border-color: #189ba7;
	color: #5dd8e4;
}

body.stryke-admin-shell tr[data-plugin="stryke-wp/stryke-wp.php"] .plugin-description a[href*="strykehub"]:hover,
body.stryke-admin-shell tr[data-plugin="stryke-wp/stryke-wp.php"] .plugin-description a[href*="strykemarketing"]:hover {
	background-color: #189ba7;
	color: #fff;
}

/* ==========================================================================
   3. Deactivation Feedback Modal
   ========================================================================== */

.stryke-wp-modal__backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100000;
}

.stryke-wp-modal__dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
	width: 480px;
	max-width: 90vw;
	z-index: 100001;
	overflow: hidden;
}

.stryke-wp-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #e0e0e0;
}

.stryke-wp-modal__header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
}

.stryke-wp-modal__close {
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: #787c82;
	padding: 0 4px;
	line-height: 1;
}

.stryke-wp-modal__close:hover {
	color: #d63638;
}

.stryke-wp-modal__body {
	padding: 20px;
}

.stryke-wp-modal__body p {
	margin: 0 0 16px;
	font-size: 14px;
	color: #3c434a;
}

.stryke-wp-modal__checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #50575e;
	cursor: pointer;
}

.stryke-wp-modal__checkbox input[type="checkbox"] {
	margin: 0;
}

.stryke-wp-modal__footer {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding: 16px 20px;
	border-top: 1px solid #e0e0e0;
	background: #f6f7f7;
}

.stryke-wp-modal__confirm {
	background-color: #d63638 !important;
	border-color: #d63638 !important;
	color: #fff !important;
}

.stryke-wp-modal__confirm:hover {
	background-color: #b32d2e !important;
	border-color: #b32d2e !important;
}

/* Dark Theme modal */
body.stryke-admin-shell .stryke-wp-modal__dialog {
	background: #252525;
}

body.stryke-admin-shell .stryke-wp-modal__header {
	border-bottom-color: #3a3a3a;
}

body.stryke-admin-shell .stryke-wp-modal__header h3 {
	color: #f0f0f0;
}

body.stryke-admin-shell .stryke-wp-modal__body p {
	color: #ccc;
}

body.stryke-admin-shell .stryke-wp-modal__checkbox {
	color: #9e9e9e;
}

body.stryke-admin-shell .stryke-wp-modal__footer {
	border-top-color: #3a3a3a;
	background: #1a1a1a;
}

/* ==========================================================================
   4. Activation Notice
   ========================================================================== */

.stryke-wp-activation-notice {
	border-left-color: #189ba7;
}

.stryke-wp-activation-notice a {
	color: #189ba7;
	font-weight: 500;
}

.stryke-wp-activation-notice a:hover {
	color: #127a84;
}
