/* EliteLearn frontend styles */

/* When a step is gated and not satisfied, the native button is hidden by JS.
   This is a CSS fallback so it stays hidden even before JS runs. */
.elite-gated-step:not(.elite-step-satisfied) .learndash_mark_complete_button,
.elite-gated-step:not(.elite-step-satisfied) input[name="mark_complete"] {
	display: none !important;
}

#elite-progress-hint {
	margin: 1em 0;
	padding: 0.75em 1em;
	border-radius: 8px;
	background: #f3f4f6;
	color: #374151;
	font-size: 0.9rem;
}

.elite-step-satisfied #elite-progress-hint {
	background: #ecfdf5;
	color: #065f46;
}

/* Starter block: flip card (rule="interact") */
.elite-flipcard {
	perspective: 1000px;
	max-width: 360px;
	cursor: pointer;
}
.elite-flipcard-inner {
	position: relative;
	width: 100%;
	min-height: 200px;
	transition: transform 0.6s;
	transform-style: preserve-3d;
}
.elite-flipcard.flipped .elite-flipcard-inner {
	transform: rotateY(180deg);
}
.elite-flipcard-front,
.elite-flipcard-back {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5em;
	border-radius: 12px;
	box-sizing: border-box;
}
.elite-flipcard-front { background: #1e293b; color: #fff; }
.elite-flipcard-back { background: #6366f1; color: #fff; transform: rotateY(180deg); }

/* ---- Callout ---- */
.elite-callout {
	border-left: 4px solid #6366f1;
	background: #eef2ff;
	padding: 1em 1.25em;
	border-radius: 8px;
	margin: 1.25em 0;
}
.elite-callout__title { font-weight: 600; margin-bottom: 0.35em; }
.elite-callout__body > :first-child { margin-top: 0; }
.elite-callout__body > :last-child { margin-bottom: 0; }
.elite-callout--info    { border-color: #6366f1; background: #eef2ff; }
.elite-callout--tip     { border-color: #0ea5e9; background: #e0f2fe; }
.elite-callout--warning { border-color: #f59e0b; background: #fef3c7; }
.elite-callout--success { border-color: #10b981; background: #ecfdf5; }

/* ---- Accordion ---- */
.elite-accordion { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; margin: 1.25em 0; }
.elite-accordion__panel + .elite-accordion__panel { border-top: 1px solid #e5e7eb; }
.elite-accordion__header {
	width: 100%;
	text-align: left;
	background: #f9fafb;
	border: 0;
	padding: 0.9em 1.1em;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.elite-accordion__header::after { content: "+"; font-weight: 400; opacity: 0.6; }
.elite-accordion__header[aria-expanded="true"]::after { content: "\2212"; }
.elite-accordion__header:hover { background: #f3f4f6; }
.elite-accordion__content { padding: 0.5em 1.1em 1.1em; }
.elite-accordion__content > :first-child { margin-top: 0; }

/* ---- Tabs ---- */
.elite-tabs { margin: 1.25em 0; }
.elite-tabs__list { display: flex; flex-wrap: wrap; gap: 0.25em; border-bottom: 2px solid #e5e7eb; }
.elite-tabs__tab {
	background: none;
	border: 0;
	padding: 0.6em 1em;
	font-size: 0.95rem;
	cursor: pointer;
	color: #6b7280;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
}
.elite-tabs__tab.is-active { color: #4f46e5; border-bottom-color: #4f46e5; font-weight: 600; }
.elite-tabs__tab:hover { color: #4f46e5; }
.elite-tabs__pane { padding: 1.1em 0.25em; }
.elite-tabs__pane > :first-child { margin-top: 0; }
