/**
 * Cyberpedia Design System Tokens & Base Styles
 * Unified dark cybersecurity aesthetic matching design specification.
 */

:root {
	--cyber-bg: #030712;
	--cyber-bg-alt: #060b17;
	--cyber-surface: #0b132b;
	--cyber-surface-card: rgba(11, 19, 43, 0.85);
	--cyber-surface-card-hover: rgba(16, 28, 60, 0.95);
	--cyber-surface-input: rgba(6, 12, 28, 0.85);
	--cyber-primary: #6c35ff;
	--cyber-primary-light: #8b5cf6;
	--cyber-primary-glow: rgba(108, 53, 255, 0.4);
	--cyber-secondary: #3b82f6;
	--cyber-primary-gradient: linear-gradient(135deg, #6c35ff 0%, #3b82f6 100%);
	--cyber-primary-gradient-hover: linear-gradient(135deg, #7c48ff 0%, #60a5fa 100%);
	--cyber-accent-cyan: #06b6d4;
	--cyber-accent-emerald: #10b981;
	--cyber-accent-amber: #f59e0b;
	--cyber-accent-red: #ef4444;

	--cyber-text-white: #ffffff;
	--cyber-text-main: #e2e8f0;
	--cyber-text-muted: #8e9eb5;
	--cyber-text-dim: #64748b;

	--cyber-border: rgba(255, 255, 255, 0.08);
	--cyber-border-light: rgba(255, 255, 255, 0.14);
	--cyber-border-glow: rgba(108, 53, 255, 0.35);

	--cyber-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
	--cyber-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
	--cyber-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
	--cyber-shadow-glow: 0 0 24px rgba(108, 53, 255, 0.25);

	--cyber-radius-sm: 8px;
	--cyber-radius-md: 12px;
	--cyber-radius-lg: 16px;
	--cyber-radius-xl: 20px;
	--cyber-radius-full: 9999px;

	--cyber-font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--cyber-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base resets & typography for Cyberpedia components */
.cyberpedia-site,
.cyberpedia-auth,
.cyberpedia-dashboard,
.cyberpedia-profile-wrap,
.cyberpedia-header {
	font-family: var(--cyber-font-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	box-sizing: border-box;
}

.cyberpedia-site *,
.cyberpedia-site *::before,
.cyberpedia-site *::after,
.cyberpedia-auth *,
.cyberpedia-dashboard *,
.cyberpedia-profile-wrap *,
.cyberpedia-header * {
	box-sizing: border-box;
}

/* Glassmorphism card surfaces */
.cyber-card {
	background: var(--cyber-surface-card);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--cyber-border);
	border-radius: var(--cyber-radius-xl);
	box-shadow: var(--cyber-shadow-md);
	transition: all 0.25s ease;
}

.cyber-card:hover {
	border-color: var(--cyber-border-glow);
	box-shadow: var(--cyber-shadow-lg), var(--cyber-shadow-glow);
}

/* Standard Buttons */
.cyber-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--cyber-font-heading);
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1;
	padding: 11px 22px;
	border-radius: var(--cyber-radius-md);
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid transparent;
	outline: none;
	white-space: nowrap;
}

.cyber-btn-primary {
	background: var(--cyber-primary-gradient);
	color: #ffffff !important;
	box-shadow: 0 4px 16px rgba(108, 53, 255, 0.35);
}

.cyber-btn-primary:hover {
	background: var(--cyber-primary-gradient-hover);
	transform: translateY(-1px);
	box-shadow: 0 6px 22px rgba(108, 53, 255, 0.5);
	color: #ffffff !important;
	text-decoration: none;
}

.cyber-btn-secondary {
	background: rgba(255, 255, 255, 0.04);
	color: var(--cyber-text-main) !important;
	border-color: var(--cyber-border-light);
}

.cyber-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.25);
	color: #ffffff !important;
	text-decoration: none;
}

.cyber-btn-outline {
	background: transparent;
	color: var(--cyber-text-white) !important;
	border: 1px solid var(--cyber-border-light);
}

.cyber-btn-outline:hover {
	background: rgba(108, 53, 255, 0.15);
	border-color: var(--cyber-primary);
	color: #ffffff !important;
	text-decoration: none;
}

/* Input Fields */
.cyber-input-group {
	margin-bottom: 18px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	text-align: left;
}

