/**
 * IGNITE THE MIC Theme Styles — light default, optional dark mode.
 */

:root {
	--itm-accent: #c70000;
	--itm-accent-rgb: 199, 0, 0;
	--itm-bg: #f4f5f7;
	--itm-bg-elevated: #ffffff;
	--itm-bg-card: #ffffff;
	--itm-text: #1a1a1a;
	--itm-text-muted: #6b7280;
	--itm-heading: #111111;
	--itm-border: rgba(0, 0, 0, 0.08);
	--itm-radius: 12px;
	--itm-radius-lg: 16px;
	--itm-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	--itm-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
	--itm-glass: rgba(255, 255, 255, 0.92);
	--itm-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--itm-container: 1200px;
	--itm-header-bg: rgba(255, 255, 255, 0.97);
}

body.itm-dark-mode {
	--itm-bg: #0f0f0f;
	--itm-bg-elevated: #1a1a1a;
	--itm-bg-card: #1e1e1e;
	--itm-text: #f0f0f0;
	--itm-text-muted: #9ca3af;
	--itm-heading: #ffffff;
	--itm-border: rgba(255, 255, 255, 0.08);
	--itm-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	--itm-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
	--itm-glass: rgba(26, 26, 26, 0.92);
	--itm-header-bg: rgba(15, 15, 15, 0.97);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--itm-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--itm-text);
	background: var(--itm-bg);
	-webkit-font-smoothing: antialiased;
}

.container {
	max-width: var(--itm-container);
	margin: 0 auto;
	padding: 0 24px;
}

a { color: var(--itm-accent); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { opacity: 0.85; }

img { max-width: 100%; height: auto; display: block; }

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--itm-header-bg);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--itm-border);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	gap: 24px;
}

.custom-logo-link img {
	max-height: 48px;
	width: auto;
}

.site-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--itm-heading);
	letter-spacing: -0.02em;
}

.site-description {
	margin: 0;
	font-size: 0.75rem;
	color: var(--itm-text-muted);
}

.main-navigation ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 4px;
}

.main-navigation a {
	color: var(--itm-text);
	padding: 8px 16px;
	border-radius: 8px;
	font-weight: 500;
	font-size: 0.9rem;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
	background: rgba(var(--itm-accent-rgb), 0.1);
	color: var(--itm-accent);
}

.main-navigation {
	display: flex;
	align-items: center;
	gap: 12px;
}

.itm-header-social {
	display: flex;
	align-items: center;
	gap: 6px;
}

.itm-header-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: var(--itm-text-muted);
	background: var(--itm-bg);
	border: 1px solid var(--itm-border);
	font-size: 0.78rem;
	line-height: 1;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.itm-header-social-link:hover {
	color: #fff;
	background: var(--itm-accent);
	border-color: var(--itm-accent);
	transform: translateY(-1px);
	opacity: 1;
}

.itm-header-social--toolbar {
	display: none;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--itm-heading);
	position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
	content: '';
	position: absolute;
	left: 0;
}

.menu-toggle-icon::before { top: -7px; }
.menu-toggle-icon::after { top: 7px; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-avatar img { border-radius: 50%; border: 2px solid var(--itm-accent); }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	border-radius: 50px;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	border: none;
	transition: all 0.2s;
	text-decoration: none;
}

.btn-primary {
	background: var(--itm-accent);
	color: #fff;
	box-shadow: 0 4px 14px rgba(var(--itm-accent-rgb), 0.35);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(var(--itm-accent-rgb), 0.4); color: #fff; }

.btn-outline {
	background: transparent;
	border: 1px solid var(--itm-border);
	color: var(--itm-text);
}

.btn-outline:hover { border-color: var(--itm-accent); color: var(--itm-accent); }
.btn-sm { padding: 7px 16px; font-size: 0.82rem; }

/* Layout */
.site-content { padding-bottom: 40px; }

.content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 40px;
	padding: 32px 0;
	align-items: start;
}

.content-area { min-width: 0; }

.itm-latest-posts-title {
	margin-top: 8px;
}

.itm-posts-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.content-area > .posts-navigation,
.content-area > .navigation.posts-navigation {
	margin-top: 8px;
	padding-top: 24px;
	border-top: 1px solid var(--itm-border);
}

