/**
 * Anti-Cache Kit - Admin Styles
 *
 * Dark cards on WordPress default background.
 * Monospace typography for technical values.
 */

/* --- Variables --- */
:root {
	--ac-card-bg: #2b2d31;
	--ac-card-border: #3b3d44;
	--ac-card-head-bg: #232428;
	--ac-text: #d4d4d4;
	--ac-text-dim: #9d9d9d;
	--ac-text-muted: #6a6a6a;
	--ac-accent: #4ec9b0;
	--ac-accent-hover: #5de5d5;
	--ac-warn: #dcdcaa;
	--ac-danger: #f44747;
	--ac-info: #569cd6;
	--ac-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
	--ac-radius: 6px;
}

/* --- Header --- */
.ac-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 16px 0 20px;
}

.ac-header-left {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.ac-header-left h1 {
	margin: 0;
	padding: 0;
	font-size: 22px;
}

.ac-version {
	font-family: var(--ac-mono);
	font-size: 11px;
	color: #888;
	background: #e0e0e0;
	padding: 2px 7px;
	border-radius: 3px;
}

.ac-header-warn {
	font-family: var(--ac-mono);
	font-size: 11px;
	color: #856404;
	background: #fff3cd;
	border: 1px solid #ffeaa7;
	padding: 5px 12px;
	border-radius: 4px;
}

/* --- Grid --- */
.ac-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 24px;
}

/* --- Cards --- */
.ac-card {
	background: var(--ac-card-bg);
	border: 1px solid var(--ac-card-border);
	border-radius: var(--ac-radius);
	overflow: hidden;
	color: var(--ac-text);
}

.ac-full {
	grid-column: 1 / -1;
}

.ac-card-head {
	padding: 10px 16px;
	border-bottom: 1px solid var(--ac-card-border);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--ac-accent);
	background: var(--ac-card-head-bg);
}

.ac-card-body {
	padding: 14px 16px;
}

/* Alert card variant */
.ac-card-alert .ac-card-head {
	color: var(--ac-danger);
}

/* --- Status rows --- */
.ac-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 7px 0;
	border-bottom: 1px solid rgba(59, 61, 68, 0.5);
}

.ac-row:last-child {
	border-bottom: none;
}

.ac-label {
	font-family: var(--ac-mono);
	font-size: 13px;
	color: var(--ac-text-dim);
}

/* --- Badges --- */
.ac-badge {
	font-family: var(--ac-mono);
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 3px;
	letter-spacing: 0.5px;
}

.ac-badge.on {
	background: rgba(78, 201, 176, 0.15);
	color: var(--ac-accent);
	border: 1px solid rgba(78, 201, 176, 0.3);
}

.ac-badge.off {
	background: rgba(157, 157, 157, 0.08);
	color: var(--ac-text-muted);
	border: 1px solid rgba(157, 157, 157, 0.2);
}

.ac-badge.warn {
	background: rgba(220, 220, 170, 0.12);
	color: var(--ac-warn);
	border: 1px solid rgba(220, 220, 170, 0.25);
}

/* --- Actions --- */
.ac-action {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid rgba(59, 61, 68, 0.5);
}

.ac-action:last-child {
	border-bottom: none;
}

.ac-action strong {
	display: block;
	font-size: 13px;
	color: var(--ac-text);
	margin-bottom: 2px;
}

.ac-desc {
	font-size: 12px;
	color: var(--ac-text-muted);
	display: block;
}

/* --- Buttons --- */
.ac-btn {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 600;
	font-family: var(--ac-mono);
	border-radius: 4px;
	border: 1px solid;
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
	line-height: 1.4;
	background: none;
}

.ac-btn:focus {
	outline: 2px solid var(--ac-accent);
	outline-offset: 2px;
}

.ac-btn.primary {
	background: rgba(78, 201, 176, 0.12);
	color: var(--ac-accent);
	border-color: rgba(78, 201, 176, 0.35);
}

.ac-btn.primary:hover {
	background: rgba(78, 201, 176, 0.22);
	color: var(--ac-accent-hover);
}