.cyber-label {
	font-family: var(--cyber-font-body);
	font-size: 13.5px;
	font-weight: 500;
	color: var(--cyber-text-main);
	display: block;
}

.cyber-input-wrap {
	position: relative;
	width: 100%;
}

.cyber-input {
	width: 100%;
	height: 46px;
	padding: 10px 16px;
	background: var(--cyber-surface-input);
	border: 1px solid var(--cyber-border);
	border-radius: var(--cyber-radius-md);
	color: #ffffff;
	font-family: var(--cyber-font-body);
	font-size: 14.5px;
	transition: all 0.2s ease;
	outline: none;
}

.cyber-input::placeholder {
	color: var(--cyber-text-dim);
}

.cyber-input:focus {
	border-color: var(--cyber-primary);
	box-shadow: 0 0 0 3px rgba(108, 53, 255, 0.25);
	background: rgba(10, 18, 40, 0.95);
}

.cyber-password-toggle {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--cyber-text-muted);
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s;
}

.cyber-password-toggle:hover {
	color: #ffffff;
}

/* Notices & Alerts */
.cyber-alert {
	padding: 12px 16px;
	border-radius: var(--cyber-radius-md);
	font-size: 13.5px;
	line-height: 1.5;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.cyber-alert-error {
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(239, 68, 68, 0.3);
	color: #fca5a5;
}

.cyber-alert-success {
	background: rgba(16, 185, 129, 0.12);
	border: 1px solid rgba(16, 185, 129, 0.3);
	color: #6ee7b7;
}

/* Subtle scrollbars */
.cyberpedia-site ::-webkit-scrollbar,
.cyberpedia-dashboard ::-webkit-scrollbar,
.cyberpedia-auth ::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

.cyberpedia-site ::-webkit-scrollbar-track,
.cyberpedia-dashboard ::-webkit-scrollbar-track,
.cyberpedia-auth ::-webkit-scrollbar-track {
	background: rgba(3, 7, 18, 0.6);
}

.cyberpedia-site ::-webkit-scrollbar-thumb,
.cyberpedia-dashboard ::-webkit-scrollbar-thumb,
.cyberpedia-auth ::-webkit-scrollbar-thumb {
	background: rgba(108, 53, 255, 0.3);
	border-radius: 999px;
}

.cyberpedia-site ::-webkit-scrollbar-thumb:hover,
.cyberpedia-dashboard ::-webkit-scrollbar-thumb:hover,
.cyberpedia-auth ::-webkit-scrollbar-thumb:hover {
	background: rgba(108, 53, 255, 0.6);
}

/* ==========================================================================
   BuddyBoss Moderation & Popup Guard
   Hides raw modal markup injected by BuddyBoss into wp_footer across all pages
   until actively triggered by Magnific Popup.
   ========================================================================== */
.mfp-hide,
.moderation-popup,
.content-report-popup,
.block-member-popup,
.reported-content-popup,
#content-report,
#block-member,
#reported-content-popup {
	display: none !important;
	visibility: hidden !important;
}

/* Display inside active Magnific Popup modal container */
.mfp-wrap .mfp-content .mfp-hide,
.mfp-wrap .mfp-content .moderation-popup,
.mfp-wrap .mfp-content .content-report-popup,
.mfp-wrap .mfp-content .block-member-popup,
.mfp-wrap .mfp-content .reported-content-popup,
.mfp-wrap .mfp-content #content-report,
.mfp-wrap .mfp-content #block-member,
.mfp-wrap .mfp-content #reported-content-popup {
	display: block !important;
	visibility: visible !important;
}

/* ==========================================================================
   Universal Page & Content Centering Across All Pages
   Guarantees containers are centered on widescreen monitors and never hugged left
   ========================================================================== */
#page,
.site,
#content,
.site-content {
	width: 100% !important;
	box-sizing: border-box !important;
}

.ast-container {
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 1440px !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.ast-no-sidebar #primary,
.ast-plain-container #primary,
.ast-page-builder-template #primary {
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: 1440px !important;
	box-sizing: border-box !important;
}

.site-content .ast-container > * {
	min-width: 0 !important;
}

.cyberpedia-ld-container {
	margin-left: auto !important;
	margin-right: auto !important;
	width: 100% !important;
	max-width: 1280px !important;
	box-sizing: border-box !important;
}
