/**
 * Skill Certify Pro - Base CSS
 *
 * Design system tokens, reset styles, and typography
 *
 * @package SkillCertifyPro
 */

/* ========================================
   FONTS
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ========================================
   CSS Variables - Design System
   ======================================== */

:root {
	/* Color System - Navy/Teal/Gold Palette */
	--navy: #0F2744;
	--teal: #1B8FAF;
	--teal-light: #2AABCF;
	--gold: #F5A623;
	--gold-dark: #D4881A;
	--white: #FFFFFF;
	--gray-50: #F9FAFB;
	--gray-100: #F3F4F6;
	--gray-200: #E5E7EB;
	--gray-500: #6B7280;
	--gray-700: #374151;
	--gray-900: #111827;
	--success: #16A34A;
	--error: #DC2626;
	--shadow-sm: 0 1px 2px rgba(0,0,0,.05);
	--shadow-md: 0 4px 6px -1px rgba(0,0,0,.1);
	--shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1);
	--shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1);
	--ease: cubic-bezier(0.4, 0, 0.2, 1);

	/* Primary Brand Colors */
	--scp-color-navy: #0F2744;
	--scp-color-navy-light: #1a3a5e;
	--scp-color-teal: #1B8FAF;
	--scp-color-teal-light: #2AABCF;
	--scp-color-gold: #F5A623;
	--scp-color-gold-dark: #D4881A;

	/* Primary Color Aliases */
	--scp-color-primary: #1B8FAF;
	--scp-color-primary-dark: #2AABCF;
	--scp-color-primary-admin: #2271b1;
	--scp-color-primary-admin-dark: #135e96;

	/* Semantic Colors */
	--scp-color-success: #16A34A;
	--scp-color-success-light: #22c55e;
	--scp-color-success-dark: #15803d;
	--scp-color-success-admin: #00a32a;
	--scp-color-error: #DC2626;
	--scp-color-error-light: #ef4444;
	--scp-color-error-dark: #b91c1c;
	--scp-color-error-admin: #d63638;
	--scp-color-warning: #F59E0B;
	--scp-color-warning-dark: #d97706;
	--scp-color-warning-light: #fcd34d;

	/* Neutral Text Colors */
	--scp-color-text-primary: #111827;
	--scp-color-text-secondary: #374151;
	--scp-color-text-tertiary: #6B7280;
	--scp-color-text-white: #FFFFFF;

	/* Neutral Background Colors */
	--scp-color-bg-white: #FFFFFF;
	--scp-color-bg-50: #F9FAFB;
	--scp-color-bg-100: #F3F4F6;
	--scp-color-bg-200: #E5E7EB;
	--scp-color-bg-light: #F8F9FA;
	--scp-color-bg-dark: #F0F0F0;
	--scp-color-bg-lighter: #f3f4f6;
	--scp-color-bg-gray: #f8f9fa;

	/* Border Colors */
	--scp-color-border: #E5E7EB;
	--scp-color-border-light: #F3F4F6;
	--scp-color-border-dark: #D1D5DB;

	/* Shadows */
	--scp-shadow-sm: 0 1px 3px rgba(15,39,68,.08);
	--scp-shadow-md: 0 4px 16px rgba(15,39,68,.12);
	--scp-shadow-lg: 0 12px 40px rgba(15,39,68,.16);
	--scp-shadow-xl: 0 24px 64px rgba(15,39,68,.20);

	/* Easing */
	--scp-ease: cubic-bezier(.4,0,.2,1);

	/* Spacing System (4px base unit) */
	--scp-space-xs: 4px;
	--scp-space-sm: 8px;
	--scp-space-md: 12px;
	--scp-space-lg: 16px;
	--scp-space-xl: 20px;
	--scp-space-2xl: 24px;
	--scp-space-3xl: 32px;
	--scp-space-4xl: 40px;
	--scp-space-5xl: 48px;
	--scp-space-6xl: 64px;

	/* Border Radius System */
	--scp-radius-none: 0;
	--scp-radius-sm: 4px;
	--scp-radius-md: 5px;
	--scp-radius-lg: 6px;
	--scp-radius-xl: 8px;
	--scp-radius-2xl: 12px;
	--scp-radius-full: 50%;

	/* Typography System */
	--scp-font-size-xs: 11px;
	--scp-font-size-sm: 12px;
	--scp-font-size-base: 13px;
	--scp-font-size-md: 14px;
	--scp-font-size-lg: 16px;
	--scp-font-size-xl: 18px;
	--scp-font-size-2xl: 24px;
	--scp-font-size-3xl: 28px;
	--scp-font-size-4xl: 32px;
	--scp-font-weight-normal: 400;
	--scp-font-weight-medium: 500;
	--scp-font-weight-semibold: 600;
	--scp-font-weight-bold: 700;
	--scp-line-height-tight: 1.2;
	--scp-line-height-normal: 1.5;
	--scp-line-height-relaxed: 1.6;
	--scp-letter-spacing-tight: -0.5px;
	--scp-letter-spacing-normal: 0;
	--scp-letter-spacing-wide: 0.5px;

	/* Transitions */
	--scp-transition-fast: 0.15s ease;
	--scp-transition-base: 0.2s ease;
	--scp-transition-slow: 0.3s ease;

	/* Z-Index Scale */
	--scp-z-dropdown: 1000;
	--scp-z-sticky: 1020;
	--scp-z-fixed: 1030;
	--scp-z-modal-backdrop: 1040;
	--scp-z-modal: 1000;
	--z-popover: 1100;
	--z-tooltip: 1200;
}

