/* ENDODOC ScopeCare — WordPress additions on top of app.css */

/* Scroll-in animation (only when JavaScript is running) */
.ed-js .ed-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--ed-delay, 0s);
}
.ed-js .ed-reveal.is-visible {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.ed-js .ed-reveal { opacity: 1; transform: none; transition: none; }
}

[data-tilt] { transition: transform 0.25s ease-out; will-change: transform; }

/* Keep the floating header below the WordPress admin bar */
.admin-bar #ed-header { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar #ed-header { top: 46px; }
}

/* Contact form */
.ed-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.ed-anchor { position: relative; top: -120px; }
.ed-notice {
	margin-bottom: 1.25rem;
	border-radius: 1.25rem;
	padding: 1rem 1.25rem;
	font-size: 0.95rem;
	border: 1px solid var(--border);
	background: color-mix(in oklab, var(--card) 80%, transparent);
	backdrop-filter: blur(12px);
}
.ed-notice--ok { border-color: color-mix(in oklab, var(--gold) 60%, transparent); color: var(--foreground); }
.ed-notice--ok strong { color: var(--gold); }
.ed-notice--err { border-color: color-mix(in oklab, var(--destructive) 70%, transparent); }

/* Simple gold button for generic templates */
.ed-btn-gold {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	height: 3rem; padding: 0 2rem; border-radius: 9999px; font-weight: 600;
	background: var(--gradient-gold, var(--gold)); color: var(--gold-foreground);
	box-shadow: var(--shadow-gold, none);
}
.ed-btn-gold:hover { filter: brightness(1.1); }

/* Content written in the WordPress editor */
.ed-content { color: var(--foreground); line-height: 1.75; font-size: 1.05rem; }
.ed-content > * + * { margin-top: 1.1em; }
.ed-content h1, .ed-content h2, .ed-content h3, .ed-content h4 {
	font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin-top: 1.6em;
}
.ed-content h2 { font-size: 2rem; }
.ed-content h3 { font-size: 1.5rem; }
.ed-content > :first-child { margin-top: 0; }
.ed-content p, .ed-content li { color: var(--muted-foreground); }
.ed-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.ed-content h2 a { text-decoration: none; color: var(--foreground); }
.ed-content h2 a:hover { color: var(--gold); }
.ed-content ul { list-style: disc; padding-left: 1.4em; }
.ed-content ol { list-style: decimal; padding-left: 1.4em; }
.ed-content blockquote { border-left: 2px solid var(--gold); padding-left: 1rem; font-style: italic; }
.ed-content img, .ed-featured { border-radius: 1rem; max-width: 100%; height: auto; }
.ed-content .alignwide, .ed-content .alignfull { max-width: 100%; }
.ed-content input, .ed-content textarea {
	width: 100%; border: 1px solid var(--input); background: transparent; border-radius: 0.5rem; padding: 0.5rem 0.75rem;
}
.ed-list { display: grid; gap: 1.25rem; }
.ed-pagination { margin-top: 2rem; }
.ed-pagination .nav-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.ed-comments { margin-top: 2rem; }
