/**
 * Operatorpod Theme - Main Global Stylesheet
 * Modern Cloud-Native DevOps / Kubernetes Design System
 *
 * @package Operatorpod
 */

:root {
	--op-color-bg: #0b1120;
	--op-color-surface: #0f172a;
	--op-color-surface-raised: #1e293b;
	--op-color-surface-hover: #273549;
	--op-color-border: #334155;
	--op-color-border-subtle: rgba(255, 255, 255, 0.08);
	--op-color-primary: #326ce5;
	--op-color-primary-hover: #2557be;
	--op-color-cyan: #06b6d4;
	--op-color-sky: #38bdf8;
	--op-color-success: #10b981;
	--op-color-warning: #f59e0b;
	--op-color-danger: #ef4444;
	--op-color-text-main: #f8fafc;
	--op-color-text-body: #cbd5e1;
	--op-color-text-muted: #94a3b8;
	--op-color-text-subtle: #64748b;
	--op-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--op-font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
	--op-container-width: 1240px;
	--op-content-width: 840px;
	--op-radius: 8px;
	--op-radius-lg: 12px;
	--op-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
	--op-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
	--op-shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
	--op-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Document Setup */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	font-family: var(--op-font-sans);
	font-size: 16px;
	line-height: 1.6;
	background-color: var(--op-color-bg);
	color: var(--op-color-text-body);
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--op-color-bg);
	color: var(--op-color-text-body);
	overflow-x: hidden;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Accessibility: Skip to Content */
.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	background: var(--op-color-primary);
	color: #ffffff;
	padding: 8px 16px;
	border-radius: var(--op-radius);
	z-index: 100000;
	text-decoration: none;
	font-weight: 600;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 16px;
	outline: 2px solid var(--op-color-sky);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Focus Rings */
:focus-visible {
	outline: 2px solid var(--op-color-sky);
	outline-offset: 2px;
}

/* Containers */
.op-container {
	width: 100%;
	max-width: var(--op-container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.op-content-container {
	max-width: var(--op-content-width);
	margin-left: auto;
	margin-right: auto;
	padding: 2.5rem 1.5rem;
}

.op-main-site-content {
	flex: 1 0 auto;
}

.op-w-full {
	width: 100%;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
	color: var(--op-color-text-main);
	font-weight: 700;
	line-height: 1.25;
	margin-top: 0;
}

p {
	margin-top: 0;
	margin-bottom: 1.25rem;
}

a {
	color: var(--op-color-sky);
	text-decoration: none;
	transition: var(--op-transition);
}

a:hover {
	color: #60a5fa;
}

code, pre, kbd, samp {
	font-family: var(--op-font-mono);
}

/* Section Header Utility */
.op-section-header {
	text-align: center;
	max-width: 680px;
	margin: 0 auto 3rem;
}

.op-section-title {
	font-size: 2.25rem;
	font-weight: 800;
	margin: 0.75rem 0 0.75rem;
	letter-spacing: -0.02em;
}

.op-section-desc {
	font-size: 1.1rem;
	color: var(--op-color-text-muted);
	margin: 0;
	line-height: 1.55;
}

/* Hero Section */
.op-hero-section {
	padding: 5rem 0 4rem;
	background: radial-gradient(circle at 50% 0%, rgba(50, 108, 229, 0.15) 0%, rgba(11, 17, 32, 0) 70%);
	border-bottom: 1px solid var(--op-color-border-subtle);
}

.op-hero-grid {
	max-width: var(--op-container-width);
	margin: 0 auto;
	padding: 0 1.5rem;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 3rem;
	align-items: center;
}

@media (max-width: 960px) {
	.op-hero-grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
	.op-hero-section {
		padding: 3rem 0 2.5rem;
	}
}

.op-hero-badge-row {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
}

.op-hero-title {
	font-size: 3rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--op-color-text-main);
	margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
	.op-hero-title {
		font-size: 2.15rem;
	}
}

.op-hero-subtitle {
	font-size: 1.15rem;
	color: var(--op-color-text-muted);
	line-height: 1.6;
	margin-bottom: 2rem;
}

.op-hero-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 2.5rem;
}

.op-hero-metrics-list {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
	border-top: 1px solid var(--op-color-border-subtle);
	padding-top: 1.5rem;
}

.op-hero-metric {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: #94a3b8;
}

/* Terminal Window Visual */
.op-terminal-window {
	background: #020617;
	border: 1px solid var(--op-color-border);
	border-radius: var(--op-radius-lg);
	overflow: hidden;
	box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.7);
}

