/**
 * Royal Access Chrome Pack styles.
 *
 * Custom top header + lightweight footer + Royal Tools page + Founders callout.
 * Scoped to Royal Access admin pages via body class (see Royal_Access_Chrome::filter_admin_body_class).
 *
 * Design tokens mirror Royal Plugins brand: gold #C9A227, charcoal #2C2C2C.
 */

/* --- Design tokens (scoped so we don't leak into WP admin globals) --- */
.raccess-chrome-scope {
	--rac-gold:         #C9A227;
	--rac-gold-light:   #D4AF37;
	--rac-gold-dark:    #B8960F;
	--rac-gold-subtle:  rgba(201, 162, 39, 0.08);
	--rac-cream:        #FAF8F5;
	--rac-white:        #ffffff;
	--rac-charcoal:     #2C2C2C;
	--rac-charcoal-light: #4A4A4A;
	--rac-charcoal-muted: #6B6B6B;
	--rac-border-light: rgba(44, 44, 44, 0.1);
	--rac-green:        #22c55e;
	--rac-wp-blue:      #2271b1;
}

/* ======================================================================
   1. Custom top header — renders on every Royal Access admin page
   ====================================================================== */
.raccess-chrome-header {
	background: var(--rac-white);
	border-bottom: 1px solid var(--rac-border-light);
	padding: 14px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 0 -20px;
}
.raccess-chrome-header-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}
.raccess-chrome-logo {
	width: 32px;
	height: 32px;
	background: var(--rac-gold);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--rac-charcoal);
	font-family: 'Cormorant Garamond', 'Times New Roman', serif;
	font-weight: 700;
	font-size: 17px;
}
.raccess-chrome-wordmark {
	font-family: 'Cormorant Garamond', 'Times New Roman', serif;
	font-weight: 600;
	font-size: 17px;
	letter-spacing: 0.03em;
	color: var(--rac-charcoal);
}
.raccess-chrome-header-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}
.raccess-chrome-header-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: var(--rac-white);
	border: 1px solid var(--rac-border-light);
	border-radius: 4px;
	color: var(--rac-charcoal-light);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.15s;
}
.raccess-chrome-header-btn:hover,
.raccess-chrome-header-btn:focus {
	border-color: var(--rac-gold);
	color: var(--rac-gold-dark);
	box-shadow: none;
	outline: none;
}
.raccess-chrome-header-btn svg {
	width: 14px;
	height: 14px;
}

/* ======================================================================
   2. Lightweight footer (via admin_footer_text filter)
   ====================================================================== */
.raccess-chrome-footer {
	display: inline-flex;
	gap: 14px;
	align-items: center;
	font-size: 12px;
	color: var(--rac-charcoal-muted);
}
.raccess-chrome-footer a {
	color: var(--rac-charcoal-muted);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: color 0.15s;
}
.raccess-chrome-footer a:hover,
.raccess-chrome-footer a:focus {
	color: var(--rac-gold-dark);
	outline: none;
}
.raccess-chrome-footer svg {
	width: 13px;
	height: 13px;
	opacity: 0.65;
}
.raccess-chrome-footer a:hover svg,
.raccess-chrome-footer a:focus svg {
	opacity: 1;
}
.raccess-chrome-footer-sep {
	color: var(--rac-border-light);
}

/* ======================================================================
   3. Royal Tools page
   ====================================================================== */
.raccess-tools-wrap {
	max-width: 1180px;
	padding: 28px 32px 40px;
	background: transparent;
}
.raccess-tools-title-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 24px;
}
.raccess-tools-title {
	font-family: 'Cormorant Garamond', 'Times New Roman', serif;
	font-weight: 600;
	font-size: 30px;
	color: var(--rac-charcoal);
	margin: 0;
	letter-spacing: -0.01em;
	padding: 0;
}
.raccess-tools-subtitle {
	color: var(--rac-charcoal-muted);
	font-size: 14px;
	margin-top: 4px;
}

/* ======================================================================
   4. Founders Bundle callout
   ====================================================================== */
