/* =========================================
   GR Flow – flow.css
   ========================================= */

/* ------ Post card ------ */
.flow-post {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 14px;
	padding: 20px 22px;
	margin-bottom: 18px;
	transition: border-color 0.2s;
}
.flow-post:hover {
	border-color: rgba(235,207,129,0.2);
}

/* ------ Author row ------ */
.flow-post__author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.flow-post__avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	border: 2px solid rgba(235,207,129,0.45);
	background: rgba(235,207,129,0.1);
	display: flex;
	align-items: center;
	justify-content: center;
}
.flow-post__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.flow-post__avatar-letter {
	font-size: 18px;
	font-weight: 700;
	color: #EBCF81;
	line-height: 1;
}

.flow-post__author-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.flow-post__name {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
}
.flow-post__time {
	font-size: 12px;
	color: rgba(255,255,255,0.4);
	display: flex;
	align-items: center;
	gap: 4px;
	cursor: default;
	position: relative;
}
.flow-post__time .ti {
	font-size: 12px;
}

/* ------ Caption ------ */
.flow-post__caption {
	font-size: 14px;
	line-height: 1.65;
	color: rgba(255,255,255,0.82);
	margin: 0;
	white-space: pre-line;
}
.flow-post__caption + .flow-post__photo {
	margin-top: 14px;
}

/* ------ Photo ------ */
.flow-post__photo {
	border-radius: 10px;
	overflow: hidden;
	margin-top: 2px;
}
.flow-post__photo img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	max-height: 520px;
}

/* ------ Pagination ------ */
.flow-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 32px 0 8px;
}
.flow-page-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border-radius: 8px;
	background: rgba(235,207,129,0.08);
	border: 1px solid rgba(235,207,129,0.25);
	color: #EBCF81;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s;
}
.flow-page-btn:hover {
	background: rgba(235,207,129,0.15);
	border-color: rgba(235,207,129,0.5);
	color: #EBCF81;
}
.flow-page-info {
	font-size: 13px;
	color: rgba(255,255,255,0.45);
}

/* ------ Like actions row ------ */
.flow-post__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(255,255,255,0.06);
}
.flow-like-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px 2px;
	color: rgba(255,255,255,0.35);
	font-size: 20px;
	line-height: 1;
	display: flex;
	align-items: center;
	transition: color 0.15s, transform 0.15s;
}
.flow-like-btn:hover {
	color: #e05555;
	transform: scale(1.2);
}
.flow-like-btn--active {
	color: #e05555;
}
.flow-like-count {
	font-size: 13px;
	color: rgba(255,255,255,0.4);
	min-width: 16px;
}

/* ------ Double-tap heart burst ------ */
.flow-post {
	position: relative;
	overflow: hidden;
}
.flow-post__heart-burst {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	font-size: 88px;
	color: #e05555;
	pointer-events: none;
	opacity: 0;
	z-index: 10;
}
.flow-post__heart-burst--show {
	animation: grHeartBurst 0.65s ease forwards;
}
@keyframes grHeartBurst {
	0%   { transform: translate(-50%, -50%) scale(0);   opacity: 1; }
	45%  { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
	100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0; }
}
