/* CSS Variables */
:root {
    --primary: #00d9ff;
    --primary-dark: #00b8d4;
    --dark: #0a0e1a;
    --dark-light: #0d1425;
    --text: #ffffff;
    --text-light: #d1d5db;
    --border: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 8px;
}

/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', sans-serif;
	background: linear-gradient(135deg, #0B1120 0%, #0f172a 100%);
	color: white;
	min-height: 100vh;
}

/* Page Container */
.blog-page {
	padding-top: 6rem;
	padding-bottom: 5rem;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Header Section */
.header-section {
	text-align: center;
	margin-bottom: 4rem;
}
.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(0, 217, 255, 0.1);
	border: 1px solid rgba(0, 217, 255, 0.2);
	border-radius: 9999px;
	padding: 0.5rem 1rem;
	margin-bottom: 1.5rem;
}
.badge svg {
	width: 1rem;
	height: 1rem;
	color: #00d9ff;
}
.badge span {
	font-size: 0.875rem;
	color: #00d9ff;
}
.title {
	font-family: 'Poppins', sans-serif;
	font-weight: 800;
	font-size: 2.5rem;
	background: linear-gradient(135deg, #ffffff, #00d9ff, #ffffff);
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	margin-bottom: 1rem;
}
.subtitle {
	font-size: 1.125rem;
	color: #9CA3AF;
	max-width: 48rem;
	margin: 0 auto;
	line-height: 1.6;
}
@media (min-width: 768px) {
	.title {
		font-size: 3.5rem;
	}
}

/* Featured Post */
.featured-card {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1rem;
	overflow: hidden;
	transition: all 0.3s;
	cursor: pointer;
	margin-bottom: 3rem;
}
.featured-card:hover {
	border-color: rgba(0, 217, 255, 0.5);
}
.featured-grid {
	display: grid;
	grid-template-columns: 1fr;
}
@media (min-width: 768px) {
	.featured-grid {
		grid-template-columns: 1fr 1fr;
	}
}
.featured-image {
	height: 16rem;
	background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(128, 0, 255, 0.2));
	position: relative;
	overflow: hidden;
}
.featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.6;
	transition: transform 0.3s;
}
.featured-card:hover .featured-image img {
	transform: scale(1.05);
}
.featured-content {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.featured-badge {
	display: inline-block;
	background: rgba(0, 217, 255, 0.1);
	border: 1px solid rgba(0, 217, 255, 0.2);
	border-radius: 9999px;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	color: #00d9ff;
	width: fit-content;
	margin-bottom: 1rem;
}
.featured-title {
	font-family: 'Poppins', sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: white;
	margin-bottom: 1rem;
	transition: color 0.2s;
}
.featured-card:hover .featured-title {
	color: #00d9ff;
}
.featured-excerpt {
	color: #9CA3AF;
	margin-bottom: 1.5rem;
	line-height: 1.5;
}
.featured-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
	color: #6B7280;
}
.meta-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.meta-item svg {
	width: 1rem;
	height: 1rem;
}
.read-btn {
	background: transparent;
	border: 1px solid rgba(0, 217, 255, 0.5);
	color: #00d9ff;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	font-weight: 500;
	font-size: 0.875rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.2s;
	width: fit-content;
}
.read-btn:hover {
	background: rgba(0, 217, 255, 0.1);
}
.read-btn svg {
	width: 1rem;
	height: 1rem;
	transition: transform 0.2s;
}
.read-btn:hover svg {
	transform: translateX(4px);
}

/* Categories */
.categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-bottom: 3rem;
}
.category-btn {
	padding: 0.5rem 1rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 9999px;
	color: #9CA3AF;
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.2s;
}
.category-btn.active {
	background: rgba(0, 217, 255, 0.1);
	border-color: rgba(0, 217, 255, 0.5);
	color: #00d9ff;
}
.category-btn:hover {
	border-color: rgba(0, 217, 255, 0.3);
}

/* Posts Grid */
.posts-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-bottom: 3rem;
}
@media (min-width: 768px) {
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1024px) {
	.posts-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
.post-card {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1rem;
	padding: 1.5rem;
	transition: all 0.3s;
	cursor: pointer;
}
.post-card:hover {
	border-color: rgba(0, 217, 255, 0.5);
}
.post-icon {
	width: 3rem;
	height: 3rem;
	background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(0, 184, 212, 0.2));
	border-radius: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
	transition: transform 0.2s;
}
.post-card:hover .post-icon {
	transform: scale(1.1);
}
.post-icon svg {
	width: 1.5rem;
	height: 1.5rem;
	color: #00d9ff;
}
.post-category {
	display: inline-block;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 9999px;
	padding: 0.25rem 0.75rem;
	font-size: 0.7rem;
	color: #9CA3AF;
	margin-bottom: 1rem;
}
.post-title {
	font-family: 'Poppins', sans-serif;
	font-size: 1.125rem;
	font-weight: 600;
	color: white;
	margin-bottom: 0.75rem;
	transition: color 0.2s;
}
.post-card:hover .post-title {
	color: #00d9ff;
}
.post-excerpt {
	color: #9CA3AF;
	font-size: 0.875rem;
	margin-bottom: 1rem;
	line-height: 1.5;
}
.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.7rem;
	color: #6B7280;
}
.post-meta-item {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}
.post-meta-item svg {
	width: 0.875rem;
	height: 0.875rem;
}

/* Load More Button */
.load-more {
	text-align: center;
	margin-bottom: 3rem;
}
.load-more-btn {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: white;
	padding: 0.75rem 2rem;
	border-radius: 0.5rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
}
.load-more-btn:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(0, 217, 255, 0.5);
}

/* Newsletter CTA */
.newsletter-card {
	background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(128, 0, 255, 0.1));
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1rem;
	padding: 2rem;
	text-align: center;
}
.newsletter-icon {
	width: 4rem;
	height: 4rem;
	margin: 0 auto 1rem auto;
	color: #00d9ff;
}
.newsletter-title {
	font-family: 'Poppins', sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: white;
	margin-bottom: 0.5rem;
}
.newsletter-text {
	color: #9CA3AF;
	max-width: 32rem;
	margin: 0 auto 1.5rem auto;
}
.newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 24rem;
	margin: 0 auto;
}
@media (min-width: 640px) {
	.newsletter-form {
		flex-direction: row;
	}
}
.newsletter-input {
	flex: 1;
	padding: 0.75rem 1rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.5rem;
	color: white;
	font-family: inherit;
}
.newsletter-input:focus {
	outline: none;
	border-color: rgba(0, 217, 255, 0.5);
}
.newsletter-btn {
	background: linear-gradient(135deg, #00d9ff, #00b8d4);
	color: white;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}
.newsletter-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
}

/* Animations */
@keyframes fadeUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}
.animate-header { opacity: 0; animation: fadeUp 0.6s ease-out forwards; }
.animate-featured { opacity: 0; animation: fadeUp 0.6s ease-out 0.1s forwards; }
.animate-post { opacity: 0; animation: fadeUp 0.6s ease-out forwards; }
.animate-newsletter { opacity: 0; animation: fadeUp 0.6s ease-out 0.2s forwards; }
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }
.delay-6 { animation-delay: 0.3s; }