/**
 * Dev-Craft Theme — Custom Styles
 * Supplements theme.json with styles that can't be expressed in block markup alone.
 */

/* ═══════════════════════════════════════════ */
/* GLOBAL                                       */
/* ═══════════════════════════════════════════ */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection {
	background: rgba(233, 69, 96, 0.15);
	color: #1c1a18;
}

/* ═══════════════════════════════════════════ */
/* NAVIGATION – sticky dark bar polish         */
/* ═══════════════════════════════════════════ */

header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

/* Site title "G3L." red dot via CSS —
   relies on the site title containing "G3L" */
.wp-block-site-title a {
	text-decoration: none !important;
}

/* ═══════════════════════════════════════════ */
/* FEATURED POST CARD                           */
/* ═══════════════════════════════════════════ */

.dc-featured-card {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dc-featured-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* Left side — dark panel with subtle radial accents */
.dc-featured-left {
	position: relative;
}

.dc-featured-left::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 30%, rgba(200, 164, 94, 0.08) 0%, transparent 50%),
		radial-gradient(circle at 80% 70%, rgba(233, 69, 96, 0.06) 0%, transparent 50%);
	pointer-events: none;
}

/* Right side — white panel */
.dc-featured-right {
	background: #ffffff;
}

@media (max-width: 900px) {
	.dc-featured-card {
		grid-template-columns: 1fr !important;
	}
}

/* ═══════════════════════════════════════════ */
/* POST CARDS – hover lift                     */
/* ═══════════════════════════════════════════ */

.wp-block-post {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-post:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Card link styling */
.wp-block-post a {
	text-decoration: none;
}

.wp-block-post-title a {
	text-decoration: none !important;
	color: inherit;
}

.wp-block-post-title a:hover {
	color: #e94560 !important;
}

/* ═══════════════════════════════════════════ */
/* ARTICLE CONTENT – typography & elements     */
/* ═══════════════════════════════════════════ */

/* Leading paragraph */
.entry-content > p:first-child,
.wp-block-post-content > p:first-child {
	font-size: 18px;
	color: #1c1a18;
}

/* Body paragraphs */
.entry-content p,
.wp-block-post-content p {
	font-size: 16px;
	line-height: 1.85;
	color: #3a3834;
	margin-bottom: 24px;
}

/* Headings inside content */
.entry-content h2,
.wp-block-post-content h2 {
	margin-top: 48px;
	margin-bottom: 16px;
}

/* Inline code */
.entry-content code:not(pre code),
.wp-block-post-content code:not(pre code) {
	font-family: 'JetBrains Mono', monospace;
	font-size: 14px;
	background: rgba(42, 38, 34, 0.06);
	padding: 2px 6px;
	border-radius: 4px;
}

/* Code blocks */
.wp-block-code,
.entry-content pre,
.wp-block-post-content pre {
	background: #1c1a18;
	color: #f4f2ef;
	padding: 24px;
	border-radius: 10px;
	overflow-x: auto;
	font-family: 'JetBrains Mono', monospace;
	font-size: 13px;
	line-height: 1.7;
}

/* Blockquotes */
.wp-block-quote {
	border-left: 3px solid #c8a45e !important;
	padding: 16px 24px;
	margin: 24px 0;
	background: rgba(200, 164, 94, 0.06);
	border-radius: 0 8px 8px 0;
	font-style: italic;
	color: #555;
}

.wp-block-quote p {
	color: #555 !important;
}

/* ═══════════════════════════════════════════ */
/* AUTHOR CARD                                  */
/* ═══════════════════════════════════════════ */

.dc-author-card .wp-block-post-author {
	gap: 20px;
}

.dc-author-card .wp-block-post-author__avatar img {
	border-radius: 50%;
}

.dc-author-card .wp-block-post-author__name {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #1c1a18;
}

.dc-author-card .wp-block-post-author__bio {
	font-size: 13px;
	color: #7a756d;
	line-height: 1.5;
}

/* ═══════════════════════════════════════════ */
/* NEWSLETTER CTA                               */
/* ═══════════════════════════════════════════ */

.wp-block-search__input {
	padding: 12px 16px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.05);
	color: white;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	transition: border-color 0.2s;
}

.wp-block-search__input:focus {
	border-color: #c8a45e;
	outline: none;
}

/* ═══════════════════════════════════════════ */
/* BUTTONS — transitions                       */
/* ═══════════════════════════════════════════ */

.wp-block-button__link {
	transition: all 0.2s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: rgba(0, 0, 0, 0.3) !important;
}

/* ═══════════════════════════════════════════ */
/* FEATURED IMAGE – fallback gradient          */
/* ═══════════════════════════════════════════ */

.wp-block-post-featured-image {
	background: linear-gradient(135deg, #1c1a18 0%, #2a2622 100%);
}

.wp-block-post-featured-image img {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

/* ═══════════════════════════════════════════ */
/* CATEGORY BADGES (via post terms)             */
/* ═══════════════════════════════════════════ */

.wp-block-post-terms a {
	text-decoration: none !important;
}

/* ═══════════════════════════════════════════ */
/* PAGINATION                                   */
/* ═══════════════════════════════════════════ */

.wp-block-query-pagination {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 14px;
	font-weight: 600;
}

.wp-block-query-pagination a {
	color: #1c1a18;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 8px;
	transition: all 0.2s;
}

.wp-block-query-pagination a:hover {
	background: rgba(0, 0, 0, 0.04);
}

.wp-block-query-pagination .current {
	background: #1c1a18;
	color: white;
	border-radius: 8px;
	padding: 8px 16px;
}

/* ═══════════════════════════════════════════ */
/* RESPONSIVE TWEAKS                            */
/* ═══════════════════════════════════════════ */

@media (max-width: 900px) {
	.wp-block-columns {
		flex-direction: column;
	}
}

@media (max-width: 600px) {
	h1.wp-block-heading,
	.wp-block-post-title {
		font-size: 36px !important;
	}
}