.posts-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.posts-navigation a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--itm-heading);
	background: var(--itm-bg-card);
	border: 1px solid var(--itm-border);
	box-shadow: var(--itm-shadow);
	transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.posts-navigation a:hover {
	border-color: rgba(var(--itm-accent-rgb), 0.35);
	color: var(--itm-accent);
	transform: translateY(-1px);
	opacity: 1;
}

.section-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 24px;
	padding-left: 14px;
	border-left: 4px solid var(--itm-accent);
	color: var(--itm-heading);
}

/* Page / entry */
.site-main.container { padding-top: 32px; padding-bottom: 48px; }

.entry-header { margin-bottom: 24px; }

.entry-title {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--itm-heading);
	margin: 0;
	line-height: 1.25;
}

.entry-content {
	color: var(--itm-text);
	line-height: 1.7;
}

.entry-content > *:first-child { margin-top: 0; }

.itm-community-page .entry-header { display: none; }

/* Blog post cards */
.itm-post-card.itm-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin-bottom: 0;
	border-radius: var(--itm-radius-lg);
	border: 1px solid var(--itm-border);
	background: var(--itm-bg-card);
	box-shadow: var(--itm-shadow);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.itm-post-card.itm-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--itm-shadow-lg);
	border-color: rgba(var(--itm-accent-rgb), 0.18);
}

.itm-card-media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--itm-bg);
}

.itm-card-media-link {
	display: block;
	height: 100%;
}

.itm-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.itm-post-card:hover .itm-card-media img {
	transform: scale(1.04);
}

.itm-card-media-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 55%);
	pointer-events: none;
}

.itm-card-category {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	transition: background 0.2s, color 0.2s;
}

.itm-card-category:hover {
	background: var(--itm-accent);
	color: #fff;
	opacity: 1;
}

.itm-card-podcast-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
}

.itm-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 22px 24px 24px;
}

.itm-post-card .entry-header {
	padding: 0;
	margin: 0 0 12px;
}

.itm-post-card .entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-size: 0.8125rem;
	color: var(--itm-text-muted);
	margin-bottom: 10px;
}

.itm-post-card .entry-meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.itm-post-card .entry-meta i {
	color: var(--itm-accent);
	font-size: 0.75rem;
}

.itm-post-card .entry-title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.itm-post-card .entry-title a {
	color: var(--itm-heading);
	text-decoration: none;
	transition: color 0.2s;
}

.itm-post-card .entry-title a:hover {
	color: var(--itm-accent);
	opacity: 1;
}

.itm-post-card .entry-summary {
	padding: 0;
	margin: 0 0 20px;
	color: var(--itm-text-muted);
	font-size: 0.9375rem;
	line-height: 1.65;
	flex: 1;
}

.itm-post-card .entry-summary p {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.itm-post-card .entry-footer {
	padding: 0;
	margin-top: auto;
	border-top: 1px solid var(--itm-border);
	padding-top: 16px;
}

.itm-read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--itm-accent);
	text-decoration: none;
	transition: gap 0.2s ease;
}

.itm-read-more:hover {
	gap: 12px;
	opacity: 1;
	color: var(--itm-accent);
}

.itm-read-more i {
	font-size: 0.75rem;
}

/* Legacy card fallback */
.itm-card:not(.itm-post-card) {
	background: var(--itm-bg-card);
	border: 1px solid var(--itm-border);
	border-radius: var(--itm-radius);
	overflow: hidden;
	margin-bottom: 24px;
	box-shadow: var(--itm-shadow);
	transition: transform 0.2s, box-shadow 0.2s;
}

.itm-card:not(.itm-post-card):hover {
	transform: translateY(-2px);
	box-shadow: var(--itm-shadow-lg);
}

.itm-card:not(.itm-post-card) .post-thumbnail { position: relative; overflow: hidden; }
.itm-card:not(.itm-post-card) .entry-header { padding: 20px 24px 0; margin: 0; }
.itm-card:not(.itm-post-card) .entry-title { margin: 0 0 8px; font-size: 1.15rem; }
.itm-card:not(.itm-post-card) .entry-title a { color: var(--itm-heading); }
.itm-card:not(.itm-post-card) .entry-meta { font-size: 0.82rem; color: var(--itm-text-muted); display: flex; gap: 12px; }
.itm-card:not(.itm-post-card) .entry-summary { padding: 12px 24px; color: var(--itm-text-muted); font-size: 0.92rem; }
.itm-card:not(.itm-post-card) .entry-footer { padding: 0 24px 20px; display: flex; justify-content: space-between; align-items: center; }

