/* ========================================================================
   The Inspector AI — Site CSS
   Palette: #99154E (magenta) · #48116F (purple) · #FFC83D (gold) · #FFFFFF
   ======================================================================== */

/* Base ----------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body.tis-site {
	background: var(--tis-bg-deep);
	color: #E8DDF0;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.tis-site .font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Reset link styling — many WP themes force underline on <a>. ---------- */
.tis-site a,
.tis-site a:hover,
.tis-site a:focus,
.tis-site a:visited,
.tis-site a:active {
	text-decoration: none;
	border-bottom: none;
	box-shadow: none;
}
/* But keep underline INSIDE prose blocks (legal pages, guides). */
.tis-site .tis-prose a { text-decoration: underline; }
.tis-site .tis-prose a:hover { text-decoration: underline; }

/* Background atmosphere — layered gradients -------------------------- */
.tis-bg-atmosphere {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 900px 600px at 20% 0%, rgba(153,21,78,0.25) 0%, transparent 60%),
		radial-gradient(ellipse 1000px 800px at 85% 15%, rgba(72,17,111,0.35) 0%, transparent 60%),
		radial-gradient(ellipse 800px 500px at 50% 100%, rgba(255,200,61,0.06) 0%, transparent 70%),
		linear-gradient(180deg, var(--tis-bg-deep) 0%, #09030F 100%);
}

/* Starfield — subtle dots overlay */
.tis-bg-stars {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.4;
	background-image:
		radial-gradient(1px 1px at 25% 30%, rgba(255,255,255,0.4) 50%, transparent 50%),
		radial-gradient(1px 1px at 75% 60%, rgba(255,200,61,0.3) 50%, transparent 50%),
		radial-gradient(1px 1px at 15% 80%, rgba(255,255,255,0.3) 50%, transparent 50%),
		radial-gradient(1px 1px at 85% 20%, rgba(153,21,78,0.5) 50%, transparent 50%),
		radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.2) 50%, transparent 50%);
	background-size: 400px 400px, 300px 300px, 500px 500px, 350px 350px, 250px 250px;
}

/* Pulse dot ------------------------------------------------------------ */
.tis-pulse-dot {
	animation: tis-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes tis-pulse {
	0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 200, 61, 0.6); }
	50%      { opacity: 0.6; box-shadow: 0 0 0 6px rgba(255, 200, 61, 0); }
}

/* Animations ----------------------------------------------------------- */
@keyframes tis-fade-in-up {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}
.tis-fade-in-up { animation: tis-fade-in-up 0.8s ease-out forwards; }

@keyframes tis-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-12px); }
}
.tis-float { animation: tis-float 6s ease-in-out infinite; }

@keyframes tis-shimmer {
	0%   { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}
.tis-shimmer-text {
	background: linear-gradient(
		90deg,
		#FFC83D 0%,
		#FFF2C4 25%,
		#FFC83D 50%,
		#FFF2C4 75%,
		#FFC83D 100%
	);
	background-size: 200% 100%;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: tis-shimmer 6s linear infinite;
}

/* Gradient text — brand magenta → gold */
.tis-gradient-text {
	background: linear-gradient(135deg, #FFC83D 0%, #FFFFFF 35%, #F5A8C7 70%, #FFC83D 100%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Buttons -------------------------------------------------------------- */
.tis-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.75rem;
	border-radius: 0.5rem;
	font-weight: 600;
	font-size: 0.875rem;
	letter-spacing: 0.02em;
	background: linear-gradient(135deg, #99154E 0%, #48116F 100%);
	color: #FFFFFF;
	border: 1px solid rgba(255, 200, 61, 0.3);
	box-shadow:
		0 0 0 1px rgba(255, 200, 61, 0.15) inset,
		0 10px 30px -10px rgba(153, 21, 78, 0.5);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
}
.tis-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow:
		0 0 0 1px rgba(255, 200, 61, 0.4) inset,
		0 20px 40px -10px rgba(153, 21, 78, 0.6),
		0 0 30px rgba(255, 200, 61, 0.25);
	border-color: rgba(255, 200, 61, 0.5);
}
.tis-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.75rem;
	border-radius: 0.5rem;
	font-weight: 600;
	font-size: 0.875rem;
	letter-spacing: 0.02em;
	background: rgba(26, 9, 41, 0.6);
	color: #E8DDF0;
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
	cursor: pointer;
}
.tis-btn-secondary:hover {
	background: rgba(72, 17, 111, 0.5);
	border-color: rgba(255, 200, 61, 0.3);
	color: #FFFFFF;
}
.tis-btn-accent {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.75rem;
	border-radius: 0.5rem;
	font-weight: 700;
	font-size: 0.875rem;
	letter-spacing: 0.02em;
	background: #FFC83D;
	color: #0D0416;
	border: 1px solid rgba(255, 200, 61, 0.8);
	box-shadow: 0 0 0 0 rgba(255, 200, 61, 0.5);
	transition: all 0.3s ease;
	cursor: pointer;
}
.tis-btn-accent:hover {
	background: #FFDA6E;
	transform: translateY(-2px);
	box-shadow: 0 10px 30px -5px rgba(255, 200, 61, 0.5);
}

/* Pill (brand + status) ------------------------------------------------ */
.tis-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0.875rem;
	border-radius: 999px;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #FFC83D;
	background: rgba(255, 200, 61, 0.08);
	border: 1px solid rgba(255, 200, 61, 0.25);
	backdrop-filter: blur(8px);
}
.tis-pill-magenta {
	color: #F5A8C7;
	background: rgba(153, 21, 78, 0.15);
	border-color: rgba(153, 21, 78, 0.4);
}
.tis-pill-neutral {
	color: #B8A5CC;
	background: rgba(72, 17, 111, 0.2);
	border-color: rgba(184, 165, 204, 0.2);
}

