/* ==========================================================================
   Author Info Card (.sentio-ai)
   ==========================================================================
   Extracted from frontend.css during the Batch 8 mechanical extraction
   (2026-04-18). Behavior-preserving.
   Diffs: Social Profiles, Stats Dashboard, Card Effects, Latest Posts.
   ========================================================================== */

/* ── Base ── */
.sentio-ai {
	position: relative;
}

.sentio-ai__inner {
	position: relative;
	overflow: hidden;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.sentio-ai__placeholder {
	padding: 40px;
	text-align: center;
	color: #94a3b8;
}

/* ── Layout: Vertical ── */
.sentio-ai--layout-vertical .sentio-ai__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* ── Layout: Horizontal ── */
.sentio-ai--layout-horizontal .sentio-ai__inner {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 24px;
	text-align: left;
}

.sentio-ai--layout-horizontal .sentio-ai__avatar {
	flex-shrink: 0;
}

/* ── Avatar ── */
.sentio-ai__avatar {
	margin-bottom: 16px;
	line-height: 0;
}

.sentio-ai__avatar img {
	object-fit: cover;
	display: block;
}

.sentio-ai--layout-horizontal .sentio-ai__avatar {
	margin-bottom: 0;
}

/* ── Name ── */
.sentio-ai__name {
	margin: 0 0 8px;
	line-height: 1.3;
}

.sentio-ai__name a {
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s;
}

.sentio-ai__name a:hover {
	opacity: 0.75;
}

/* ── Role Badge ── */
.sentio-ai__role {
	display: inline-block;
	padding: 3px 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6366f1;
	background: rgba(99, 102, 241, 0.1);
	border-radius: 20px;
	margin-bottom: 12px;
}

/* ── Bio ── */
.sentio-ai__bio {
	margin-bottom: 12px;
	line-height: 1.6;
}

.sentio-ai__bio p:last-child {
	margin-bottom: 0;
}

/* ═══ Diff #1 — Social Profiles ═══ */
.sentio-ai__social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	margin-top: 16px;
}

.sentio-ai--layout-horizontal .sentio-ai__social {
	justify-content: flex-start;
}

.sentio-ai__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: transform 0.2s, background-color 0.2s;
	color: inherit;
}

.sentio-ai__social-link svg {
	display: block;
	transition: fill 0.2s;
}

.sentio-ai__social-link:hover {
	transform: translateY(-2px);
}

/* Branded hover colors */
.sentio-ai__social-link--branded:hover svg {
	fill: var(--sentio-ai-brand);
}

/* Icon with Background style */
.sentio-ai__social--icon-bg .sentio-ai__social-link {
	background: #f1f5f9;
}

.sentio-ai__social--icon-bg .sentio-ai__social-link:hover {
	background: #e2e8f0;
}

/* Icon + Label style */
.sentio-ai__social--icon-label .sentio-ai__social-link {
	gap: 6px;
}

.sentio-ai__social-label {
	font-size: 13px;
	font-weight: 500;
}

/* ═══ Diff #2 — Stats Dashboard ═══ */
.sentio-ai__stats {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
	width: 100%;
}

.sentio-ai--layout-horizontal .sentio-ai__stats {
	justify-content: flex-start;
}

.sentio-ai__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
}

.sentio-ai__stat-value {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.sentio-ai__stat-label {
	font-size: 13px;
	margin-top: 2px;
}

/* Stat divider */
.sentio-ai--stat-divider-yes .sentio-ai__stat + .sentio-ai__stat::before {
	content: '';
	position: absolute;
	left: calc(-1 * var(--sentio-ai-stat-half-gap, 12px));
	top: 4px;
	bottom: 4px;
	width: 1px;
	background-color: #e2e8f0;
}

/* ═══ Diff #3 — Card Effects ═══ */

/* Gradient Border */
.sentio-ai--effect-gradient-border .sentio-ai__inner {
	border: none;
}

.sentio-ai--effect-gradient-border .sentio-ai {
	position: relative;
}

.sentio-ai--effect-gradient-border .sentio-ai__inner::before {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: inherit;
	background: linear-gradient(
		135deg,
		var(--sentio-ai-grad1, #6366f1),
		var(--sentio-ai-grad2, #ec4899),
		var(--sentio-ai-grad1, #6366f1)
	);
	background-size: 200% 200%;
	z-index: -1;
	opacity: 0;
	transition: opacity 0.4s;
}

.sentio-ai--effect-gradient-border:hover .sentio-ai__inner::before {
	opacity: 1;
	animation: sentio-ai-grad-rotate 3s linear infinite;
}

@keyframes sentio-ai-grad-rotate {
	0%   { background-position: 0% 50%; }
	50%  { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/* Glassmorphism */
.sentio-ai--effect-glassmorphism .sentio-ai__inner {
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	background: rgba(255, 255, 255, 0.7) !important;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.sentio-ai--effect-glassmorphism:hover .sentio-ai__inner {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* 3D Tilt — transforms via JS */
.sentio-ai--effect-3d-tilt .sentio-ai__inner {
	transform-style: preserve-3d;
	will-change: transform;
}

/* Glow */
.sentio-ai--effect-glow .sentio-ai__inner {
	transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.sentio-ai--effect-glow:hover .sentio-ai__inner {
	box-shadow: 0 0 30px var(--sentio-ai-glow, rgba(99, 102, 241, 0.5)),
	            0 0 60px var(--sentio-ai-glow, rgba(99, 102, 241, 0.25));
	transform: translateY(-2px);
}

/* ═══ Diff #4 — Latest Posts ═══ */
.sentio-ai__posts {
	width: 100%;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
	text-align: left;
}

.sentio-ai__posts-heading {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
}

.sentio-ai__posts-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sentio-ai__post-link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	padding: 8px;
	border-radius: 8px;
	transition: background-color 0.2s;
}

.sentio-ai__post-link:hover {
	background-color: #f8fafc;
}

.sentio-ai__post-thumb {
	flex-shrink: 0;
	overflow: hidden;
	line-height: 0;
}

.sentio-ai__post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sentio-ai__post-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.sentio-ai__post-title {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	transition: color 0.2s;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sentio-ai__post-date {
	font-size: 12px;
	color: #94a3b8;
}

/* ── Responsive ── */
@media (max-width: 767px) {
	.sentio-ai--layout-horizontal .sentio-ai__inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.sentio-ai--layout-horizontal .sentio-ai__social {
		justify-content: center;
	}

	.sentio-ai--layout-horizontal .sentio-ai__stats {
		justify-content: center;
	}
}