.raccess-founders {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 20px;
	align-items: center;
	padding: 20px 24px;
	margin-bottom: 28px;
	background: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 100%);
	color: var(--rac-white);
	border-radius: 8px;
	position: relative;
}
.raccess-founders-crown {
	width: 48px;
	height: 48px;
	background: var(--rac-gold);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: var(--rac-charcoal);
}
.raccess-founders-body h3 {
	font-family: 'Cormorant Garamond', 'Times New Roman', serif;
	font-weight: 600;
	font-size: 20px;
	margin: 0 0 4px 0;
	color: var(--rac-white);
}
.raccess-founders-body h3 .gold {
	color: var(--rac-gold);
}
.raccess-founders-body p {
	font-size: 13px;
	opacity: 0.75;
	margin: 0;
	line-height: 1.55;
	color: var(--rac-white);
}
.raccess-founders-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	background: var(--rac-gold);
	color: var(--rac-charcoal);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	border-radius: 4px;
	letter-spacing: 0.02em;
	transition: all 0.2s;
}
.raccess-founders-cta:hover,
.raccess-founders-cta:focus {
	background: var(--rac-gold-light);
	transform: translateY(-1px);
	color: var(--rac-charcoal);
	outline: none;
	box-shadow: none;
}
.raccess-founders-dismiss {
	position: absolute;
	top: 8px;
	right: 10px;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 4px 8px;
	text-decoration: none;
}
.raccess-founders-dismiss:hover,
.raccess-founders-dismiss:focus {
	color: rgba(255, 255, 255, 0.8);
	outline: none;
}

/* ======================================================================
   Section head
   ====================================================================== */
.raccess-tools-section-head {
	margin-bottom: 16px;
}
.raccess-tools-section-head h2 {
	font-family: 'Cormorant Garamond', 'Times New Roman', serif;
	font-weight: 600;
	font-size: 20px;
	color: var(--rac-charcoal);
	margin: 0 0 4px 0;
	padding: 0;
}
.raccess-tools-section-head p {
	color: var(--rac-charcoal-muted);
	font-size: 13px;
	margin: 0;
}

/* ======================================================================
   5-card grid
   ====================================================================== */
.raccess-tools-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 16px;
	margin-bottom: 0;
}
.raccess-tools-card {
	background: var(--rac-white);
	border: 1px solid var(--rac-border-light);
	border-radius: 8px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: box-shadow 0.15s, transform 0.15s;
}
.raccess-tools-card:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
	transform: translateY(-1px);
}
.raccess-tools-card--active,
.raccess-tools-card--here {
	border-color: var(--rac-green);
	background: linear-gradient(135deg, #f0fdf4 0%, var(--rac-white) 40%);
}
.raccess-tools-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}
.raccess-tools-card-icon {
	width: 36px;
	height: 36px;
	background: var(--rac-gold-subtle);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
}
.raccess-tools-card-badge {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	background: rgba(34, 197, 94, 0.12);
	color: #166534;
	padding: 3px 6px;
	border-radius: 3px;
	text-transform: uppercase;
}
.raccess-tools-card-badge--free {
	background: var(--rac-gold-subtle);
	color: var(--rac-gold-dark);
}
.raccess-tools-card h3 {
	font-family: 'Cormorant Garamond', 'Times New Roman', serif;
	font-weight: 600;
	font-size: 17px;
	color: var(--rac-charcoal);
	margin: 0 0 6px 0;
	padding: 0;
}
.raccess-tools-card p {
	color: var(--rac-charcoal-muted);
	font-size: 12.5px;
	line-height: 1.55;
	margin: 0 0 16px 0;
	flex-grow: 1;
}
.raccess-tools-card-actions {
	display: flex;
	gap: 6px;
	margin-top: auto;
}
.raccess-tools-btn-install,
.raccess-tools-btn-activate {
	flex: 1;
	text-align: center;
	padding: 8px 12px;
	background: var(--rac-wp-blue);
	color: var(--rac-white);
	text-decoration: none;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 500;
	transition: background 0.15s;
}
.raccess-tools-btn-install:hover,
.raccess-tools-btn-install:focus,
.raccess-tools-btn-activate:hover,
.raccess-tools-btn-activate:focus {
	background: #135e96;
	color: var(--rac-white);
	outline: none;
}
.raccess-tools-btn-learn {
	padding: 8px 10px;
	background: var(--rac-white);
	color: var(--rac-charcoal-light);
	border: 1px solid var(--rac-border-light);
	text-decoration: none;
	border-radius: 3px;
	font-size: 12px;
	transition: all 0.15s;
}
.raccess-tools-btn-learn:hover,
.raccess-tools-btn-learn:focus {
	border-color: var(--rac-charcoal-muted);
	color: var(--rac-charcoal);
	outline: none;
}
.raccess-tools-badge-active {
	background: rgba(34, 197, 94, 0.15);
	color: #166534;
	padding: 8px 12px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 500;
	text-align: center;
	flex: 1;
}

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 782px) {
	.raccess-chrome-header {
		padding: 12px 16px;
		flex-wrap: wrap;
		gap: 10px;
	}
	.raccess-tools-wrap {
		padding: 20px 16px;
	}
	.raccess-founders {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.raccess-founders-crown {
		margin: 0 auto;
	}
}
