/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Modern Author Box */
.modern-author-box {
	position: relative;
	margin-top: 3rem;
	margin-bottom: 1rem;
	padding: 20px;
	background: linear-gradient(145deg, #ffffff, #f8f9fa);
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.02);
	display: flex;
	align-items: center;
	gap: 2rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid rgba(255,255,255,0.8);
	overflow: hidden;
}
.modern-author-box::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; height: 4px;
	background: linear-gradient(90deg, #fc0084, #ff7eb3);
}
.modern-author-box:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(252, 0, 132, 0.08);
}
.modern-author-avatar {
	flex-shrink: 0;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid #fff;
	box-shadow: 0 8px 20px rgba(0,0,0,0.1);
	transition: transform 0.4s ease;
}
.modern-author-box:hover .modern-author-avatar {
	transform: scale(1.05) rotate(3deg);
}
.modern-author-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.modern-author-content {
	flex-grow: 1;
}
.modern-author-title {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #fc0084;
	font-weight: 700;
	margin-bottom: 0.25rem;
	display: block;
}
.modern-author-name {
	font-size: 1.5rem;
	font-weight: 800;
	color: #1a1a1a;
	margin-bottom: 0.75rem;
	line-height: 1.2;
	text-transform: none;
}
.modern-author-name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}
.modern-author-name a:hover {
	color: #fc0084;
}
.modern-author-desc {
	font-size: 1rem;
	line-height: 1.6;
	color: #555;
	margin-bottom: 1.25rem;
}
.modern-author-actions a {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1.25rem;
	background: rgba(252, 0, 132, 0.05);
	color: #fc0084;
	border-radius: 50px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}
.modern-author-actions a:hover {
	background: #fc0084;
	color: #fff;
	box-shadow: 0 5px 15px rgba(252, 0, 132, 0.3);
}
.modern-author-actions a span {
	margin-left: 0.5rem;
	font-size: 1rem;
}

/* Modern Entry Header */
.modern-entry-header {
	text-align: left;
}

/* Category Links */
.modern-entry-category {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.3rem;
}
.modern-entry-category a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}
.modern-entry-category a:hover {
	color: #fc0084;
}

/* Title */
.modern-entry-title {
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1.25;
	color: #1a1a1a;
	margin-bottom: 1rem;
	text-transform: none;
}
.modern-entry-title a {
	color: inherit;
	transition: color 0.3s ease;
}
.modern-entry-title a:hover {
	color: #fc0084;
}

/* Meta Info */
.modern-entry-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.5rem;
	border-top: 1px dashed rgba(0, 0, 0, 0.1);
	padding-top: 10px;
}
.meta-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.meta-author-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.meta-author-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.meta-author-info, .meta-date, .meta-reading-time, .meta-category {
	display: flex;
	flex-direction: column;
}
.meta-label {
	font-size: 0.75rem;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 0.15rem;
}
.meta-value, .meta-author-name {
	font-size: 0.95rem;
	font-weight: 600;
	color: #333;
}
.meta-author-name {
	text-decoration: none;
	transition: color 0.3s ease;
}
.meta-author-name:hover {
	color: #fc0084;
}
.meta-divider {
	width: 1px;
	height: 30px;
	background: rgba(0,0,0,0.1);
}

/* Modern Post Tags (Facebook Style) */
.modern-post-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 1rem 0;
	padding-top: 1rem;
	border-top: 1px dashed rgba(0,0,0,0.1);
}
.modern-post-tags .tags-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	color: #555;
	font-size: 0.95rem;
}
.modern-post-tags .tags-label svg {
	color: #888;
}
.modern-post-tags .tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.modern-tag {
	display: inline-flex;
	align-items: center;
	background: rgba(24, 119, 242, 0.08); /* Facebook light blue background */
	color: #1877f2; /* Facebook blue text */
	padding: 0.35rem 0.85rem;
	border-radius: 8px; /* Slightly rounded like modern FB UI */
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}
.modern-tag .tag-hash {
	opacity: 0.7;
	margin-right: 2px;
	font-weight: normal;
}
.modern-tag:hover {
	background: #1877f2;
	color: #fff;
	box-shadow: 0 4px 10px rgba(24, 119, 242, 0.2);
}
.modern-tag:hover .tag-hash {
	opacity: 1;
}

/* Modern Related Posts */
.modern-related-posts {
	margin: 4rem 0 3rem;
}
.modern-related-title {
	font-size: 1.5rem;
	font-weight: 800;
	margin-bottom: 2rem;
	position: relative;
	display: inline-block;
}
.modern-related-title::after {
	content: '';
	position: absolute;
	bottom: -0.5rem;
	left: 0;
	width: 50px;
	height: 4px;
	background: linear-gradient(90deg, #fc0084, #ff7eb3);
	border-radius: 2px;
}
.modern-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}
.modern-related-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 4px 15px rgba(0,0,0,0.04);
	transition: all 0.3s ease;
	border: 1px solid rgba(0,0,0,0.03);
}
.modern-related-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(252, 0, 132, 0.08);
}
.modern-related-thumb {
	position: relative;
	width: 100%;
	padding-top: 60%; /* 5:3 Aspect Ratio */
	overflow: hidden;
	background: #f8f9fa;
}
.modern-related-thumb img {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.modern-related-card:hover .modern-related-thumb img {
	transform: scale(1.08);
}
.modern-related-overlay {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(252, 0, 132, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.modern-related-card:hover .modern-related-overlay {
	opacity: 1;
}
.modern-related-read {
	background: #fff;
	color: #fc0084;
	padding: 0.5rem 1.25rem;
	border-radius: 50px;
	font-weight: 700;
	font-size: 0.85rem;
	transform: translateY(10px);
	transition: transform 0.3s ease;
}
.modern-related-card:hover .modern-related-read {
	transform: translateY(0);
}
.modern-related-content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.modern-related-post-title {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 0.75rem;
	color: #222;
	transition: color 0.3s ease;
}
.modern-related-card:hover .modern-related-post-title {
	color: #fc0084;
}
.modern-related-date {
	font-size: 0.85rem;
	color: #888;
	margin-top: auto; /* push to bottom */
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
	.modern-author-box {
		flex-direction: column;
		text-align: center;
		gap: 1.25rem;
	}
	.modern-author-avatar {
		width: 100px;
		height: 100px;
	}
	
	.modern-entry-title {
		font-size: 1.4rem;
	}
	.modern-entry-meta {
		display: flex;
		flex-wrap: wrap;
		gap: 1rem 1.5rem;
		align-items: center;
		flex-direction: row;
	}
	.meta-author {
		flex: 0 0 100%;
		padding-bottom: 1rem;
		border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
	}
	.meta-divider {
		display: none;
	}
	
	.modern-related-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	.modern-related-thumb {
		padding-top: 56.25%; /* 16:9 on mobile */
	}
	
	.modern-post-tags {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}
}