/* =============================================================
   My Buddy Claude — Global Styles
   ============================================================= */

/* Base reset & smoothing */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
video {
	max-width: 100%;
	height: auto;
}

/* =============================================================
   Layout
   ============================================================= */

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks > footer {
	margin-top: auto;
}

/* =============================================================
   Header
   ============================================================= */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--wp--preset--color--border);
	background: rgba(250, 250, 247, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.site-header .wp-block-group {
	align-items: center;
}

/* Site title / logo */
.wp-block-site-title a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	transition: color 0.15s ease;
}

.wp-block-site-title a:hover {
	color: var(--wp--preset--color--accent);
}

/* The "·" divider before site tagline */
.site-header .wp-block-site-tagline {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
	border-left: 1px solid var(--wp--preset--color--border);
	padding-left: 1rem;
	margin-left: 0.5rem;
}

/* Navigation */
.wp-block-navigation a {
	text-decoration: none;
	color: var(--wp--preset--color--muted);
	transition: color 0.15s ease;
	font-weight: 500;
}

.wp-block-navigation a:hover {
	color: var(--wp--preset--color--contrast);
}

/* =============================================================
   Footer
   ============================================================= */

.site-footer {
	border-top: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
}

/* =============================================================
   Typography
   ============================================================= */

.wp-block-post-content p,
.wp-block-post-content li {
	font-size: var(--wp--preset--font-size--md);
	line-height: 1.75;
	color: var(--wp--preset--color--contrast);
}

.wp-block-post-content a {
	color: var(--wp--preset--color--contrast);
	text-decoration-color: var(--wp--preset--color--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}

.wp-block-post-content a:hover {
	color: var(--wp--preset--color--accent);
}

/* =============================================================
   Buttons
   ============================================================= */

.wp-block-button__link {
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

/* Accent button variant */
.wp-block-button.is-style-accent .wp-block-button__link {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-accent .wp-block-button__link:hover {
	background-color: #CC3A07;
}

/* Ghost button variant */
.wp-block-button.is-style-ghost .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1.5px solid var(--wp--preset--color--border);
}

.wp-block-button.is-style-ghost .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--surface);
}

/* =============================================================
   Cards (used in Tools + Journal grids)
   ============================================================= */

.mbc-card {
	padding: 1.75rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: var(--wp--preset--color--base);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mbc-card:hover {
	border-color: var(--wp--preset--color--contrast);
	box-shadow: 0 4px 20px rgba(22, 20, 15, 0.08);
	transform: translateY(-2px);
}

/* =============================================================
   Tool badge / status
   ============================================================= */

.mbc-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.25rem 0.6rem;
	border-radius: 100px;
	border: 1px solid currentColor;
}

.mbc-badge--live {
	color: #16813C;
	background: #ECFDF3;
	border-color: #A7F3C0;
}

.mbc-badge--wip {
	color: #92580A;
	background: #FEFCE8;
	border-color: #FDE68A;
}

.mbc-badge--archived {
	color: var(--wp--preset--color--muted);
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--border);
}

/* =============================================================
   Hero section
   ============================================================= */

.mbc-hero {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.mbc-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

.mbc-hero__eyebrow::before {
	content: '';
	display: block;
	width: 1.5rem;
	height: 2px;
	background: var(--wp--preset--color--accent);
	flex-shrink: 0;
}

.mbc-hero__headline {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: var(--wp--preset--font-size--display);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--contrast);
	margin: 0 0 1.5rem;
}

.mbc-hero__subheadline {
	font-size: clamp(1.1rem, 2vw, 1.35rem);
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
	max-width: 42ch;
	margin: 0 0 2.5rem;
}

/* =============================================================
   Section labels
   ============================================================= */

.mbc-section-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-family: var(--wp--preset--font-family--jakarta);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* =============================================================
   Post list (journal)
   ============================================================= */

.wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Date meta */
.wp-block-post-date {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--muted);
}

/* =============================================================
   Single post
   ============================================================= */

