/**
 * TI-84 calculator styles — ported from calculator.html + ShoutingNow stage wrapper.
 */

/* Stage wrapper (theme) */
.sn-ti84-stage {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	margin-bottom: 0;
}

.sn-ti84-stage__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
}

/* Original calculator.html styles */
.sn-ti84-stage .calculator-wrapper {
	position: relative;
	margin-bottom: 20px;
	transform-origin: center top;
	transform-style: preserve-3d;
	perspective: 1000px;
}

.sn-ti84-stage .calc-container {
	background: linear-gradient(to bottom, #111111, #000000);
	border-radius: 18px;
	padding: 15px;
	position: relative;
	border: 1px solid #222;
	overflow: hidden;
	box-shadow:
		0 10px 25px rgba(0, 0, 0, 0.3),
		0 2px 3px rgba(255, 255, 255, 0.05) inset,
		0 -2px 3px rgba(0, 0, 0, 0.2) inset,
		0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.sn-ti84-stage .calc-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	background: linear-gradient(to right, #1a1a1a, #333333, #1a1a1a);
	border-top-left-radius: 18px;
	border-top-right-radius: 18px;
}

.sn-ti84-stage .calc-container::after {
	content: '';
	position: absolute;
	top: 6px;
	bottom: 6px;
	left: 6px;
	right: 6px;
	pointer-events: none;
	box-shadow:
		inset 0 1px 2px rgba(255, 255, 255, 0.1),
		inset 0 -1px 2px rgba(0, 0, 0, 0.5),
		inset 0 0 15px rgba(0, 0, 0, 0.2);
	z-index: 1;
	border-radius: 13px;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.02) 0%,
		rgba(255, 255, 255, 0) 50%,
		rgba(0, 0, 0, 0.05) 100%
	);
}

.sn-ti84-stage .calculator-wrapper::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
	border-radius: 20px;
	box-shadow:
		2px 2px 2px rgba(0, 0, 0, 0.2),
		-2px -2px 2px rgba(255, 255, 255, 0.02),
		8px 8px 30px rgba(0, 0, 0, 0.3);
	pointer-events: none;
	transform: translateZ(-10px);
	filter: blur(2px);
}

.sn-ti84-stage .calculatorDiv,
.sn-ti84-stage #calculatorDiv {
	outline: none !important;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	z-index: 2;
}

.sn-ti84-stage .zoom-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 15px;
	position: static;
	z-index: 20;
}

.sn-ti84-stage .zoom-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: #1C201F;
	border: 1px solid #333;
	color: #FED700;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 5px;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	transition: all 0.2s ease;
	user-select: none;
	line-height: 1;
	padding: 0;
}

.sn-ti84-stage .zoom-btn:hover {
	background-color: #1800AC;
	transform: translateY(-1px);
}

.sn-ti84-stage .zoom-btn:active {
	transform: translateY(1px);
}

.sn-ti84-stage .zoom-btn:focus-visible {
	outline: 2px solid #FED700;
	outline-offset: 2px;
}

.sn-ti84-stage .zoom-level {
	font-size: 14px;
	color: #64748b;
	margin: 0 8px;
	min-width: 44px;
	text-align: center;
	font-weight: 600;
}

/* How-to steps */
.sn-tool-steps {
	counter-reset: step;
	list-style: none;
	padding: 0;
	margin: 1.25rem 0 0;
}

.sn-tool-steps li {
	counter-increment: step;
	position: relative;
	padding-left: 2.75rem;
	margin-bottom: 1.25rem;
	line-height: 1.65;
}

.sn-tool-steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0.1rem;
	width: 1.85rem;
	height: 1.85rem;
	background: #FED700;
	color: #1C201F;
	font-weight: 700;
	font-size: 0.8rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Tool FAQ */
.sn-tool-faq {
	margin-top: 2.5rem;
}

.sn-tool-faq__header {
	margin-bottom: 1.25rem;
}

.sn-tool-faq__title {
	font-family: var(--font-heading), system-ui, sans-serif;
	font-size: 1.375rem;
	font-weight: 700;
	color: #1C201F;
	margin: 0 0 0.35rem;
}

.sn-tool-faq__subtitle {
	font-size: 0.9375rem;
	color: #64748b;
	margin: 0;
}

.sn-tool-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.sn-tool-faq__item {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	overflow: hidden;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.sn-tool-faq__item.is-open {
	border-color: #1800AC;
	box-shadow: 0 2px 12px rgba(24, 0, 172, 0.08);
}

.sn-tool-faq__trigger {
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.15rem;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
}

.sn-tool-faq__trigger:hover {
	background: #fafafa;
}

.sn-tool-faq__trigger:focus-visible {
	outline: 2px solid #FED700;
	outline-offset: -2px;
}

.sn-tool-faq__question {
	font-size: 0.975rem;
	font-weight: 600;
	color: #1C201F;
	line-height: 1.45;
	flex: 1;
}

.sn-tool-faq__icon {
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: #f1f5f9;
	color: #1800AC;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	font-weight: 400;
	line-height: 1;
	transition: background 150ms ease, color 150ms ease;
}

.sn-tool-faq__item.is-open .sn-tool-faq__icon {
	background: #1800AC;
	color: #FED700;
}

.sn-tool-faq__panel {
	display: none;
	padding: 0 1.15rem 1.1rem;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: #475569;
}

.sn-tool-faq__item.is-open .sn-tool-faq__panel {
	display: block;
}

.sn-tool-faq__panel p {
	margin: 0 0 0.65rem;
}

.sn-tool-faq__panel p:last-child {
	margin-bottom: 0;
}

/* Intro callout */
.sn-tool-intro-box {
	background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
	border: 1px solid #fde68a;
	border-left: 4px solid #FED700;
	border-radius: 0.75rem;
	padding: 1rem 1.15rem;
	margin-bottom: 2rem;
}

.sn-tool-intro-box--in-card {
	margin-bottom: 1.5rem;
}

.sn-tool-intro-box p {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.75;
	color: #334155;
}
