/**
 * Extended Interactive Tools Stylesheet
 *
 * Styles for:
 * 1. Master Tools Hub ([afrb_tools_hub])
 * 2. Art Style & Anatomy Explorer ([afrb_style_explorer])
 * 3. Negative Prompt Generator ([afrb_negative_prompt])
 * 4. AI License Checker ([afrb_license_checker])
 *
 * @package Afrobull_Resource_Tools
 */

:root {
	--afrb-tool-primary: #2563eb;
	--afrb-tool-surface: #ffffff;
	--afrb-tool-bg: #f8fafc;
	--afrb-tool-border: #e2e8f0;
	--afrb-tool-text-main: #0f172a;
	--afrb-tool-text-muted: #475569;
}

.afrb-tool-wrapper {
	background: #ffffff;
	border: 1px solid var(--afrb-tool-border);
	border-radius: 12px;
	padding: 32px;
	margin: 28px 0;
	box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
	color: var(--afrb-tool-text-main);
	font-family: inherit;
}

@media (max-width: 640px) {
	.afrb-tool-wrapper {
		padding: 20px 16px;
	}
}

.afrb-tool-header {
	margin-bottom: 24px;
	border-bottom: 1px solid var(--afrb-tool-border);
	padding-bottom: 18px;
}

.afrb-tool-title {
	font-size: 24px;
	font-weight: 800;
	margin: 8px 0;
	color: var(--afrb-tool-text-main);
}

.afrb-tool-subtitle {
	font-size: 15px;
	color: var(--afrb-tool-text-muted);
	margin: 0;
	line-height: 1.5;
	max-width: 780px;
}

/* ----------------------------------------------------
   1. Tools Hub Grid
   ---------------------------------------------------- */
.afrb-tools-hub-container {
	margin: 24px 0;
}

.afrb-tools-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 960px) {
	.afrb-tools-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.afrb-tools-grid {
		grid-template-columns: 1fr;
	}
}

.afrb-tool-card {
	background: #ffffff;
	border: 1px solid var(--afrb-tool-border);
	border-radius: 10px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.afrb-tool-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08);
	border-color: #cbd5e1;
}

.afrb-tool-card-icon {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	margin-bottom: 14px;
}

.afrb-tool-card-meta {
	display: flex;
	gap: 6px;
	margin-bottom: 10px;
}

