/*
 * IGNA Legacy - Enhanced Styling
 * Making the site look AMAZING with IGNA branding
 */

/* ========================================
   HEADER FIXES
======================================== */
.site-header {
	background: linear-gradient(135deg, #FFFFFF 0%, #FEF9E1 100%);
	border-bottom: 3px solid #FD9800;
	box-shadow: 0 2px 10px rgba(253, 152, 0, 0.1);
}

.site-header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 2rem;
	max-width: 1280px;
}

.site-branding {
	flex: 0 0 auto;
}

.site-title a {
	color: #0F172A;
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	transition: all 0.3s ease;
}

.site-title a:hover {
	color: #FD9800;
	text-decoration: none;
	transform: scale(1.02);
}

.site-description {
	color: #64748B;
	font-size: 0.875rem;
	margin: 0.25rem 0 0 0;
	font-style: italic;
}

/* Navigation */
.main-navigation {
	display: flex;
	align-items: center;
	flex: 1;
	justify-content: flex-end;
}

.main-navigation ul {
	display: flex;
	list-style: none;
	gap: 2rem;
	margin: 0;
	padding: 0;
}

.main-navigation li {
	margin: 0;
}

.main-navigation a {
	color: #454F5E;
	font-weight: 500;
	font-size: 1rem;
	padding: 0.5rem 0;
	border-bottom: 2px solid transparent;
	transition: all 0.3s ease;
}

.main-navigation a:hover {
	color: #FD9800;
	border-bottom-color: #FD9800;
	text-decoration: none;
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
	color: #FD9800;
	border-bottom-color: #FD9800;
}

/* ========================================
   BLOG CARDS - MAKE THEM BEAUTIFUL
======================================== */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 2rem;
	margin: 2rem 0;
}

.post-card {
	background: #FFFFFF;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	border: 1px solid rgba(253, 152, 0, 0.1);
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(253, 152, 0, 0.15);
	border-color: #FD9800;
}

.post-card-image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16/9;
}

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

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

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

.post-card .entry-title {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
	line-height: 1.3;
}

.post-card .entry-title a {
	color: #0F172A;
	text-decoration: none;
	transition: color 0.3s ease;
}

.post-card .entry-title a:hover {
	color: #FD9800;
}

.post-card .entry-summary {
	color: #454F5E;
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 1rem;
}

.post-card .read-more {
	display: inline-flex;
	align-items: center;
	background: #FD9800;
	color: #FFFFFF;
	padding: 0.625rem 1.5rem;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
	transition: all 0.3s ease;
}

.post-card .read-more:hover {
	background: #E98C00;
	transform: translateX(4px);
}

/* ========================================
   CATEGORY BADGES WITH ICONS
======================================== */
.post-card .entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1rem;
	font-size: 0.875rem;
	color: #64748B;
}

/* Add category icons based on categories */
.category-technology .entry-title::before,
.category-tech .entry-title::before {
	content: '💻 ';
	margin-right: 0.5rem;
}

.category-automotive .entry-title::before,
.category-off-road .entry-title::before {
	content: '🏕️ ';
	margin-right: 0.5rem;
}

.category-automation-tools .entry-title::before,
.category-automation .entry-title::before {
	content: '🔧 ';
	margin-right: 0.5rem;
}

.category-gadgets .entry-title::before,
.category-reviews .entry-title::before {
	content: '⚡ ';
	margin-right: 0.5rem;
}

/* ========================================
   SINGLE POST STYLING
======================================== */
.single-post .entry-header {
	text-align: center;
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 2px solid #FEF9E1;
}

.single-post .entry-title {
	font-size: 2.5rem;
	color: #0F172A;
	margin-bottom: 1rem;
	line-height: 1.2;
}

.single-post .entry-meta {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
	color: #64748B;
	font-size: 0.95rem;
}

.single-post .entry-meta a {
	color: #FD9800;
	font-weight: 600;
}

