/*
Theme Name: DevOps Pro
Description: Professional WordPress theme for DevOps engineers with sidebar, social media, and modern design
Version: 1.1.0
Author: DevOps Diary
*/

/* === VARIABLES === */
:root {
	/* Palette */
	--primary: #3b82f6;
	/* Bright Blue */
	--primary-dark: #2563eb;
	/* Deep Blue */
	--accent: #22c55e;
	/* Success Green (Terminal style) */
	--accent-glow: rgba(34, 197, 94, 0.4);

	--dark-bg: #0f172a;
	/* Slate 900 */
	--card-bg: #1e293b;
	/* Slate 800 */
	--card-bg-hover: #334155;
	/* Slate 700 */

	--text-main: #f8fafc;
	/* Slate 50 */
	--text-muted: #94a3b8;
	/* Slate 400 */

	--border-color: rgba(255, 255, 255, 0.1);
	--border-hover: rgba(59, 130, 246, 0.5);

	--code-bg: #020617;
	/* Almost Black */

	--gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
	--gradient-hover: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
	--glass: rgba(30, 41, 59, 0.7);
	--glass-border: rgba(255, 255, 255, 0.05);

	/* Typography */
	--font-heading: 'Outfit', sans-serif;
	--font-body: 'Inter', sans-serif;
	--font-mono: 'Fira Code', monospace;
}

/* === RESET & BASE === */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--font-body);
	line-height: 1.7;
	color: var(--text-main);
	background-color: var(--dark-bg);
	background-image:
		radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
		radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--primary);
	text-decoration: none;
	transition: all 0.2s ease;
}

a:hover {
	color: #60a5fa;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	color: #fff;
	line-height: 1.2;
	margin-bottom: 1rem;
	font-weight: 700;
}

/* === FLOATING TECH ICONS (Background) === */
.floating-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
	opacity: 0.05;
}

.float-icon {
	position: absolute;
	font-size: 5rem;
	filter: blur(1px);
	animation: float 25s infinite linear;
}

@keyframes float {
	0% {
		transform: translate(0, 0) rotate(0deg);
	}

	25% {
		transform: translate(50px, -50px) rotate(10deg);
	}

	50% {
		transform: translate(0, 50px) rotate(-10deg);
	}

	75% {
		transform: translate(-50px, -20px) rotate(5deg);
	}

	100% {
		transform: translate(0, 0) rotate(0deg);
	}
}

/* === LAYOUT UTILS === */
.site-wrapper {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

/* === HEADER === */
.site-header {
	background: rgba(15, 23, 42, 0.85);
	/* Glass dark */
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 80px;
}

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

.site-title {
	font-size: 1.6rem;
	font-weight: 800;
	margin: 0;
	letter-spacing: -0.02em;
}

.site-title a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: #fff;
	text-decoration: none;
}

.site-title .icon {
	font-size: 1.6rem;
}

.site-description {
	display: none;
	/* Hide tagline in header to keep it clean */
}

/* Navigation */
.main-nav ul {
	display: flex;
	list-style: none;
	gap: 2rem;
	margin: 0;
	padding: 0;
	align-items: center;
}

.main-nav a {
	color: var(--text-muted);
	font-weight: 500;
	font-size: 0.95rem;
	padding: 0.5rem 0;
	position: relative;
}

.main-nav a:not(.calendly-btn)::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 0;
	background: var(--primary);
	transition: width 0.3s ease;
}

.main-nav a:not(.calendly-btn):hover {
	color: #fff;
}

.main-nav a:not(.calendly-btn):hover::after {
	width: 100%;
}

/* CTA Button */
.main-nav a.calendly-btn {
	background: var(--gradient-primary);
	color: #fff;
	padding: 0.6rem 1.25rem;
	border-radius: 8px;
	font-weight: 600;
	transition: transform 0.2s, box-shadow 0.2s;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.main-nav a.calendly-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
	color: #fff;
	background: var(--gradient-hover);
}

/* === MAIN CONTENT === */
.site-main {
	padding: 3rem 0;
	flex: 1;
}

.content-area {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 3rem;
	align-items: start;
}

/* === POST CARDS === */
.posts-list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.post-card {
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
	border-color: var(--primary);
}

