/* Blocksy Echo — SNS feed layout */

body.be-sns-mode #main-container > main {
	max-width: none;
	width: 100%;
	padding-inline: 0;
}

.be-sns {
	width: min(72rem, calc(100% - 2rem));
	margin: 0 auto 2.5rem;
	padding-top: 1rem;
}

/* Hero */
.be-hero {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1.25rem;
	align-items: center;
	min-height: 9rem;
	padding: 1.5rem;
	margin-bottom: 1.25rem;
	border-radius: var(--be-radius, 1rem);
	border: 1px solid rgba(122, 162, 255, 0.22);
	background: rgba(255, 255, 255, 0.92);
	box-shadow: var(--be-shadow, 0 10px 28px rgba(122, 143, 255, 0.14));
	animation: be-rise 0.55s ease both;
}

.be-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse at 80% 20%, rgba(122, 162, 255, 0.22), transparent 45%),
		radial-gradient(ellipse at 20% 90%, rgba(255, 176, 200, 0.16), transparent 40%);
}

.be-avatar {
	position: relative;
	z-index: 1;
	width: 5.5rem;
	height: 5.5rem;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	border: 3px solid color-mix(in srgb, var(--be-theme, #7aa2ff) 40%, white);
	box-shadow: 0 6px 18px rgba(122, 162, 255, 0.28);
}

.be-avatar .custom-logo-link,
.be-avatar .custom-logo,
.be-avatar__img,
.be-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.be-hero__meta {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.be-hero__title {
	margin: 0 0 0.35rem;
	font-family: var(--be-display, inherit);
	font-size: clamp(1.6rem, 2.5vw, 2.1rem);
	font-weight: 400;
	line-height: 1.25;
}

.be-hero__title a {
	color: inherit;
	text-decoration: none;
}

.be-hero__desc {
	margin: 0 0 0.55rem;
	color: #5c6b82;
}

.be-hero__quote {
	margin: 0;
	padding-left: 0.75rem;
	border-left: 3px solid color-mix(in srgb, var(--be-theme, #7aa2ff) 65%, white);
	color: #5c6b82;
	font-size: 0.92rem;
}

/* Nav */
.be-nav {
	margin-bottom: 1.25rem;
	padding: 0.65rem 1rem;
	border-radius: var(--be-radius, 1rem);
	border: 1px solid rgba(122, 162, 255, 0.22);
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(12px);
	box-shadow: var(--be-shadow, 0 10px 28px rgba(122, 143, 255, 0.14));
}

.be-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
}

.be-menu a {
	color: inherit;
	font-weight: 500;
	text-decoration: none;
}

.be-menu .sub-menu {
	list-style: none;
	margin: 0.25rem 0 0;
	padding: 0 0 0 0.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
}

.be-menu .sub-menu a {
	color: #5c6b82;
	font-size: 0.85rem;
	font-weight: 400;
}

/* Layout */
.be-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 18rem;
	gap: 1.25rem;
	align-items: start;
}

.be-main {
	min-width: 0;
}

.be-feed {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Cards */
.be-card {
	border-radius: var(--be-radius, 1rem);
	border: 1px solid rgba(122, 162, 255, 0.22);
	background: #fff;
	box-shadow: var(--be-shadow, 0 10px 28px rgba(122, 143, 255, 0.14));
	padding: 1.15rem 1.25rem 1rem;
	animation: be-rise 0.5s ease both;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.be-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(122, 143, 255, 0.18);
}

.be-card__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.be-card__avatar {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: rgba(122, 162, 255, 0.16);
}

.be-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.be-card__name {
	font-weight: 700;
	line-height: 1.3;
}

.be-card__meta {
	font-size: 0.8rem;
	color: #5c6b82;
}

.be-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	line-height: 1.4;
}

.be-card__title a {
	color: inherit;
	text-decoration: none;
}

.be-card__excerpt p:last-child,
.be-card__content p:last-child {
	margin-bottom: 0;
}

.be-card__thumb {
	display: block;
	margin-top: 0.85rem;
	border-radius: calc(var(--be-radius, 1rem) - 0.25rem);
	overflow: hidden;
}

.be-card__thumb img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.be-card__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin-top: 0.9rem;
	padding-top: 0.75rem;
	border-top: 1px dashed rgba(122, 162, 255, 0.22);
	font-size: 0.85rem;
	color: #5c6b82;
}

.be-card__foot a {
	color: #5c6b82;
	text-decoration: none;
}

.be-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	background: rgba(122, 162, 255, 0.14);
	color: var(--be-theme, #7aa2ff);
	font-size: 0.75rem;
	font-weight: 600;
}

.be-card--moment .be-card__title:empty {
	display: none;
}

/* Announce override inside feed */
.be-sns .be-announce {
	margin-bottom: 1rem;
}

.be-sns .be-announce__text {
	margin: 0;
}

/* Sidebar */
.be-sidebar {
	position: sticky;
	top: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.be-panel {
	border-radius: var(--be-radius, 1rem);
	border: 1px solid rgba(122, 162, 255, 0.22);
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(12px);
	box-shadow: var(--be-shadow, 0 10px 28px rgba(122, 143, 255, 0.14));
	padding: 1rem;
}

.be-panel__title {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	font-weight: 700;
}

.be-recent {
	list-style: none;
	margin: 0;
	padding: 0;
}

.be-recent li {
	padding: 0.35rem 0;
	border-bottom: 1px dashed rgba(122, 162, 255, 0.22);
	font-size: 0.9rem;
}

.be-recent li:last-child {
	border-bottom: 0;
}

.be-recent a {
	color: inherit;
	text-decoration: none;
}

.be-tagcloud a,
.be-tagcloud .tag-cloud-link {
	display: inline-block;
	margin: 0.2rem 0.25rem 0.2rem 0;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: rgba(122, 162, 255, 0.12);
	color: inherit !important;
	font-size: 0.8rem !important;
	text-decoration: none;
}

.be-calendar table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8rem;
	text-align: center;
}

.be-calendar th,
.be-calendar td {
	padding: 0.25rem;
}

.be-calendar #today {
	background: var(--be-theme, #7aa2ff);
	color: #fff;
	border-radius: 50%;
}

/* Pagination */
.be-pagination {
	display: flex;
	justify-content: center;
	margin-top: 1.25rem;
}

.be-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.be-pagination a,
.be-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.65rem;
	border-radius: 999px;
	border: 1px solid rgba(122, 162, 255, 0.22);
	background: #fff;
	color: inherit;
	font-size: 0.9rem;
	text-decoration: none;
}

.be-pagination .current {
	background: var(--be-theme, #7aa2ff);
	border-color: var(--be-theme, #7aa2ff);
	color: #fff;
}

.be-empty {
	text-align: center;
	padding: 2.5rem 1rem;
	color: #5c6b82;
}

.be-empty__actions {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.be-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	border: 1px solid rgba(122, 162, 255, 0.28);
	background: rgba(255, 255, 255, 0.88);
	color: inherit;
	text-decoration: none;
	font-size: 0.85rem;
}

/* Dark */
html.be-darkmode .be-hero,
html.be-darkmode .be-card,
html.be-darkmode .be-nav,
html.be-darkmode .be-panel,
html.be-darkmode .be-pagination a,
html.be-darkmode .be-pagination span:not(.current),
html.be-darkmode .be-btn {
	background: #262d3d;
	border-color: rgba(155, 182, 255, 0.18);
	color: #e8eefc;
}

html.be-darkmode .be-hero__desc,
html.be-darkmode .be-hero__quote,
html.be-darkmode .be-card__meta,
html.be-darkmode .be-card__foot,
html.be-darkmode .be-card__foot a,
html.be-darkmode .be-menu .sub-menu a {
	color: #a4b0c8;
}

@keyframes be-rise {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 960px) {
	.be-layout {
		grid-template-columns: 1fr;
	}

	.be-sidebar {
		position: static;
	}
}

@media (max-width: 640px) {
	.be-sns {
		width: calc(100% - 1.25rem);
	}

	.be-hero {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.be-hero__quote {
		text-align: left;
		width: 100%;
	}
}
