/*
Theme Name:        WP Slate
Theme URI:         https://wpslate.com
Description:       A minimal FSE child theme of Twenty Twenty-Five for a WordPress platform engineer portfolio. Clean, light design with dark hero and contact sections, blue accents.
Version:           1.0.0
Requires at least: 6.4
Tested up to:      6.7
Requires PHP:      8.0
Author:            Mary
Author URI:        https://wpslate.com
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Template:          twentytwentyfive
Text Domain:       wpslate
Tags:              full-site-editing, block-themes, one-column, portfolio
*/

/*
 * WP Slate child theme styles.
 * Core design is handled via theme.json.
 * This file contains overrides and custom component styles
 * that cannot be expressed in theme.json alone.
 */

/* ── GLOBAL RESETS & BASE ── */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* ── NAV OVERRIDES ── */
.wp-block-navigation a {
	font-size: 0.85rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.15s ease;
}

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

/* Nav CTA button style */
.wp-block-navigation .nav-cta > a,
.nav-cta .wp-block-navigation-item__content {
	background-color: var(--wp--preset--color--accent) !important;
	color: #ffffff !important;
	padding: 0.45rem 1.1rem;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.82rem;
	transition: background-color 0.15s ease;
}

.wp-block-navigation .nav-cta > a:hover {
	background-color: var(--wp--preset--color--accent-dark) !important;
}

/* ── HEADER TEMPLATE PART ── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

/* ── HERO SECTION ── */
.hero-section {
	background-color: var(--wp--preset--color--ink);
}

.hero-section h1 em {
	font-style: italic;
	color: #93c5fd;
}

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6ee7b7;
}

.hero-eyebrow::before {
	content: '';
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #6ee7b7;
	animation: wpslate-pulse 2.5s infinite;
}

/* ── TRUST STRIP ── */
.trust-strip {
	background-color: var(--wp--preset--color--off);
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.trust-item {
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--wp--preset--color--muted);
	padding: 1.1rem 2rem;
	border-right: 1px solid var(--wp--preset--color--border);
}

.trust-item:last-child {
	border-right: none;
}

.trust-item strong {
	color: var(--wp--preset--color--ink-2);
	font-weight: 600;
}

/* ── SECTION BACKGROUNDS ── */
.section-white  { background-color: #ffffff; }
.section-grey   { background-color: #f1f5f9; }
.section-dark   { background-color: #1e293b; }
.section-ink    { background-color: var(--wp--preset--color--ink); }

/* Dark section text overrides */
.section-dark h2,
.section-dark h3,
.section-ink h2,
.section-ink h3 {
	color: #f1f5f9;
}

.section-dark p,
.section-ink p {
	color: rgba(241, 245, 249, 0.6);
}

.section-dark .wp-block-wpslate-label,
.section-ink .wp-block-wpslate-label {
	color: #93c5fd;
}

/* ── SECTION LABEL ── */
.section-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.65rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	display: block;
	margin-bottom: 0.6rem;
}

.section-dark .section-label,
.section-ink .section-label {
	color: #93c5fd;
}

/* ── BUTTONS ── */
.wp-block-button.is-style-solid .wp-block-button__link {
	background-color: var(--wp--preset--color--accent);
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.88rem;
	padding: 0.72rem 1.5rem;
	transition: background-color 0.15s ease;
}

.wp-block-button.is-style-solid .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--accent-dark);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	border: 1.5px solid var(--wp--preset--color--border-2);
	color: var(--wp--preset--color--ink-2);
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.88rem;
	padding: 0.72rem 1.5rem;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--ink-2);
}

/* Outline on dark background */
.section-dark .wp-block-button.is-style-outline .wp-block-button__link,
.section-ink .wp-block-button.is-style-outline .wp-block-button__link,
.hero-section .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

.section-dark .wp-block-button.is-style-outline .wp-block-button__link:hover,
.section-ink .wp-block-button.is-style-outline .wp-block-button__link:hover,
.hero-section .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: rgba(255, 255, 255, 0.6);
	background-color: rgba(255, 255, 255, 0.06);
}

.wp-block-button.is-style-ghost-sm .wp-block-button__link {
	background-color: transparent;
	border: 1.5px solid var(--wp--preset--color--border-2);
	color: var(--wp--preset--color--muted);
	border-radius: 6px;
	font-size: 0.82rem;
	font-weight: 500;
	padding: 0.6rem 1.2rem;
	transition: border-color 0.15s ease, color 0.15s ease;
}

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

/* ── SPEC CARDS ── */
.spec-cards-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	overflow: hidden;
}

.spec-card {
	background: rgba(255, 255, 255, 0.03);
	padding: 2rem 1.75rem;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	position: relative;
	transition: background 0.15s ease;
}