.afrb-pill {
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.afrb-pill-primary { background: #eff6ff; color: #1d4ed8; }
.afrb-pill-verified { background: #dcfce7; color: #15803d; }
.afrb-pill-warning { background: #fef3c7; color: #92400e; }
.afrb-pill-neutral { background: #f1f5f9; color: #475569; }

.afrb-tool-card-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 8px;
}

.afrb-tool-card-title a {
	color: #0f172a;
	text-decoration: none;
}

.afrb-tool-card-title a:hover {
	color: #2563eb;
}

.afrb-tool-card-desc {
	font-size: 14px;
	color: #475569;
	line-height: 1.5;
	margin: 0 0 16px;
	flex-grow: 1;
}

.afrb-tool-feature-list {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	font-size: 12.5px;
	color: #64748b;
}

.afrb-tool-feature-list li {
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.afrb-tool-feature-list li::before {
	content: "\2022";
	color: #2563eb;
	font-weight: bold;
	font-size: 14px;
}

/* ----------------------------------------------------
   2. Style Explorer Tabs & Cards
   ---------------------------------------------------- */
.afrb-style-tabs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 8px;
	margin-bottom: 24px;
	scrollbar-width: thin;
}

.afrb-style-tab-btn {
	background: #f8fafc;
	border: 1px solid var(--afrb-tool-border);
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 13.5px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.15s ease;
}

.afrb-style-tab-btn:hover,
.afrb-style-tab-btn.active {
	background: #2563eb;
	color: #ffffff;
	border-color: #2563eb;
}

.afrb-style-content-card {
	background: #fafbfc;
	border: 1px solid var(--afrb-tool-border);
	border-radius: 10px;
	padding: 24px;
}

.afrb-style-meta-strip {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.afrb-style-heading {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #0f172a;
}

.afrb-style-lead {
	font-size: 15px;
	color: #475569;
	line-height: 1.6;
	margin-bottom: 20px;
}

.afrb-specs-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 24px;
}

@media (max-width: 640px) {
	.afrb-specs-grid {
		grid-template-columns: 1fr;
	}
}

.afrb-spec-box {
	background: #ffffff;
	border: 1px solid var(--afrb-tool-border);
	border-radius: 8px;
	padding: 14px 16px;
}

.afrb-spec-box h4 {
	font-size: 13px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 6px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.afrb-spec-box p {
	font-size: 13.5px;
	color: #475569;
	margin: 0;
	line-height: 1.45;
}

.afrb-prompt-token-box {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 16px;
}

.afrb-token-box-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	font-size: 12.5px;
	font-weight: 700;
	color: #334155;
}

.afrb-copy-token-btn {
	background: #2563eb;
	color: #ffffff;
	border: none;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
}

.afrb-copy-token-btn:hover {
	background: #1d4ed8;
}

.afrb-token-code {
	display: block;
	font-family: ui-monospace, Menlo, Monaco, monospace;
	font-size: 13px;
	line-height: 1.5;
	color: #0f172a;
	background: #f1f5f9;
	padding: 10px 12px;
	border-radius: 6px;
	word-break: break-word;
}

.afrb-copy-toast {
	margin-top: 8px;
	font-size: 12px;
	font-weight: 600;
	color: #15803d;
	background: #dcfce7;
	padding: 4px 8px;
	border-radius: 4px;
	display: inline-block;
}

/* ----------------------------------------------------
   3. Negative Prompt Generator Grid & Checkboxes
   ---------------------------------------------------- */
.afrb-neg-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 28px;
	align-items: start;
}

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

.afrb-neg-group {
	background: #fafbfc;
	border: 1px solid var(--afrb-tool-border);
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
}

.afrb-neg-group-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.afrb-neg-group-header h4 {
	font-size: 14px;
	font-weight: 700;
	margin: 0;
	color: #1e293b;
}

.afrb-toggle-all-btn {
	background: transparent;
	border: none;
	color: #2563eb;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
}

.afrb-checkbox-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

@media (max-width: 500px) {
	.afrb-checkbox-list {
		grid-template-columns: 1fr;
	}
}

.afrb-check-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #334155;
	cursor: pointer;
}

.afrb-check-label input {
	cursor: pointer;
}

.afrb-neg-output-sidebar {
	position: sticky;
	top: 24px;
}

/* ----------------------------------------------------
   4. AI License Checker
   ---------------------------------------------------- */
.afrb-license-select-bar {
	display: flex;
	align-items: center;
	margin-bottom: 24px;
	background: #f1f5f9;
	padding: 12px 16px;
	border-radius: 8px;
}

@media (max-width: 600px) {
	.afrb-license-select-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}
}

.afrb-license-card {
	background: #fafbfc;
	border: 1px solid var(--afrb-tool-border);
	border-radius: 10px;
	padding: 24px;
}

.afrb-license-header-box {
	margin-bottom: 20px;
	border-bottom: 1px solid var(--afrb-tool-border);
	padding-bottom: 16px;
}

.afrb-permission-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 24px;
}

@media (max-width: 680px) {
	.afrb-permission-grid {
		grid-template-columns: 1fr;
	}
}

.afrb-perm-item {
	background: #ffffff;
	border: 1px solid var(--afrb-tool-border);
	border-radius: 8px;
	padding: 16px;
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.afrb-perm-icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #dcfce7;
	color: #15803d;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: bold;
	flex-shrink: 0;
}

.afrb-perm-warning .afrb-perm-icon {
	background: #fee2e2;
	color: #b91c1c;
}

.afrb-perm-text strong {
	display: block;
	font-size: 14px;
	color: #0f172a;
	margin-bottom: 4px;
}

.afrb-perm-text p {
	font-size: 13px;
	color: #475569;
	line-height: 1.45;
	margin: 0;
}

.afrb-prohibited-box {
	background: #fff5f5;
	border: 1px solid #fed7d7;
	border-radius: 8px;
	padding: 16px 20px;
}
