/* Enhanced Styles for Portfolio Website */
/* Improved blog cards, pagination, and animations */

/* Smooth transitions for interactive elements */
a, button, .circle, .posts li article {
	transition: all 0.3s ease;
}

/* Enhanced blog post cards */
.posts li article {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border-radius: 8px;
	overflow: hidden;
}

.posts li article:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.posts li article header h3 a {
	transition: color 0.3s ease;
	cursor: pointer;
	pointer-events: auto;
}

.posts li article header h3 a:hover {
	color: #666;
	text-decoration: underline;
}

/* Blog icon styling */
.blog-icon-link {
	display: block;
	text-decoration: none;
}

.blog-icon-container {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	border-radius: 8px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.blog-icon-container i {
	font-size: 2.5rem;
	transition: all 0.3s ease;
	z-index: 2;
}

.posts li article:hover .blog-icon-container {
	transform: scale(1.02);
}

.posts li article:hover .blog-icon-container i {
	transform: scale(1.15);
}

.posts li article .image img {
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.posts li article:hover .image img {
	transform: scale(1.05);
	opacity: 0.9;
}

/* ===================================================================
   PAGINATION - Elegant Dot Design
   ===================================================================
   Modern minimalist pagination with small dots:
   - Inactive: Light gray dots (12px)
   - Hover: Medium gray, slightly larger
   - Active: Dark gray, largest (18px scaled)
   - Tooltips: Show page labels on hover
   
   To customize:
   - Dot size: Change width/height in .circle span
   - Colors: Adjust background colors below
   - Spacing: Modify margin in .circle
   =================================================================== */

/* Elegant pagination design */
.circle {
	display: inline-block;
	margin: 0 6px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}

.circle span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: #e0e0e0;
	position: relative;
	cursor: pointer;
}

.circle:hover span {
	background: #9e9e9e;
	transform: scale(1.2);
}

.circle.active span {
	background: #424242;
	transform: scale(1.5);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.circle span h3 {
	margin: 0;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

.circle span h3 a {
	color: transparent;
	text-decoration: none;
	font-size: 0;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	display: block;
	z-index: 10;
}

/* Page indicator labels */
.circle::after {
	content: attr(data-page-label);
	position: absolute;
	bottom: -25px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 0.75rem;
	color: #999;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.circle:hover::after,
.circle.active::after {
	opacity: 1;
}

/* Pagination container */
.container {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 30px 0;
	flex-wrap: wrap;
	position: relative;
}

/* Featured badge for special posts */
.featured-badge {
	display: inline-block;
	background: #f56a6a;
	color: #fff;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	margin-left: 10px;
	letter-spacing: 0.5px;
}

/* Category tags */
.category-tag {
	display: inline-block;
	background: #e8e8e8;
	color: #555;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 500;
	margin-top: 8px;
	text-transform: capitalize;
}

/* Improved button hover effects */
.button:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced menu links */
#menu .links li a:hover {
	background: rgba(0, 0, 0, 0.05);
	padding-left: 15px;
}

/* Smooth scroll behavior */
html {
	scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.posts li {
	animation: fadeIn 0.6s ease-out;
	animation-fill-mode: both;
}

.posts li:nth-child(1) { animation-delay: 0.1s; }
.posts li:nth-child(2) { animation-delay: 0.2s; }
.posts li:nth-child(3) { animation-delay: 0.3s; }
.posts li:nth-child(4) { animation-delay: 0.4s; }
.posts li:nth-child(5) { animation-delay: 0.5s; }

/* Responsive improvements */
@media screen and (max-width: 736px) {
	.circle {
		margin: 0 5px;
	}
	
	.circle span {
		width: 40px;
		height: 40px;
	}
	
	.circle span h3 a {
		font-size: 1rem;
	}
}

/* Enhanced footer social icons */
#footer .icons li a:hover {
	opacity: 0.7nslateY(-3px);
	color: #f56a6a;
}

/* Improved intro section */
.post.featured {
	background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
	border-radius: 10px;
	padding: 20px;
}

/* Update date styling */
time.published + time.published {
	display: block;
	color: #666;
	font-style: italic;
	font-size: 0.9rem;
	margin-top: 5px;
}

/* Blog post header improvements */
.posts li article header {
	padding-bottom: 1rem;
}

.posts li article header time {
	display: block;
	margin-top: 0.5rem;
	color: #999;
	font-size: 0.9rem;
}

/* Enhanced main content area */
#main {
	animation: fadeIn 0.8s ease-out;
}

/* Sidebar improvements */
#sidebar {
	animation: fadeIn 1s ease-out;
}

/* Focus styles for accessibility */
a:focus, button:focus {
	outline: 2px solid #666;
	outline-offset: 2px;
}

/* Print styles */
@media print {
	.circle, #menu, #footer .icons {
		display: none;
	}
}