.mbc-post-header {
	padding-top: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--border);
	margin-bottom: var(--wp--preset--spacing--40);
}

.wp-block-post-content {
	font-size: var(--wp--preset--font-size--md);
}

.wp-block-post-content h2,
.wp-block-post-content h3 {
	margin-top: 2.5rem;
	margin-bottom: 1rem;
}

/* =============================================================
   Separator / divider
   ============================================================= */

.wp-block-separator {
	border: none;
	border-top: 1px solid var(--wp--preset--color--border);
	margin: 3rem auto;
}

.wp-block-separator.is-style-wide {
	max-width: 100%;
}

/* =============================================================
   Inline code
   ============================================================= */

code:not(.wp-block-code code) {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875em;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 4px;
	padding: 0.15em 0.4em;
	color: var(--wp--preset--color--accent);
}

/* =============================================================
   Artifact callout
   ============================================================= */

.mbc-artifact {
	position: relative;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: var(--wp--preset--color--base);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mbc-artifact:hover {
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 4px 24px rgba(232, 69, 10, 0.08);
}

.mbc-artifact__header {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.75rem 1.25rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
}

.mbc-artifact__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	flex-shrink: 0;
	color: var(--wp--preset--color--accent);
}

.mbc-artifact__icon svg {
	width: 1rem;
	height: 1rem;
}

.mbc-artifact__title {
	font-family: var(--wp--preset--font-family--jakarta);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	margin: 0;
	line-height: 1.3;
}

.mbc-artifact__type {
	margin-left: auto;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.mbc-artifact__body {
	padding: 1.25rem;
}

.mbc-artifact__body p {
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
	margin: 0 0 1rem;
}

.mbc-artifact__body p:last-child {
	margin-bottom: 0;
}

.mbc-artifact__action {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--wp--preset--font-family--jakarta);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	transition: gap 0.15s ease;
}

.mbc-artifact__action:hover {
	gap: 0.75rem;
}

.mbc-artifact__action svg {
	width: 1rem;
	height: 1rem;
	transition: transform 0.15s ease;
}

.mbc-artifact__action:hover svg {
	transform: translateX(2px);
}

/* =============================================================
   Tool card (artifact-style, used in tools grid)
   ============================================================= */

.mbc-tool-card {
	background: var(--wp--preset--color--base);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mbc-tool-card:hover {
	border-color: var(--wp--preset--color--accent) !important;
	box-shadow: 0 4px 24px rgba(232, 69, 10, 0.08);
}

.mbc-tool-card__header {
	gap: 0.625rem;
}

.mbc-tool-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
	color: var(--wp--preset--color--accent);
}

.mbc-tool-card__icon svg {
	width: 1rem;
	height: 1rem;
}

.mbc-tool-card__title {
	margin: 0;
	line-height: 1.3;
}

.mbc-tool-card__title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: color 0.15s ease;
}

.mbc-tool-card__title a:hover {
	color: var(--wp--preset--color--accent);
}

.mbc-tool-card__category {
	margin-left: auto;
	flex-shrink: 0;
}

.mbc-tool-card__action {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	transition: gap 0.15s ease;
}

.mbc-tool-card__action::after {
	content: '';
	display: inline-block;
	width: 1rem;
	height: 1rem;
	background-color: currentColor;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	flex-shrink: 0;
	transition: transform 0.15s ease;
}

.mbc-tool-card__action:hover {
	gap: 0.75rem;
}

.mbc-tool-card__action:hover::after {
	transform: translateX(2px);
}

/* =============================================================
   Responsive
   ============================================================= */

@media (max-width: 768px) {
	.mbc-hero__headline {
		font-size: clamp(2.5rem, 8vw, 3.5rem);
	}
}

/* =============================================================
   Utilities
   ============================================================= */

.mbc-mono {
	font-family: var(--wp--preset--font-family--mono);
}

.mbc-text-muted {
	color: var(--wp--preset--color--muted);
}

.mbc-text-accent {
	color: var(--wp--preset--color--accent);
}
