/*
Theme Name: Tu1988
Description: This theme owner by Tu1988.Com
Author: Tu1988 - Tu Ngoc Truong
Version: 1.0
*/
.profile-header {
	position: relative;
	background-color: #fff;
	border-radius: 6px;
	overflow: hidden;
	padding: 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-cover {
	width: 100%;
	height: auto;
}

.profile-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-top: -60px;
}

.profile-avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	border: 4px solid #fff;
	object-fit: cover;
	margin-right: 1rem;
}
.profile-text {
    margin-top: 50px;
}
.profile-text h1 {
    font-size: 20px;
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  background: linear-gradient(90deg, #2196f3, #4caf50); /* Blue to Green */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.profile-name {
	font-size: 1.5rem;
	font-weight: bold;
}
.main_menu.fixed {
	position: fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 999;
	background: white;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	padding: 0;
	margin: 0;
}
#sticky-wrapper {
	position: relative;
}
.main_menu {
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
	margin-top: 1rem;
	padding: 0;
}
ul.nav.nav-links {
	padding: 0 10px;
	height: 40px;
	line-height: 40px;
}
.main_menu li {
	margin: 0;
}
.main_menu a {
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0 15px;
}

/*main*/
div#section_content {
	min-height: 100vh;
}
.container {
	max-width: 900px;
}
#site_wrap {
	padding: 0;
}
p,
li {
	margin-bottom: 5px;
}
/*header*/
.main_menu a.nav-link.active {
    border-bottom: 2px solid #0d6efd;
}

/*loop*/
#post-container article {
	padding: 0;
	padding-right: 10px;
}
.loop_wrap {
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	border-radius: 10px;
	padding: 15px;
	margin-bottom: 20px;
	background: #fff;
}
.post-header {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}
.post-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin-right: 10px;
}
img.post-avatar {
	height: 50px;
	width: 50px;
	border-radius: 50%;
}
.post-images {
	display: grid;
	gap: 4px;
	width: 100%;
}

/*.post-images img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 6px;
}*/

.image-wrapper {
	position: relative;
	overflow: hidden;
}

/* Hiển thị số lượng ảnh thừa */
.image-wrapper.image-more::after {
	content: attr(data-more);
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	color: white;
	font-weight: bold;
	font-size: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.image-wrapper {
	position: relative;
	overflow: hidden;
}
#image-grid {
	grid-template-columns: repeat(2, 1fr);
}

.image-wrapper {
	position: relative;
	overflow: hidden;
}

.image-more::after {
	content: "";
	background: rgba(0, 0, 0, 0.6);
	position: absolute;
	inset: 0;
	border-radius: 8px;
}

.image-more .overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 20px;
	font-weight: bold;
}
#loading-spinner {
	display: flex;
	justify-content: center;
	margin: 20px 0;
}

.spinner {
	width: 32px;
	height: 32px;
	border: 4px solid #ddd;
	border-top: 4px solid #007bff; /* màu xanh */
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

/* animation quay vòng */
@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
/*like post*/
.likers-tooltip {
	background: #fff;
	padding: 5px 10px;
	border: 1px solid #ccc;
	z-index: 9999;
	display: none;
}
.popup-likers {
	position: fixed;
	top: 20%;
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	padding: 20px;
	border: 2px solid #222;
	z-index: 10000;
}
.popup-likers .close-popup {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	font-size: 16px;
}
/*share post*/
.share-popup {
	position: fixed;
	width: 500px;
	height: 300px;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 9999999;
	background: #f1f1f1;
	display: flex;
	justify-content: center;
	align-content: center;
	flex-wrap: wrap;
}