.post-thumbnail {
	width: 100%;
	height: 280px;
	object-fit: cover;
	display: block;
	transition: opacity 0.3s;
}

.post-card:hover .post-thumbnail {
	opacity: 0.9;
}

.post-content {
	padding: 2rem;
}

.post-meta {
	display: flex;
	gap: 1rem;
	align-items: center;
	margin-bottom: 0.75rem;
	font-size: 0.85rem;
}

.post-date {
	color: var(--accent);
	font-family: var(--font-mono);
	background: rgba(34, 197, 94, 0.1);
	padding: 0.2rem 0.6rem;
	border-radius: 4px;
}

.post-title {
	font-size: 1.75rem;
	margin-bottom: 1rem;
}

.post-title a {
	color: #fff;
}

.post-title a:hover {
	color: var(--primary);
}

.post-excerpt {
	color: var(--text-muted);
	font-size: 1rem;
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.read-more {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--primary);
	font-weight: 600;
	font-size: 0.95rem;
	padding-bottom: 2px;
	border-bottom: 2px solid transparent;
}

.read-more:hover {
	color: var(--primary-dark);
	border-bottom-color: var(--primary-dark);
}

/* Tags & Categories */
.post-categories {
	margin-top: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.post-categories a {
	background: rgba(255, 255, 255, 0.05);
	color: var(--text-muted);
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.8rem;
	border: 1px solid transparent;
}

.post-categories a:hover {
	background: rgba(59, 130, 246, 0.15);
	color: var(--primary);
	border-color: rgba(59, 130, 246, 0.3);
}

/* === SIDEBAR === */
.sidebar {
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 2rem;
	height: fit-content;
}

.widget {
	margin-bottom: 2.5rem;
}

.widget:last-child {
	margin-bottom: 0;
}

.widget-title {
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 0.75rem;
	margin-bottom: 1.25rem;
}

.widget ul {
	list-style: none;
}

.widget li {
	margin-bottom: 0.75rem;
}

.widget a {
	color: var(--text-main);
	display: block;
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
	transition: background 0.2s;
}

.widget a:hover {
	background: rgba(255, 255, 255, 0.05);
	color: var(--primary);
	padding-left: 1rem;
}

/* === AUTHOR BOX === */
.author-box {
	text-align: center;
}

.author-avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	border: 3px solid var(--primary);
	padding: 3px;
	background: transparent;
	margin: 0 auto 1rem;
	object-fit: cover;
}

.author-name {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0.5rem 0;
	color: #fff;
}

.author-bio {
	color: var(--text-muted);
	font-size: 0.9rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

/* === SOCIAL MEDIA === */
.social-links {
	display: flex;
	gap: 1rem;
	justify-content: center;
	/* Center in author box */
	margin-top: 1rem;
}

.social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.05);
	/* subtle bg */
	color: #fff;
	border-radius: 50%;
	border: 1px solid var(--border-color);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
	background: var(--gradient-primary);
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
	border-color: transparent;
}

/* === FOOTER === */
.site-footer {
	background: #020617;
	border-top: 1px solid var(--border-color);
	padding: 3rem 0;
	margin-top: auto;
	text-align: center;
	color: var(--text-muted);
}

.footer-content {
	font-size: 0.9rem;
}

/* === CODE BLOCKS === */
pre,
code {
	font-family: var(--font-mono);
}

code {
	background: rgba(255, 255, 255, 0.1);
	padding: 0.2em 0.4em;
	border-radius: 4px;
	font-size: 0.85em;
	color: #e2e8f0;
}

pre {
	background: #020617 !important;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 1.5rem;
	margin: 1.5rem 0;
	overflow-x: auto;
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

pre code {
	background: none;
	padding: 0;
	color: inherit;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
	.content-area {
		grid-template-columns: 1fr;
	}

	.sidebar {
		margin-top: 2rem;
	}
}

@media (max-width: 768px) {
	.header-inner {
		flex-direction: column;
		height: auto;
		padding: 1rem 0;
		gap: 1rem;
	}

	.main-nav ul {
		flex-direction: column;
		gap: 0.75rem;
	}

	.post-title {
		font-size: 1.5rem;
	}
}