.op-terminal-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	background: #0f172a;
	border-bottom: 1px solid var(--op-color-border);
}

.op-terminal-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.op-dot-red { background: #ef4444; }
.op-dot-yellow { background: #f59e0b; }
.op-dot-green { background: #10b981; }

.op-terminal-title {
	font-size: 0.75rem;
	font-family: var(--op-font-mono);
	color: var(--op-color-text-muted);
	margin-left: 0.5rem;
}

.op-terminal-body {
	padding: 1.25rem;
	font-family: var(--op-font-mono);
	font-size: 0.8125rem;
	line-height: 1.65;
	overflow-x: auto;
}

.op-terminal-line {
	margin-bottom: 0.35rem;
}

.op-t-prompt { color: var(--op-color-cyan); font-weight: 700; margin-right: 0.4rem; }
.op-t-cmd { color: #ffffff; }
.op-t-muted { color: #64748b; }
.op-t-cyan { color: var(--op-color-sky); }
.op-t-green { color: #34d399; }
.op-t-yellow { color: #fbbf24; }
.op-t-danger { color: #f87171; }

/* Sections */
.op-section-tools-grid {
	padding: 5rem 0;
	border-bottom: 1px solid var(--op-color-border-subtle);
}

.op-section-concept,
.op-section-workflow,
.op-section-features {
	padding: 5rem 0;
	border-bottom: 1px solid var(--op-color-border-subtle);
}

.op-section-latest-posts {
	padding: 5rem 0;
}

/* Concept Cards */
.op-concept-grid {
	max-width: var(--op-container-width);
	margin: 0 auto;
	padding: 0 1.5rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

@media (max-width: 840px) {
	.op-concept-grid {
		grid-template-columns: 1fr;
	}
}

.op-concept-card {
	background: var(--op-color-surface);
	border: 1px solid var(--op-color-border);
	border-radius: var(--op-radius-lg);
	padding: 2rem 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.op-concept-icon {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: rgba(50, 108, 229, 0.1);
	border: 1px solid rgba(50, 108, 229, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.5rem;
}

.op-concept-card-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0;
	color: var(--op-color-text-main);
}

.op-concept-card-text {
	font-size: 0.925rem;
	color: var(--op-color-text-muted);
	line-height: 1.6;
	margin: 0;
}

.op-concept-card-text code {
	color: var(--op-color-sky);
	background: rgba(56, 189, 248, 0.1);
	padding: 0.15rem 0.35rem;
	border-radius: 3px;
}

/* Workflow Timeline */
.op-workflow-timeline {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.op-workflow-step {
	display: flex;
	gap: 1.75rem;
	background: var(--op-color-surface);
	border: 1px solid var(--op-color-border);
	border-radius: var(--op-radius-lg);
	padding: 1.75rem;
	align-items: flex-start;
}

@media (max-width: 600px) {
	.op-workflow-step {
		flex-direction: column;
		gap: 0.75rem;
	}
}

.op-step-number {
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--op-color-cyan);
	line-height: 1;
	background: rgba(6, 182, 212, 0.1);
	border: 1px solid rgba(6, 182, 212, 0.2);
	border-radius: 8px;
	padding: 0.75rem 1rem;
	flex-shrink: 0;
}

.op-step-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	color: var(--op-color-text-main);
}

.op-step-desc {
	font-size: 0.95rem;
	color: var(--op-color-text-muted);
	line-height: 1.6;
	margin: 0;
}

/* Features Grid */
.op-features-grid {
	max-width: var(--op-container-width);
	margin: 0 auto;
	padding: 0 1.5rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

@media (max-width: 840px) {
	.op-features-grid {
		grid-template-columns: 1fr;
	}
}

.op-feature-box {
	background: var(--op-color-surface);
	border: 1px solid var(--op-color-border);
	border-radius: var(--op-radius-lg);
	padding: 2rem 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.op-feature-box-icon {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: rgba(6, 182, 212, 0.1);
	border: 1px solid rgba(6, 182, 212, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.5rem;
}

.op-feature-box-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0;
	color: var(--op-color-text-main);
}

.op-feature-box-text {
	font-size: 0.925rem;
	color: var(--op-color-text-muted);
	line-height: 1.6;
	margin: 0;
}

/* Blog Posts Grid */
.op-posts-grid {
	max-width: var(--op-container-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.op-posts-cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 1.75rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.op-post-card {
	background: var(--op-color-surface);
	border: 1px solid var(--op-color-border);
	border-radius: var(--op-radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: var(--op-transition);
}

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

.op-post-card-body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.op-post-card-category {
	margin-bottom: 0.75rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--op-color-cyan);
}

.op-post-card-category a {
	color: var(--op-color-cyan);
}

.op-post-card-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	line-height: 1.35;
}

.op-post-card-title a {
	color: var(--op-color-text-main);
}

.op-post-card-title a:hover {
	color: var(--op-color-sky);
}

.op-post-card-meta {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid var(--op-color-border-subtle);
	font-size: 0.8125rem;
	color: var(--op-color-text-subtle);
}

/* Callout Boxes */
.op-callout-box {
	display: flex;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	border-radius: var(--op-radius);
	margin: 1.75rem 0;
	align-items: flex-start;
}

.op-callout-warning {
	background: rgba(245, 158, 11, 0.08);
	border-left: 4px solid #f59e0b;
	border-top: 1px solid rgba(245, 158, 11, 0.2);
	border-right: 1px solid rgba(245, 158, 11, 0.2);
	border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.op-callout-info {
	background: rgba(56, 189, 248, 0.08);
	border-left: 4px solid #38bdf8;
	border-top: 1px solid rgba(56, 189, 248, 0.2);
	border-right: 1px solid rgba(56, 189, 248, 0.2);
	border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.op-callout-icon {
	flex-shrink: 0;
	margin-top: 0.15rem;
}

.op-callout-title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 0.35rem 0;
	color: var(--op-color-text-main);
}

.op-callout-text {
	font-size: 0.9rem;
	color: #cbd5e1;
	line-height: 1.5;
	margin: 0;
}

/* CTA Section */
.op-section-cta {
	padding: 5rem 0;
}

.op-cta-card {
	max-width: var(--op-container-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.op-cta-content {
	background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
	border: 1px solid rgba(50, 108, 229, 0.35);
	border-radius: var(--op-radius-lg);
	padding: 3.5rem 2.5rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

.op-cta-title {
	font-size: 2.25rem;
	font-weight: 800;
	margin: 1rem 0 1rem;
	letter-spacing: -0.02em;
	max-width: 700px;
}

.op-cta-desc {
	font-size: 1.15rem;
	color: var(--op-color-text-muted);
	max-width: 600px;
	margin: 0 0 2rem;
	line-height: 1.6;
}

.op-cta-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	justify-content: center;
}

/* Single Post Layout */
.op-single-post-layout {
	padding: 3.5rem 0 5rem;
}

.op-article-container {
	max-width: var(--op-content-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.op-article-header {
	margin-bottom: 2rem;
}

.op-article-title {
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin: 1rem 0 1.25rem;
}

@media (max-width: 640px) {
	.op-article-title {
		font-size: 1.85rem;
	}
}

.op-article-meta-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.875rem;
	color: var(--op-color-text-muted);
}

.op-article-featured-image {
	border-radius: var(--op-radius-lg);
	overflow: hidden;
	margin: 2rem 0 2.5rem;
	border: 1px solid var(--op-color-border);
}

.op-article-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

.op-article-body {
	font-size: 1.1rem;
	line-height: 1.75;
	color: #cbd5e1;
}

.op-article-body h2 {
	font-size: 1.75rem;
	margin: 2.5rem 0 1rem;
}

.op-article-body h3 {
	font-size: 1.35rem;
	margin: 2rem 0 0.75rem;
}

.op-article-body ul,
.op-article-body ol {
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
}

.op-article-body li {
	margin-bottom: 0.5rem;
}

.op-article-body pre.wp-block-code {
	background: #020617;
	border: 1px solid var(--op-color-border);
	border-radius: var(--op-radius);
	padding: 1.25rem;
	overflow-x: auto;
	margin: 1.75rem 0;
	font-size: 0.9rem;
	color: #e2e8f0;
}

.op-article-footer {
	margin-top: 3.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--op-color-border);
}

.op-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
}

/* 404 Page Layout */
.op-404-layout {
	padding: 5rem 0;
}

.op-404-hero {
	max-width: 680px;
	margin: 0 auto 4rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.op-404-terminal {
	width: 100%;
	text-align: left;
	margin-bottom: 2rem;
}

.op-404-title {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 0.75rem;
}

.op-404-subtitle {
	font-size: 1.15rem;
	color: var(--op-color-text-muted);
	margin-bottom: 2rem;
	line-height: 1.6;
}

.op-404-actions {
	display: flex;
	gap: 1rem;
	margin-bottom: 2rem;
}

.op-404-search-box {
	width: 100%;
	max-width: 480px;
}