/* ========================================
   Theme Reset Styles (GeneratePress Overrides)
   ======================================== */

/* Only apply these reset styles on frontend, not admin */
body:not(.admin-bar).scp-full-width {
	overflow-x: hidden;
}

body:not(.admin-bar).scp-full-width .site-content,
body:not(.admin-bar).scp-full-width .content-area,
body:not(.admin-bar).scp-full-width .site-main,
body:not(.admin-bar).scp-full-width .inside-article,
body:not(.admin-bar).scp-full-width .entry-content {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	float: none !important;
}

body:not(.admin-bar).scp-full-width .sidebar,
body:not(.admin-bar).scp-full-width .widget-area,
body:not(.admin-bar).scp-full-width .entry-header {
	display: none !important;
}

/* Hide WordPress toolbar for preview pages */
#wpadminbar.scp-hide {
	display: none !important;
}

html.admin-bar.scp-hide {
	margin-top: 0 !important;
}

html.admin-bar.scp-hide body {
	margin-top: 0 !important;
}

/* Hide WordPress toolbar for certificate pages - REMOVED to prevent admin crash */
/* #wpadminbar {
	display: none !important;
}

html.admin-bar {
	margin-top: 0 !important;
}

html.admin-bar body {
	margin-top: 0 !important;
} */

/* ========================================
   Base Typography
   ======================================== */

* {
	box-sizing: border-box;
}

body {
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	line-height: 1.6;
}

/* Opacity transition only for frontend, not admin */
body:not(.admin-bar) {
	opacity: 0;
	transition: opacity 300ms ease-in-out;
}

body.is-loaded:not(.admin-bar) {
	opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Sora', sans-serif;
}

/* ========================================
   Email Confirmation Modal
   ======================================== */

.email-confirmation-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	pointer-events: none;
}

.email-confirmation-modal--visible {
	pointer-events: auto;
}

.email-confirmation__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.email-confirmation-modal--visible .email-confirmation__overlay {
	opacity: 1;
}

.email-confirmation__content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	background: white;
	border-radius: 16px;
	padding: 40px;
	max-width: 400px;
	width: 90%;
	text-align: center;
	opacity: 0;
	transition: all 0.3s ease;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
	.email-confirmation__content {
		padding: 24px 20px;
		max-width: 95%;
	}

	.email-confirmation__title {
		font-size: 20px;
	}

	.email-confirmation__message {
		font-size: 14px;
	}

	.email-confirmation__icon {
		font-size: 40px;
		margin-bottom: 16px;
	}
}

.email-confirmation-modal--visible .email-confirmation__content {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.email-confirmation__close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	font-size: 24px;
	color: #666;
	cursor: pointer;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.2s;
}

.email-confirmation__close:hover {
	background: #f0f0f0;
}

.email-confirmation__icon {
	font-size: 48px;
	margin-bottom: 20px;
}

.email-confirmation__title {
	font-size: 24px;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 16px 0;
}

.email-confirmation__message {
	font-size: 16px;
	color: #4b5563;
	margin: 0 0 8px 0;
	line-height: 1.5;
}

.email-confirmation__submessage {
	font-size: 14px;
	color: #6b7280;
	margin: 0 0 24px 0;
}

.email-confirmation__resend {
	background: #3b82f6;
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	width: 100%;
	margin-bottom: 16px;
}

.email-confirmation__resend:hover:not(:disabled) {
	background: #2563eb;
}

.email-confirmation__resend:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.email-confirmation__note {
	font-size: 13px;
	color: #9ca3af;
	margin: 0;
}
