/* ==========================================
   BLOG HERO - hero section bloga
   ========================================== */
.blog-hero {
	padding: 12rem 5% 5rem 5%;
	background: linear-gradient(180deg, var(--darker) 0%, rgba(10, 10, 15, 0.95) 50%, var(--dark) 100%);
	position: relative;
	overflow: hidden;
	text-align: center;
}

/* Gradient mesh background */
.blog-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		radial-gradient(ellipse at 20% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
		radial-gradient(ellipse at 80% 20%, rgba(139, 0, 255, 0.15) 0%, transparent 50%),
		radial-gradient(ellipse at 50% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
	animation: meshMove 15s ease-in-out infinite;
}

@keyframes meshMove {
	0%, 100% { opacity: 0.8; }
	50% { opacity: 1; }
}

/* Top glowing line */
.blog-hero::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--violet) 50%, var(--cyan) 80%, transparent);
	box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
	animation: lineGlow 3s ease-in-out infinite;
}

@keyframes lineGlow {
	0%, 100% { opacity: 0.5; transform: scaleX(1); }
	50% { opacity: 1; transform: scaleX(1.02); }
}

/* Animated stars */
.blog-stars {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.blog-star {
	position: absolute;
	background: white;
	border-radius: 50%;
	animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
	0%, 100% { opacity: 0.3; transform: scale(1); }
	50% { opacity: 1; transform: scale(1.2); }
}

/* Cosmic glows */
.hero-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(120px);
	opacity: 0.25;
	pointer-events: none;
}

.hero-glow-1 {
	width: 600px;
	height: 600px;
	background: var(--cyan);
	top: -300px;
	left: 15%;
	animation: heroFloat 10s ease-in-out infinite;
}

.hero-glow-2 {
	width: 550px;
	height: 550px;
	background: var(--violet);
	top: -250px;
	right: 15%;
	animation: heroFloat 12s ease-in-out infinite reverse;
}

.hero-glow-3 {
	width: 500px;
	height: 500px;
	background: var(--blue);
	bottom: -200px;
	left: 50%;
	transform: translateX(-50%);
	animation: heroFloat 14s ease-in-out infinite;
}

.hero-glow-4 {
	width: 400px;
	height: 400px;
	background: var(--magenta);
	top: 50%;
	left: -100px;
	animation: heroFloat 16s ease-in-out infinite reverse;
}

@keyframes heroFloat {
	0%, 100% { transform: translateY(0) scale(1); }
	50% { transform: translateY(-40px) scale(1.15); }
}

/* Floating particles */
.blog-particles {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.particle {
	position: absolute;
	width: 4px;
	height: 4px;
	background: var(--cyan);
	border-radius: 50%;
	opacity: 0.6;
	animation: particleFloat 20s linear infinite;
	box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

@keyframes particleFloat {
	0% {
		transform: translateY(100vh) translateX(0) scale(0);
		opacity: 0;
	}
	10% { opacity: 0.6; }
	90% { opacity: 0.6; }
	100% {
		transform: translateY(-100px) translateX(100px) scale(1);
		opacity: 0;
	}
}

.blog-hero-content {
	max-width: 800px;
	margin: 0 auto;
	position: relative;
	z-index: 10;
}

.blog-hero-badge {
	display: inline-block;
	background: rgba(0, 212, 255, 0.15);
	border: 2px solid rgba(0, 212, 255, 0.4);
	padding: 0.5rem 1.5rem;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 2px;
	margin-bottom: 2rem;
	color: var(--cyan);
	box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
	animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
	0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
	50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.6); }
}

.blog-hero-title {
	font-size: 5rem;
	font-weight: 900;
	line-height: 1.1;
	margin-bottom: 1.5rem;
	background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 50%, var(--violet) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
	0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3)); }
	50% { filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.5)); }
}