/* Podcast */
.itm-podcast-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--itm-accent);
	color: #fff;
	padding: 4px 12px;
	border-radius: 50px;
	font-size: 0.75rem;
	font-weight: 600;
}

.itm-podcast-player {
	background: var(--itm-bg-card);
	border: 1px solid var(--itm-border);
	border-radius: var(--itm-radius);
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: var(--itm-shadow);
}

.itm-single-post {
	background: var(--itm-bg-card);
	border: 1px solid var(--itm-border);
	border-radius: var(--itm-radius-lg);
	overflow: hidden;
	box-shadow: var(--itm-shadow);
	margin-bottom: 40px;
}

.itm-single-post .entry-header {
	padding: 32px 32px 0;
}

.itm-single-post .entry-title {
	margin: 0 0 12px;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 800;
	color: var(--itm-heading);
	line-height: 1.15;
}

.itm-single-post .entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	font-size: 0.88rem;
	color: var(--itm-text-muted);
}

.itm-single-post .itm-podcast-label {
	color: var(--itm-accent);
	font-weight: 600;
}

.itm-single-featured-image {
	position: relative;
	margin: 24px 32px 0;
	border-radius: var(--itm-radius);
	overflow: hidden;
}

.itm-single-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

.itm-single-featured-image .itm-podcast-badge {
	position: absolute;
	top: 16px;
	left: 16px;
}

.itm-single-post .itm-podcast-player {
	margin: 24px 32px 0;
}

.itm-single-post .entry-content {
	padding: 24px 32px 32px;
	color: var(--itm-text);
	line-height: 1.75;
}

.itm-single-post .entry-content > :first-child {
	margin-top: 0;
}

.itm-single-post .entry-footer {
	padding: 0 32px 32px;
	border-top: 1px solid var(--itm-border);
	margin-top: 8px;
	padding-top: 24px;
}

.itm-single-post .itm-podcast-audio,
.itm-single-post .powerpress_player,
.itm-single-post .wp-block-audio,
.itm-single-post audio {
	width: 100%;
	max-width: 100%;
}

.itm-single-post .mejs-container {
	width: 100% !important;
}

@media (max-width: 768px) {
	.itm-single-post .entry-header,
	.itm-single-post .itm-podcast-player,
	.itm-single-post .itm-single-featured-image,
	.itm-single-post .entry-content,
	.itm-single-post .entry-footer {
		padding-left: 20px;
		padding-right: 20px;
		margin-left: 0;
		margin-right: 0;
	}
}

.itm-podcast-highlighted {
	border-color: var(--itm-accent);
	box-shadow: 0 0 0 1px rgba(var(--itm-accent-rgb), 0.2);
}

.itm-home-podcasts,
.itm-home-social-wall {
	padding: 28px 0;
}

.itm-home-podcasts {
	margin-bottom: 8px;
	padding-top: 8px;
}

.itm-home-podcasts .section-title {
	font-size: 1.125rem;
	margin-bottom: 14px;
	letter-spacing: -0.01em;
}

.itm-home-podcasts .itm-podcast-scroll-wrap {
	margin-left: -24px;
	margin-right: -24px;
	padding-left: 24px;
	padding-right: 24px;
}

.itm-home-podcasts .itm-podcast-scroll-wrap::before {
	left: 24px;
}

.itm-home-podcasts .itm-podcast-scroll-wrap::after {
	right: 24px;
}

/* Verified badge */
.itm-verified-badge { color: #1da1f2; font-size: 0.85em; margin-left: 4px; }

/* Footer */
.site-footer {
	background: var(--itm-bg-elevated);
	border-top: 1px solid var(--itm-border);
	padding: 48px 0 24px;
	margin-top: 48px;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-bottom: 32px;
}

.site-info {
	text-align: center;
	color: var(--itm-text-muted);
	font-size: 0.85rem;
	padding-top: 24px;
	border-top: 1px solid var(--itm-border);
}

.site-info ul {
	list-style: none;
	padding: 0;
	margin: 0 0 12px;
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

.site-info a { color: var(--itm-text-muted); }

/* Widgets / Sidebar */
.itm-sidebar {
	position: sticky;
	top: 96px;
}

.itm-sidebar .widget,
.itm-sidebar .itm-social-feed-widget {
	background: var(--itm-bg-card);
	border: 1px solid var(--itm-border);
	border-radius: var(--itm-radius-lg);
	padding: 22px 24px;
	margin-bottom: 20px;
	box-shadow: var(--itm-shadow);
}

.itm-sidebar .widget:last-child,
.itm-sidebar .itm-social-feed-widget:last-child {
	margin-bottom: 0;
}

.itm-sidebar .widget-title {
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--itm-accent);
	margin: 0 0 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--itm-border);
}

