/*
 * Component styles moved out of inline <style> blocks in <body>
 * (W3C: <style> is only allowed in <head>). Enqueued in functions.php.
 */

/* ── Hero home (template-parts/flexible/hero-home.php) ── */
@keyframes heroSlideLeft {
	from { opacity: 0; transform: translateX(-200px); }
	to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroSlideRight {
	from { opacity: 0; transform: translateX(200px); }
	to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes heroSlideUp {
	from { opacity: 0; transform: translateY(40px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroTitleIn {
	from { opacity: 1.00; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroScaleX {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}
@keyframes heroZoomOut {
	from { transform: scale(1.15); }
	to   { transform: scale(1); }
}
.hero-img-left  { animation: heroSlideLeft  1s cubic-bezier(0.22,1,0.36,1) 0.1s both; }
.hero-img-right { animation: heroSlideRight 1s cubic-bezier(0.22,1,0.36,1) 0.1s both; }
.hero-title     { animation: heroTitleIn    0.6s ease-out 0.65s both; }
@media (min-width: 1024px) {
	.hero-title { animation: heroFadeIn 0.6s ease-out 0.65s both; }
}
.hero-text-line { animation: heroScaleX    0.7s cubic-bezier(0.22,1,0.36,1) 1s both; transform-origin: left center; }
.hero-bg        { animation: heroZoomOut   1.4s cubic-bezier(0.22,1,0.36,1) 0s both; transform-origin: center center; }
.hero-cta       { animation: heroSlideUp    0.6s cubic-bezier(0.22,1,0.36,1) 1s both; }

/* ── Hero product (template-parts/flexible/hero-product.php) ── */
@keyframes heroSlideRight {
	from { opacity: 0; transform: translateX(200px); }
	to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes heroSlideUp {
	from { opacity: 0; transform: translateY(40px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroZoomOut {
	from { transform: scale(1.15); }
	to   { transform: scale(1); }
}
.hp-img-right { animation: heroSlideRight 1s cubic-bezier(0.22,1,0.36,1) 0.1s both; }
.hp-title     { animation: heroFadeIn     0.6s ease-out 0.65s both; }
.hp-cta       { animation: heroSlideUp    0.6s cubic-bezier(0.22,1,0.36,1) 1s both; }
.hp-bg        { animation: heroZoomOut    1.4s cubic-bezier(0.22,1,0.36,1) 0s both; transform-origin: center center; }

/* ── Table component (template-parts/flexible/table-component.php) ── */
.tc-component .tc-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.tc-component .tc-table {
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
}
/* Desktop: label column — grey gradient, rounded left */
.tc-component .tc-desktop th:first-child,
.tc-component .tc-desktop td:first-child {
	position: sticky;
	left: 0;
	z-index: 2;
	border-radius: 0;
	background: var(--table-bg-grey-1, linear-gradient(270deg, #FFF 0%, #FAFBFB 100%));
}
.tc-component .tc-desktop thead th:first-child {
	border-top-left-radius: 12px;
}
.tc-component .tc-desktop tbody tr:last-child td:first-child {
	border-bottom-left-radius: 12px;
}
/* Desktop: Nalgesin S column (col 2) — blue gradient */
.tc-component .tc-desktop th:nth-child(2),
.tc-component .tc-desktop td:nth-child(2) {
	background: linear-gradient(270deg, #f9fdff 0%, #effbff 100%);
}
/* Desktop: remaining columns — grey gradient */
.tc-component .tc-desktop th:nth-child(n+3),
.tc-component .tc-desktop td:nth-child(n+3) {
	background: var(--table-bg-grey-1, linear-gradient(270deg, #FFF 0%, #FAFBFB 100%));
}
/* Desktop header bottom border — inset per column, no connection between columns */
.tc-component .tc-desktop thead th {
	position: relative;
}
.tc-component .tc-desktop thead th::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 10px;
	right: 10px;
	height: 1px;
	background: #bfbfbf;
	pointer-events: none;
}
/* Desktop row dividers — inset per column, no connection between columns */
.tc-component .tc-desktop tbody tr + tr td:not(:first-child) {
	position: relative;
}
.tc-component .tc-desktop tbody tr + tr td::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10px;
	right: 10px;
	height: 1px;
	background: #bfbfbf;
	pointer-events: none;
}

/* Mobile: sticky left column — right-side shadow only, clipped top/bottom */
.tc-component .tc-mobile th:first-child,
.tc-component .tc-mobile td:first-child {
	position: sticky;
	left: 0;
	z-index: 2;
	box-shadow: 4px 0 8px 0 rgba(0, 0, 0, 0.15);
	clip-path: inset(0 -20px 0 0);
}
/* Mobile: left column header cell */
.tc-component .tc-mobile thead th:first-child {
	background: #edeff3;
}
/* Mobile: left column first body row — blue gradient */
.tc-component .tc-mobile tbody tr:first-child td:first-child {
	background: linear-gradient(to top, #f9fdff 0%, #effbff 100%);
}
/* Mobile: left column other rows — grey gradient */
.tc-component .tc-mobile tbody tr:not(:first-child) td:first-child {
	background: linear-gradient(to top, #ffffff 0%, #f5f7f9 100%);
}
/* Mobile: scrollable column headers */
.tc-component .tc-mobile thead th:not(:first-child) {
	background: #edeff3;
}
/* Mobile: data cells first row (Naproxen) — blue gradient */
.tc-component .tc-mobile tbody tr:first-child td:not(:first-child) {
	background: linear-gradient(to top, #f9fdff 0%, #effbff 100%);
}
/* Mobile: data cells other rows — grey gradient */
.tc-component .tc-mobile tbody tr:not(:first-child) td:not(:first-child) {
	background: linear-gradient(to top, #ffffff 0%, #f5f7f9 100%);
}
/* Mobile: column separators — inset vertical line on right of each non-first column */
.tc-component .tc-mobile thead th:not(:first-child),
.tc-component .tc-mobile tbody td:not(:first-child) {
	position: relative;
}
.tc-component .tc-mobile thead th:not(:first-child)::after,
.tc-component .tc-mobile tbody td:not(:first-child)::after {
	content: '';
	position: absolute;
	top: 10px;
	bottom: 10px;
	right: 0;
	width: 1px;
	background: #bfbfbf;
	pointer-events: none;
}
.tc-component .tc-mobile thead th:last-child::after,
.tc-component .tc-mobile tbody td:last-child::after {
	display: none;
}

/* ── Article cards (home.php, page-articles.php) ── */
@keyframes cardSlideIn {
	from { opacity: 0; transform: translateX(-50px); }
	to   { opacity: 1; transform: translateX(0); }
}
.article-card.card-animate {
	animation: cardSlideIn 0.5s ease-out both;
}

/* ── Scroll-snap deferred until window load (see assets/js/main.js) ── */
.snap-defer {
	scroll-snap-type: none !important;
}