.blog-hero-subtitle {
	font-size: 1.3rem;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.6;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   BLOG CONTENT SECTION
   ========================================== */
.blog-content-section {
	padding: 5rem 5%;
	background: var(--dark);
}

.blog-content-container {
	max-width: 1400px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 350px;
	gap: 4rem;
}

/* ==========================================
   BLOG POSTS LIST - lewa kolumna
   ========================================== */
.blog-posts-list {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

/* ==========================================
   FEATURED POST - wyróżniony post
   ========================================== */
.featured-post {
	background: rgba(255, 255, 255, 0.02);
	border: 2px solid rgba(0, 212, 255, 0.2);
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.4s ease;
	position: relative;
	min-height: 550px;
	display: flex;
	flex-direction: column;
}

.featured-post:hover {
	border-color: var(--cyan);
	transform: translateY(-5px);
	box-shadow: 0 30px 80px rgba(0, 212, 255, 0.3);
}

.featured-post-image {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
}

.featured-post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.featured-post:hover .featured-post-image img {
	transform: scale(1.05);
}

.featured-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(180deg, 
		rgba(10, 10, 15, 0) 0%, 
		rgba(10, 10, 15, 0.4) 40%,
		rgba(10, 10, 15, 0.85) 70%,
		rgba(10, 10, 15, 0.98) 100%
	);
}

.featured-content {
	position: relative;
	z-index: 2;
	margin-top: auto;
	padding: 3rem;
}

.featured-badge {
	display: inline-block;
	background: var(--cyan);
	color: var(--dark);
	padding: 0.5rem 1.2rem;
	border-radius: 15px;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	box-shadow: 0 4px 20px rgba(0, 212, 255, 0.6);
	margin-bottom: 1rem;
}

.featured-meta {
	display: flex;
	gap: 2rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 1.5rem;
}

.featured-title {
	font-size: 2.8rem;
	font-weight: 900;
	line-height: 1.2;
	margin-bottom: 1.5rem;
}

.featured-title a {
	color: #fff;
	text-decoration: none;
	transition: all 0.3s;
}

.featured-title a:hover {
	color: var(--cyan);
}

.featured-excerpt {
	font-size: 1.1rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 2rem;
	max-width: 700px;
}

.featured-btn {
	display: inline-block;
	padding: 1rem 2.5rem;
	background: linear-gradient(135deg, var(--cyan), var(--blue));
	color: var(--dark);
	text-decoration: none;
	border-radius: 10px;
	font-weight: 800;
	font-size: 0.95rem;
	letter-spacing: 1px;
	transition: all 0.3s;
}

.featured-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

/* ==========================================
   POSTS SEPARATOR - separator między postami
   ========================================== */
.posts-separator {
	text-align: center;
	margin: 3rem 0;
	position: relative;
}

.posts-separator::before,
.posts-separator::after {
	content: '';
	position: absolute;
	top: 50%;
	width: 40%;
	height: 1px;
	background: linear-gradient(to right, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.posts-separator::before {
	left: 0;
}

.posts-separator::after {
	right: 0;
}

.posts-separator span {
	display: inline-block;
	padding: 0.5rem 2rem;
	background: rgba(0, 212, 255, 0.1);
	border: 1px solid rgba(0, 212, 255, 0.2);
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 2px;
	color: var(--cyan);
}

/* ==========================================
   BLOG CARDS - zwykłe posty
   ========================================== */
.blog-card {
	background: rgba(255, 255, 255, 0.02);
	border: 2px solid rgba(0, 212, 255, 0.1);
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.4s ease;
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 0;
	min-height: 280px;
}

.blog-card:hover {
	border-color: var(--cyan);
	transform: translateY(-5px);
	box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.blog-card-image {
	position: relative;
	height: 100%;
	overflow: hidden;
}

.blog-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img {
	transform: scale(1.1);
}

.blog-card-badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background: var(--cyan);
	color: var(--dark);
	padding: 0.4rem 1rem;
	border-radius: 15px;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.blog-card-content {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.blog-card-meta {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 1rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.5);
}

.blog-card-meta span {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.blog-card-title {
	font-size: 1.5rem;
	font-weight: 800;
	margin-bottom: 1rem;
	line-height: 1.3;
}

.blog-card-title a {
	color: #fff;
	text-decoration: none;
	transition: color 0.3s;
}

.blog-card-title a:hover {
	color: var(--cyan);
}

.blog-card-excerpt {
	font-size: 0.95rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 1.5rem;
}

.blog-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.read-more {
	color: var(--cyan);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.3s;
}

.read-more:hover {
	gap: 1rem;
}

.blog-card-tags {
	display: flex;
	gap: 0.5rem;
}

.mini-tag {
	background: rgba(0, 212, 255, 0.1);
	border: 1px solid rgba(0, 212, 255, 0.2);
	padding: 0.3rem 0.8rem;
	border-radius: 12px;
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.6);
}

/* Reactions Preview */
.card-reactions-preview {
	display: flex;
	gap: 0.8rem;
	align-items: center;
	padding-top: 1.5rem;
	margin-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.reaction-preview {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.7);
	padding: 0.3rem 0.6rem;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 10px;
	transition: all 0.3s;
}

.reaction-preview:hover {
	background: rgba(0, 212, 255, 0.1);
	color: var(--cyan);
	transform: scale(1.1);
}

/* ==========================================
   PAGINATION - paginacja
   ========================================== */
.pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 4rem;
}

.page-link {
	width: 45px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.02);
	border: 2px solid rgba(0, 212, 255, 0.2);
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-weight: 700;
	transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
	background: rgba(0, 212, 255, 0.1);
	border-color: var(--cyan);
	color: var(--cyan);
}

/* ==========================================
   SIDEBAR - prawa kolumna
   ========================================== */
.blog-sidebar {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.sidebar-widget {
	background: rgba(255, 255, 255, 0.02);
	border: 2px solid rgba(0, 212, 255, 0.1);
	border-radius: 15px;
	padding: 2rem;
}

.widget-title {
	font-size: 1.2rem;
	font-weight: 800;
	margin-bottom: 1.5rem;
	color: var(--cyan);
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Search Widget */
.search-form {
	position: relative;
}

.search-input {
	width: 100%;
	padding: 1rem 3rem 1rem 1rem;
	background: rgba(255, 255, 255, 0.05);
	border: 2px solid rgba(0, 212, 255, 0.2);
	border-radius: 10px;
	color: #fff;
	font-size: 0.95rem;
	outline: none;
	transition: all 0.3s;
}

.search-input:focus {
	border-color: var(--cyan);
	background: rgba(255, 255, 255, 0.08);
}

.search-btn {
	position: absolute;
	right: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--cyan);
	font-size: 1.2rem;
	cursor: pointer;
	padding: 0.5rem;
}

/* Categories Widget */
.categories-list {
	list-style: none;
}

.category-item {
	margin-bottom: 1rem;
}

.category-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.8rem;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: all 0.3s;
}

.category-link:hover {
	background: rgba(0, 212, 255, 0.1);
	color: var(--cyan);
	transform: translateX(5px);
}

.category-count {
	background: rgba(0, 212, 255, 0.2);
	color: var(--cyan);
	padding: 0.2rem 0.6rem;
	border-radius: 10px;
	font-size: 0.8rem;
	font-weight: 700;
}

/* Popular Posts Widget */
.popular-posts-list {
	list-style: none;
}

.popular-post-item {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.popular-post-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.popular-post-link {
	text-decoration: none;
	color: #fff;
	display: block;
	transition: all 0.3s;
}

.popular-post-link:hover .popular-post-title {
	color: var(--cyan);
}

.popular-post-title {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 0.5rem;
	transition: color 0.3s;
}

.popular-post-date {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
}

/* Newsletter Widget */
.newsletter-widget {
	background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(139, 0, 255, 0.1));
	border: 2px solid rgba(0, 212, 255, 0.2);
}

.newsletter-widget-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.newsletter-widget-input {
	padding: 0.8rem 1rem;
	background: rgba(0, 0, 0, 0.3);
	border: 2px solid rgba(0, 212, 255, 0.3);
	border-radius: 8px;
	color: #fff;
	font-size: 0.9rem;
	outline: none;
}

.newsletter-widget-input:focus {
	border-color: var(--cyan);
}

/* ==========================================
   RESPONSIVE - mobile
   ========================================== */
@media (max-width: 1200px) {
	.blog-content-container {
		grid-template-columns: 1fr;
	}

	.blog-card {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.blog-card-image {
		height: 300px;
	}
}

@media (max-width: 768px) {
	.blog-hero {
		padding: 10rem 5% 4rem 5%;
	}

	.blog-hero-title {
		font-size: 2.5rem;
	}

	.blog-hero-subtitle {
		font-size: 1.1rem;
	}

	.featured-post {
		min-height: auto;
	}

	.featured-post-image {
		position: relative;
		height: 300px;
	}

	.featured-content {
		padding: 2rem 1.5rem;
	}

	.featured-title {
		font-size: 1.8rem;
	}

	.featured-excerpt {
		font-size: 1rem;
	}

	.blog-card-content {
		padding: 1.5rem;
	}

	.blog-card-title {
		font-size: 1.4rem;
	}
}