.itm-sidebar .widget ul,
.itm-sidebar .widget ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.itm-sidebar .widget li {
	padding: 11px 0;
	border-bottom: 1px solid var(--itm-border);
	line-height: 1.45;
}

.itm-sidebar .widget li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.itm-sidebar .widget li:first-child {
	padding-top: 0;
}

.itm-sidebar .widget li a {
	color: var(--itm-text);
	font-weight: 500;
	font-size: 0.9rem;
	text-decoration: none;
	transition: color 0.2s;
}

.itm-sidebar .widget li a:hover {
	color: var(--itm-accent);
	opacity: 1;
}

.itm-sidebar .widget p {
	margin: 0 0 12px;
	font-size: 0.9rem;
	color: var(--itm-text-muted);
	line-height: 1.6;
}

.itm-sidebar .widget p:last-child {
	margin-bottom: 0;
}

.itm-sidebar .search-form,
.itm-sidebar form[role="search"] {
	display: flex;
	gap: 8px;
}

.itm-sidebar .search-field,
.itm-sidebar input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 11px 14px;
	border: 1px solid var(--itm-border);
	border-radius: 10px;
	background: var(--itm-bg);
	color: var(--itm-text);
	font: inherit;
	font-size: 0.875rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.itm-sidebar .search-field:focus,
.itm-sidebar input[type="search"]:focus {
	outline: none;
	border-color: rgba(var(--itm-accent-rgb), 0.45);
	box-shadow: 0 0 0 3px rgba(var(--itm-accent-rgb), 0.12);
}

.itm-sidebar .search-submit,
.itm-sidebar input[type="submit"] {
	padding: 11px 16px;
	border: none;
	border-radius: 10px;
	background: var(--itm-accent);
	color: #fff;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
}

.itm-sidebar .search-submit:hover,
.itm-sidebar input[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(var(--itm-accent-rgb), 0.35);
}

.itm-sidebar .tagcloud a,
.itm-sidebar .widget_tag_cloud a {
	display: inline-block;
	margin: 0 6px 8px 0;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.75rem !important;
	font-weight: 600;
	color: var(--itm-text-muted) !important;
	background: var(--itm-bg);
	border: 1px solid var(--itm-border);
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.itm-sidebar .tagcloud a:hover,
.itm-sidebar .widget_tag_cloud a:hover {
	border-color: rgba(var(--itm-accent-rgb), 0.35);
	color: var(--itm-accent) !important;
	background: rgba(var(--itm-accent-rgb), 0.06);
	opacity: 1;
}

.widget { margin-bottom: 24px; }
.widget-title { font-size: 1rem; margin: 0 0 12px; color: var(--itm-heading); font-weight: 600; }

.page-header {
	margin-bottom: 8px;
}

.page-header .page-title {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 800;
	color: var(--itm-heading);
	margin: 0 0 8px;
	letter-spacing: -0.03em;
}

.archive-description {
	color: var(--itm-text-muted);
	font-size: 1rem;
	line-height: 1.6;
	max-width: 640px;
}

/* Responsive */
@media (max-width: 900px) {
	.content-grid { grid-template-columns: 1fr; gap: 32px; }
	.itm-sidebar { position: static; }
	.itm-posts-grid { grid-template-columns: 1fr; gap: 24px; }
	.footer-widgets { grid-template-columns: 1fr; }

	.menu-toggle { display: block; }

	.main-navigation ul {
		display: none;
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		flex-direction: column;
		background: var(--itm-bg-elevated);
		padding: 16px;
		border-bottom: 1px solid var(--itm-border);
		box-shadow: var(--itm-shadow);
	}

	.main-navigation.toggled ul { display: flex; }

	.itm-header-social--menu { display: none; }

	.itm-header-social--toolbar { display: flex; }

	.main-navigation.toggled .itm-header-social--menu {
		display: flex;
		width: 100%;
		justify-content: center;
		padding: 0 16px 12px;
	}
}