/* Card ----------------------------------------------------------------- */
.tis-card {
	background: linear-gradient(145deg, rgba(26, 9, 41, 0.8) 0%, rgba(13, 4, 22, 0.8) 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 1rem;
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}
.tis-card::before {
	content: '';
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(255, 200, 61, 0.3) 0%, transparent 40%, transparent 60%, rgba(153, 21, 78, 0.3) 100%);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}
.tis-card:hover::before { opacity: 1; }
.tis-card:hover {
	border-color: rgba(255, 200, 61, 0.15);
	transform: translateY(-4px);
	box-shadow: 0 20px 40px -20px rgba(72, 17, 111, 0.5);
}

.tis-card-featured {
	border: 1px solid rgba(255, 200, 61, 0.4);
	background: linear-gradient(145deg, rgba(153, 21, 78, 0.15) 0%, rgba(72, 17, 111, 0.3) 100%);
	box-shadow:
		0 0 60px -15px rgba(153, 21, 78, 0.5),
		inset 0 1px 0 rgba(255, 200, 61, 0.2);
}

/* Form inputs ---------------------------------------------------------- */
.tis-input {
	width: 100%;
	background: rgba(13, 4, 22, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0.5rem;
	padding: 0.75rem 1rem;
	color: #FFFFFF;
	font-family: 'Inter', sans-serif;
	transition: all 0.2s ease;
}
.tis-input:focus {
	outline: none;
	border-color: #FFC83D;
	box-shadow: 0 0 0 3px rgba(255, 200, 61, 0.15);
	background: rgba(13, 4, 22, 0.8);
}
.tis-input::placeholder { color: rgba(232, 221, 240, 0.3); }

.tis-label {
	display: block;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: rgba(232, 221, 240, 0.5);
	margin-bottom: 0.5rem;
}

/* Legal / prose -------------------------------------------------------- */
.tis-prose h2 {
	font-size: 1.25rem;
	font-weight: 700;
	color: #FFFFFF;
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
}
.tis-prose h3 {
	font-size: 1.0625rem;
	font-weight: 600;
	color: #F5D9E8;
	margin-top: 1.75rem;
	margin-bottom: 0.5rem;
}
.tis-prose p { margin-bottom: 1rem; line-height: 1.75; color: #C8B8D6; }
.tis-prose ul { margin: 1rem 0; padding-left: 1.5rem; }
.tis-prose ul li { margin-bottom: 0.5rem; color: #C8B8D6; list-style-type: disc; }
.tis-prose strong { color: #FFFFFF; font-weight: 600; }
.tis-prose code {
	background: rgba(72, 17, 111, 0.4);
	color: #FFC83D;
	padding: 0.125rem 0.375rem;
	border-radius: 0.25rem;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.875em;
}
.tis-prose a { color: #FFC83D; text-decoration: underline; text-decoration-color: rgba(255, 200, 61, 0.4); }
.tis-prose a:hover { text-decoration-color: #FFC83D; }

/* Decorative accents --------------------------------------------------- */
.tis-glow-magenta { box-shadow: 0 0 40px rgba(153, 21, 78, 0.4); }
.tis-glow-gold    { box-shadow: 0 0 40px rgba(255, 200, 61, 0.3); }
.tis-border-accent { border-top: 1px solid rgba(255, 200, 61, 0.15); }

/* Divider line with gradient */
.tis-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 200, 61, 0.5) 50%, transparent 100%);
}

/* RTL adjustments ------------------------------------------------------ */
html[dir="rtl"] .tis-label { letter-spacing: 0.1em; }
html[dir="rtl"] .tis-pill   { letter-spacing: 0.1em; }

/* Mobile tweaks -------------------------------------------------------- */
@media (max-width: 768px) {
	.tis-card:hover { transform: none; }
}

/* Accessibility — focus visible everywhere ----------------------------- */
.tis-site a:focus-visible,
.tis-site button:focus-visible,
.tis-site input:focus-visible,
.tis-site textarea:focus-visible,
.tis-site select:focus-visible {
	outline: 2px solid #FFC83D;
	outline-offset: 2px;
	border-radius: 0.25rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