.single-post .post-thumbnail {
	margin-bottom: 2rem;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.single-post .entry-content {
	font-size: 1.125rem;
	line-height: 1.8;
	color: #454F5E;
}

.single-post .entry-content h2 {
	color: #0F172A;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid #FD9800;
}

.single-post .entry-content h3 {
	color: #0F172A;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.single-post .entry-content a {
	color: #FD9800;
	text-decoration: underline;
	text-decoration-color: rgba(253, 152, 0, 0.3);
	text-underline-offset: 3px;
	transition: all 0.3s ease;
}

.single-post .entry-content a:hover {
	color: #E98C00;
	text-decoration-color: #E98C00;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
	margin: 1.5rem 0;
	padding-left: 2rem;
}

.single-post .entry-content li {
	margin-bottom: 0.5rem;
}

.single-post .entry-content blockquote {
	background: #FEF9E1;
	border-left: 4px solid #FD9800;
	padding: 1.5rem;
	margin: 2rem 0;
	border-radius: 4px;
	font-style: italic;
}

.single-post .entry-content code {
	background: #FEF9E1;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.9em;
	color: #E98C00;
}

.single-post .entry-content pre {
	background: #0F172A;
	color: #FEF9E1;
	padding: 1.5rem;
	border-radius: 8px;
	overflow-x: auto;
	margin: 1.5rem 0;
}

.single-post .entry-content pre code {
	background: none;
	color: inherit;
	padding: 0;
}

/* ========================================
   FOOTER STYLING
======================================== */
.site-footer {
	background: linear-gradient(135deg, #0F172A 0%, #1A1F2E 100%);
	color: #FEF9E1;
	padding: 3rem 0 1.5rem;
	border-top: 4px solid #FD9800;
}

.site-footer a {
	color: #FD9800;
	transition: all 0.3s ease;
}

.site-footer a:hover {
	color: #FFA91A;
	text-decoration: none;
}

.site-info {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(253, 152, 0, 0.2);
	font-size: 0.875rem;
	color: #94A3B8;
}

/* ========================================
   BUTTONS & FORMS
======================================== */
.btn,
button[type="submit"],
input[type="submit"] {
	background: #FD9800;
	color: #FFFFFF;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
}

.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	background: #E98C00;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(253, 152, 0, 0.3);
	color: #FFFFFF;
}

/* ========================================
   MOBILE RESPONSIVE
======================================== */
@media (max-width: 768px) {
	.site-header .container {
		flex-direction: column;
		gap: 1rem;
		padding: 1rem;
	}
	
	.main-navigation {
		width: 100%;
		justify-content: center;
	}
	
	.main-navigation ul {
		flex-wrap: wrap;
		justify-content: center;
		gap: 1rem;
	}
	
	.posts-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
	.single-post .entry-title {
		font-size: 1.875rem;
	}
	
	.single-post .entry-content {
		font-size: 1rem;
	}
}

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

.post-card {
	animation: fadeIn 0.5s ease;
}

/* ========================================
   ACCENT ELEMENTS
======================================== */
.container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #FD9800 0%, #FFA91A 50%, #FD9800 100%);
	background-size: 200% 100%;
	animation: shimmer 3s infinite;
}

@keyframes shimmer {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

/* ========================================
   READING TIME BADGE
======================================== */
.reading-time {
	display: inline-flex;
	align-items: center;
	background: #FEF9E1;
	color: #E98C00;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
}

.reading-time::before {
	content: '⏱️ ';
	margin-right: 0.25rem;
}

/* ========================================
   TAG STYLING
======================================== */
.tags-links {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #FEF9E1;
}

.tags-links a {
	display: inline-block;
	background: #FEF9E1;
	color: #E98C00;
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-size: 0.875rem;
	margin: 0.25rem;
	text-decoration: none;
	transition: all 0.3s ease;
}

.tags-links a:hover {
	background: #FD9800;
	color: #FFFFFF;
	transform: translateY(-2px);
}

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

.pagination a,
.pagination span {
	padding: 0.75rem 1.25rem;
	background: #FFFFFF;
	color: #454F5E;
	border: 2px solid #FEF9E1;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.pagination a:hover {
	background: #FD9800;
	color: #FFFFFF;
	border-color: #FD9800;
}

.pagination .current {
	background: #FD9800;
	color: #FFFFFF;
	border-color: #FD9800;
}