.spec-card:last-child {
	border-right: none;
}

.spec-card:hover {
	background: rgba(255, 255, 255, 0.07);
}

.spec-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background-color: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.spec-card:hover::before {
	transform: scaleX(1);
}

.spec-card-num {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.62rem;
	color: #93c5fd;
	letter-spacing: 0.1em;
	display: block;
	margin-bottom: 1rem;
}

.spec-card-title {
	font-size: 0.95rem;
	font-weight: 600;
	color: #f1f5f9;
	margin-bottom: 0.5rem;
}

.spec-card-desc {
	font-size: 0.83rem;
	color: rgba(241, 245, 249, 0.5);
	line-height: 1.65;
}

/* ── WORK CARDS ── */
.work-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background-color: var(--wp--preset--color--border);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	overflow: hidden;
}

.work-card {
	background-color: #ffffff;
	padding: 1.75rem;
	transition: background-color 0.15s ease;
}

.work-card:hover {
	background-color: var(--wp--preset--color--off);
}

.work-pill {
	display: inline-block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.6rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.2rem 0.6rem;
	border-radius: 4px;
	margin-bottom: 0.9rem;
	font-weight: 500;
}

.pill-migration   { background: #ecfdf5; color: #065f46; }
.pill-vip         { background: #eff6ff; color: #1e40af; }
.pill-performance { background: #fffbeb; color: #92400e; }
.pill-architecture{ background: #f5f3ff; color: #4c1d95; }
.pill-security    { background: #fef2f2; color: #991b1b; }
.pill-integration { background: #f0fdfa; color: #134e4a; }

.work-card-title {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	margin-bottom: 0.45rem;
}

.work-card-desc {
	font-size: 0.82rem;
	color: var(--wp--preset--color--muted);
	line-height: 1.6;
}

/* ── TIMELINE ── */
.timeline {
	border-left: 2px solid var(--wp--preset--color--border);
	padding-left: 2.5rem;
}

.timeline-item {
	position: relative;
	padding-bottom: 2.5rem;
}

.timeline-item:last-child {
	padding-bottom: 0;
}

.timeline-item::before {
	content: '';
	position: absolute;
	left: -2.7rem;
	top: 5px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #ffffff;
	border: 2px solid var(--wp--preset--color--accent);
}

.timeline-date {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.68rem;
	color: var(--wp--preset--color--accent);
	letter-spacing: 0.08em;
	display: block;
	margin-bottom: 0.3rem;
}

.timeline-role {
	font-size: 1rem;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	display: block;
	margin-bottom: 0.15rem;
}

.timeline-org {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.78rem;
	color: var(--wp--preset--color--muted);
	display: block;
	margin-bottom: 0.5rem;
}

.timeline-desc {
	font-size: 0.86rem;
	color: var(--wp--preset--color--muted);
	line-height: 1.65;
}

/* ── HERO STATUS CARD ── */
.hero-status-card {
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	padding: 1.75rem;
}

.status-card-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.65rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.3);
	display: block;
	margin-bottom: 1.25rem;
}

.status-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.7rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.84rem;
}

.status-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.status-key {
	color: rgba(255, 255, 255, 0.4);
}

.status-val {
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
	font-size: 0.8rem;
}

.status-val.is-available {
	color: #6ee7b7;
}

/* ── CONTACT PANEL ── */
.contact-info-panel {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	overflow: hidden;
}

.contact-info-row {
	padding: 1.1rem 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-info-row:last-child {
	border-bottom: none;
}

.contact-info-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.6rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.25);
	display: block;
	margin-bottom: 0.2rem;
}

.contact-info-value {
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.75);
	font-weight: 500;
}

/* ── AVAILABILITY BADGE ── */
.avail-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(110, 231, 183, 0.1);
	border: 1px solid rgba(110, 231, 183, 0.25);
	padding: 0.35rem 0.9rem;
	border-radius: 100px;
	font-size: 0.75rem;
	font-weight: 600;
	color: #6ee7b7;
}

.avail-badge::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #6ee7b7;
	animation: wpslate-pulse 2.5s infinite;
}

/* ── SKILL TAGS ── */
.skill-tag {
	display: inline-block;
	background-color: var(--wp--preset--color--off);
	border: 1px solid var(--wp--preset--color--border);
	padding: 0.28rem 0.8rem;
	border-radius: 4px;
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
	font-weight: 500;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.skill-tag:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

/* ── ANIMATIONS ── */
@keyframes wpslate-pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0.3; }
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
	.spec-cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.work-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.spec-cards-grid,
	.work-grid {
		grid-template-columns: 1fr;
	}

	.spec-card {
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.trust-item {
		border-right: none;
		border-bottom: 1px solid var(--wp--preset--color--border);
		width: 100%;
	}
}