.ac-btn.secondary {
	background: rgba(86, 156, 214, 0.08);
	color: var(--ac-info);
	border-color: rgba(86, 156, 214, 0.25);
}

.ac-btn.secondary:hover {
	background: rgba(86, 156, 214, 0.18);
}

.ac-btn.warn {
	background: rgba(220, 220, 170, 0.08);
	color: var(--ac-warn);
	border-color: rgba(220, 220, 170, 0.25);
}

.ac-btn.warn:hover {
	background: rgba(220, 220, 170, 0.18);
}

.ac-btn.danger {
	background: rgba(244, 71, 71, 0.08);
	color: var(--ac-danger);
	border-color: rgba(244, 71, 71, 0.25);
}

.ac-btn.danger:hover {
	background: rgba(244, 71, 71, 0.18);
}

/* --- Plugin list --- */
.ac-plugin-list {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.ac-plugin-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 10px;
	background: rgba(244, 71, 71, 0.05);
	border-radius: 3px;
	border: 1px solid rgba(244, 71, 71, 0.12);
}

.ac-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--ac-danger);
	flex-shrink: 0;
}

.ac-plugin-item code {
	font-family: var(--ac-mono);
	font-size: 12px;
	color: var(--ac-text-dim);
	background: none;
	padding: 0;
}

/* --- Revert list --- */
.ac-revert-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ac-revert-list li {
	position: relative;
	padding: 3px 0 3px 16px;
	font-size: 12px;
	color: var(--ac-text-dim);
	font-family: var(--ac-mono);
}

.ac-revert-list li::before {
	content: '>';
	position: absolute;
	left: 0;
	color: var(--ac-accent);
	font-weight: bold;
}

.ac-reminder {
	margin: 12px 0 0;
	padding: 7px 12px;
	background: rgba(220, 220, 170, 0.06);
	border: 1px solid rgba(220, 220, 170, 0.12);
	border-radius: 3px;
	font-size: 11px;
	color: var(--ac-warn);
	font-family: var(--ac-mono);
}

/* --- Features grid --- */
.ac-features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.ac-feat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px;
	background: var(--ac-card-head-bg);
	border: 1px solid var(--ac-card-border);
	border-radius: 4px;
}

.ac-feat-name {
	font-family: var(--ac-mono);
	font-size: 11px;
	font-weight: 700;
	color: var(--ac-accent);
}

/* --- Promo banner --- */
.ac-promo-banner {
	margin-bottom: 16px;
}

.ac-promo-banner h4 {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #888;
	margin: 0 0 10px;
}

.ac-promo-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.ac-promo-column {
	background: var(--ac-card-bg);
	border: 1px solid var(--ac-card-border);
	border-radius: var(--ac-radius);
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	color: var(--ac-text);
}

.ac-promo-column .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: var(--ac-accent);
	margin-bottom: 8px;
}

.ac-promo-column h5 {
	font-size: 13px;
	font-weight: 600;
	color: var(--ac-text);
	margin: 0 0 5px;
}

.ac-promo-column p {
	font-size: 12px;
	color: var(--ac-text-muted);
	line-height: 1.5;
	margin: 0 0 10px;
	flex-grow: 1;
}

/* Override WP buttons inside promo */
.ac-promo-column .button {
	font-size: 11px;
	padding: 3px 10px;
	align-self: flex-start;
	background: var(--ac-card-head-bg);
	color: var(--ac-text-dim);
	border-color: var(--ac-card-border);
}

.ac-promo-column .button:hover {
	background: #3b3d44;
	color: var(--ac-text);
	border-color: var(--ac-accent);
}

.ac-promo-column .button-primary {
	background: var(--ac-accent);
	color: #1e1e1e;
	border-color: var(--ac-accent);
}

.ac-promo-column .button-primary:hover {
	background: var(--ac-accent-hover);
	border-color: var(--ac-accent-hover);
	color: #1e1e1e;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
	.ac-features {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 960px) {
	.ac-grid {
		grid-template-columns: 1fr;
	}

	.ac-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.ac-promo-columns {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.ac-features {
		grid-template-columns: 1fr;
	}

	.ac-action {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
}
