/*
Theme Name: c_theme_2026
Theme URI: http://www.cya.nyc
Description: A modern card-grid + sidebar WordPress theme for cya.nyc
Version: 1.0
Author: Connor Yamada
Author URI: http://www.cyamada.com
*/

/* =====================================================================
   CSS Custom Properties
   ===================================================================== */

:root {
	--c-primary:      #26a3e5;
	--c-primary-dark: #1a85c2;
	--c-bg:           #ffffff;
	--c-surface:      #ffffff;
	--c-border:       #e2e8f0;
	--c-text:         #2d3748;
	--c-text-muted:   #718096;
	--c-sidebar-w:    240px;
	--c-font-body:    "Franklin Gothic Book", "Franklin Gothic Medium", Tahoma, sans-serif;
	--c-font-display: "Century Gothic", "Apple Gothic", Arial, sans-serif;
	--c-radius:       8px;
	--c-shadow:       0 1px 4px rgba(0, 0, 0, 0.08);
	--c-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.13);
	--c-transition:   0.2s ease;
}

/* =====================================================================
   Reset / Base
   ===================================================================== */

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--c-font-body);
	background-color: var(--c-bg);
	color: var(--c-text);
	line-height: 1.6;
	min-height: 100vh;
}

a {
	color: var(--c-primary);
	text-decoration: none;
}

a:hover {
	color: var(--c-primary-dark);
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

ul {
	list-style: none;
}

/* =====================================================================
   App Shell — sidebar + main two-column layout
   ===================================================================== */

.c2026-shell {
	display: flex;
	min-height: 100vh;
	align-items: flex-start;
}

/* =====================================================================
   Sidebar
   ===================================================================== */

.c2026-sidebar {
	width: var(--c-sidebar-w);
	flex-shrink: 0;
	background: var(--c-surface);
	min-height: 100vh;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
	padding: 32px 20px 24px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* scrollbar — keep it subtle */
.c2026-sidebar::-webkit-scrollbar { width: 4px; }
.c2026-sidebar::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }

/* Avatar */
.c2026-avatar-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
}

.c2026-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--c-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-family: var(--c-font-display);
	font-size: 28px;
	font-weight: bold;
	overflow: hidden;
	flex-shrink: 0;
}

.c2026-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.c2026-site-name {
	font-family: var(--c-font-display);
	font-size: 20px;
	font-weight: bold;
	color: var(--c-primary);
	line-height: 1.2;
}

.c2026-tagline {
	font-size: 12px;
	color: var(--c-text-muted);
	line-height: 1.4;
}

.c2026-location {
	font-size: 11px;
	color: var(--c-text-muted);
	display: flex;
	align-items: center;
	gap: 4px;
}

.c2026-location::before {
	content: "📍";
	font-size: 10px;
}

/* Nav sections */
.c2026-nav-section {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.c2026-nav-label {
	font-size: 10px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--c-text-muted);
	padding: 0 8px;
	margin-bottom: 4px;
}

.c2026-nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 13px;
	color: var(--c-text);
	transition: background var(--c-transition), color var(--c-transition);
}

.c2026-nav-link:hover,
.c2026-nav-link.active {
	background: #eef6fd;
	color: var(--c-primary);
	text-decoration: none;
}

.c2026-nav-link .count {
	font-size: 11px;
	color: var(--c-text-muted);
	background: var(--c-bg);
	border-radius: 10px;
	padding: 0 6px;
	line-height: 18px;
}

/* Bio block */
.c2026-bio {
	font-size: 12px;
	color: var(--c-text-muted);
	line-height: 1.6;
	border-left: 3px solid var(--c-primary);
	padding-left: 10px;
}

/* Subscribe button */
.c2026-subscribe {
	display: block;
	width: 100%;
	padding: 9px 0;
	background: var(--c-primary);
	color: #fff;
	text-align: center;
	border-radius: 6px;
	font-size: 13px;
	font-weight: bold;
	letter-spacing: 0.02em;
	transition: background var(--c-transition);
	border: none;
	cursor: pointer;
}

.c2026-subscribe:hover {
	background: var(--c-primary-dark);
	color: #fff;
	text-decoration: none;
}

/* =====================================================================
   Main Content Area
   ===================================================================== */

.c2026-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* Sticky top bar */
.c2026-topbar {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--c-surface);
	padding: 0 32px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
}

.c2026-topbar-title {
	font-family: var(--c-font-display);
	font-size: 18px;
	font-weight: bold;
	color: var(--c-text);
	white-space: nowrap;
}

.c2026-topbar-title a {
	color: inherit;
}

.c2026-topbar-title a:hover {
	color: var(--c-primary);
	text-decoration: none;
}

.c2026-topbar-sub {
	font-size: 12px;
	color: var(--c-text-muted);
	margin-top: 1px;
}

/* Search form */
.c2026-search-form {
	display: flex;
	align-items: center;
	gap: 0;
}

.c2026-search-input {
	border: 1px solid var(--c-border);
	border-right: none;
	border-radius: 6px 0 0 6px;
	padding: 6px 12px;
	font-size: 13px;
	font-family: var(--c-font-body);
	color: var(--c-text);
	background: var(--c-bg);
	width: 180px;
	outline: none;
	transition: border-color var(--c-transition);
}

.c2026-search-input:focus {
	border-color: var(--c-primary);
	background: var(--c-surface);
}

.c2026-search-btn {
	border: 1px solid var(--c-border);
	border-left: none;
	border-radius: 0 6px 6px 0;
	background: var(--c-surface);
	padding: 6px 10px;
	cursor: pointer;
	color: var(--c-text-muted);
	font-size: 14px;
	transition: color var(--c-transition), border-color var(--c-transition);
}

.c2026-search-btn:hover {
	color: var(--c-primary);
}

/* Content padding */
.c2026-content {
	padding: 32px;
	max-width: 1200px;
	box-shadow: -1px 0 0 0 var(--c-border);
}

/* =====================================================================
   Card Grid
   ===================================================================== */

/* Featured (first post) — full-width */
.c2026-featured {
	background: var(--c-surface);
	border-radius: var(--c-radius);
	box-shadow: var(--c-shadow);
	overflow: hidden;
	margin-bottom: 28px;
	display: flex;
	flex-direction: column;
	transition: box-shadow var(--c-transition);
}

.c2026-featured:hover {
	box-shadow: var(--c-shadow-hover);
}

.c2026-featured-img {
	width: 100%;
	height: 240px;
	overflow: hidden;
	position: relative;
}

.c2026-featured-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.c2026-featured:hover .c2026-featured-img img {
	transform: scale(1.03);
}

.c2026-featured-body {
	padding: 24px 28px;
}

.c2026-featured-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--c-primary);
	background: #eef6fd;
	border-radius: 4px;
	padding: 2px 8px;
	margin-bottom: 10px;
}

.c2026-featured-title {
	font-family: var(--c-font-display);
	font-size: 32px;
	font-weight: bold;
	color: var(--c-primary);
	line-height: 1.3;
	margin-bottom: 10px;
}

.c2026-featured-title a {
	color: var(--c-primary);
	text-decoration: none;
}

.c2026-featured-title a:hover {
	color: var(--c-primary-dark);
	text-decoration: none;
}

.c2026-featured-excerpt {
	font-size: 14px;
	color: var(--c-text-muted);
	line-height: 1.6;
	margin-bottom: 16px;
}

.c2026-post-meta {
	font-size: 12px;
	color: var(--c-text-muted);
	display: flex;
	align-items: center;
	gap: 12px;
}

.c2026-post-meta a {
	color: var(--c-text-muted);
	text-decoration: none;
}

.c2026-post-meta a:hover {
	color: var(--c-primary);
}

/* Card / featured post footer row — date left, category tag right */
.c2026-post-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 10px;
}

.c2026-post-date {
	font-size: 12px;
	color: var(--c-text-muted);
}

.c2026-cat-tag {
	font-size: 10px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #185FA5;
	background: #eef6fd;
	border-radius: 4px;
	padding: 2px 8px;
	text-decoration: none;
}

/* Card grid — 2 columns */
.c2026-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 28px;
}

.c2026-card {
	background: var(--c-surface);
	border-radius: var(--c-radius);
	box-shadow: var(--c-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow var(--c-transition);
}

.c2026-card:hover {
	box-shadow: var(--c-shadow-hover);
}

.c2026-card-img {
	width: 100%;
	height: 160px;
	overflow: hidden;
	position: relative;
}

.c2026-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.c2026-card:hover .c2026-card-img img {
	transform: scale(1.04);
}

/* Image placeholder swatches (cycle by post ID % 4) */
.card-img--0 { background: linear-gradient(135deg, #26a3e5 0%, #1a85c2 100%); }
.card-img--1 { background: linear-gradient(135deg, #4a9ebe 0%, #2d7fa8 100%); }
.card-img--2 { background: linear-gradient(135deg, #5bb8d4 0%, #3a9ab8 100%); }
.card-img--3 { background: linear-gradient(135deg, #7ec8e3 0%, #52a8c8 100%); }

/* featured placeholder */
.c2026-featured-img.card-img--0,
.c2026-featured-img.card-img--1,
.c2026-featured-img.card-img--2,
.c2026-featured-img.card-img--3 {
	display: flex;
	align-items: center;
	justify-content: center;
}

.c2026-card-body {
	padding: 16px 18px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.c2026-card-title {
	font-family: var(--c-font-display);
	font-size: 23px;
	font-weight: bold;
	color: var(--c-primary);
	line-height: 1.35;
}

.c2026-card-title a {
	color: var(--c-primary);
	text-decoration: none;
}

.c2026-card-title a:hover {
	color: var(--c-primary-dark);
	text-decoration: none;
}

.c2026-card-excerpt {
	font-size: 13px;
	color: var(--c-text-muted);
	line-height: 1.5;
	flex: 1;
}

/* =====================================================================
   Page header (used on single, page, category, search, 404)
   ===================================================================== */

.c2026-page-header {
	margin-bottom: 24px;
}

.c2026-page-header h1 {
	font-family: var(--c-font-display);
	font-size: 28px;
	font-weight: bold;
	color: var(--c-text);
	line-height: 1.3;
}

.c2026-page-header .c2026-post-meta {
	margin-top: 8px;
}

/* =====================================================================
   Single post / Page content
   ===================================================================== */

.c2026-article {
	background: var(--c-surface);
	border-radius: var(--c-radius);
	box-shadow: var(--c-shadow);
	padding: 32px 36px;
	max-width: 760px;
}

.c2026-article .c2026-post-thumbnail {
	margin: -32px -36px 28px;
	border-radius: var(--c-radius) var(--c-radius) 0 0;
	overflow: hidden;
	height: 320px;
}

.c2026-article .c2026-post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.c2026-article-body {
	font-size: 16px;
	line-height: 1.75;
	color: var(--c-text);
}

.c2026-article-body h2,
.c2026-article-body h3,
.c2026-article-body h4 {
	font-family: var(--c-font-display);
	color: var(--c-text);
	margin: 1.5em 0 0.5em;
}

.c2026-article-body h2 { font-size: 22px; }
.c2026-article-body h3 { font-size: 18px; }
.c2026-article-body h4 { font-size: 16px; }

.c2026-article-body p { margin-bottom: 1em; }

.c2026-article-body a { color: var(--c-primary); }

.c2026-article-body ul,
.c2026-article-body ol {
	margin: 0 0 1em 1.4em;
	list-style: initial;
}

.c2026-article-body ol { list-style: decimal; }

.c2026-article-body blockquote {
	border-left: 3px solid var(--c-primary);
	padding: 8px 16px;
	margin: 1em 0;
	color: var(--c-text-muted);
	font-style: italic;
}

.c2026-article-body img {
	border-radius: 6px;
	margin: 1em 0;
}

.c2026-article-body pre,
.c2026-article-body code {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 13px;
	background: var(--c-bg);
	border-radius: 4px;
}

.c2026-article-body pre {
	padding: 14px 18px;
	overflow-x: auto;
	margin-bottom: 1em;
}

.c2026-article-body code { padding: 1px 5px; }

/* Gutenberg */
.c2026-article-body .wp-block-image {
	margin: 1.2em 0;
}

.c2026-article-body .wp-block-image img {
	border-radius: 6px;
}

/* Post navigation */
.c2026-post-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--c-border);
	font-size: 13px;
}

.c2026-post-nav a {
	color: var(--c-primary);
}

/* =====================================================================
   Pagination
   ===================================================================== */

.c2026-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 8px;
	padding-bottom: 40px;
}

.c2026-pagination a,
.c2026-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 6px;
	font-size: 13px;
	border: 1px solid var(--c-border);
	background: var(--c-surface);
	color: var(--c-text);
	transition: background var(--c-transition), color var(--c-transition), border-color var(--c-transition);
}

.c2026-pagination a:hover {
	background: #eef6fd;
	border-color: var(--c-primary);
	color: var(--c-primary);
	text-decoration: none;
}

.c2026-pagination span.current {
	background: var(--c-primary);
	border-color: var(--c-primary);
	color: #fff;
	font-weight: bold;
}

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

.c2026-footer {
	padding: 20px 32px;
	font-size: 12px;
	color: var(--c-text-muted);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: var(--c-surface);
	margin-top: auto;
}

.c2026-footer a {
	color: var(--c-text-muted);
}

.c2026-footer a:hover {
	color: var(--c-primary);
}

/* =====================================================================
   Category / archive page headings
   ===================================================================== */

.c2026-archive-header {
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--c-border);
}

.c2026-archive-header h1 {
	font-family: var(--c-font-display);
	font-size: 22px;
	font-weight: bold;
	color: var(--c-text);
}

.c2026-archive-header p {
	font-size: 13px;
	color: var(--c-text-muted);
	margin-top: 4px;
}

/* =====================================================================
   Search results
   ===================================================================== */

.c2026-search-header {
	margin-bottom: 24px;
}

.c2026-search-header h1 {
	font-family: var(--c-font-display);
	font-size: 20px;
	color: var(--c-text);
}

.c2026-search-header h1 em {
	color: var(--c-primary);
	font-style: normal;
}

.c2026-no-results {
	background: var(--c-surface);
	border-radius: var(--c-radius);
	padding: 40px;
	text-align: center;
	color: var(--c-text-muted);
	font-size: 15px;
}

/* =====================================================================
   404 page
   ===================================================================== */

.c2026-404 {
	background: var(--c-surface);
	border-radius: var(--c-radius);
	box-shadow: var(--c-shadow);
	padding: 60px 40px;
	text-align: center;
	max-width: 480px;
}

.c2026-404-code {
	font-family: var(--c-font-display);
	font-size: 80px;
	font-weight: bold;
	color: var(--c-border);
	line-height: 1;
	margin-bottom: 12px;
}

.c2026-404 h1 {
	font-family: var(--c-font-display);
	font-size: 22px;
	color: var(--c-text);
	margin-bottom: 10px;
}

.c2026-404 p {
	font-size: 14px;
	color: var(--c-text-muted);
	margin-bottom: 24px;
}

.c2026-btn {
	display: inline-block;
	padding: 10px 22px;
	background: var(--c-primary);
	color: #fff;
	border-radius: 6px;
	font-size: 14px;
	font-weight: bold;
	transition: background var(--c-transition);
}

.c2026-btn:hover {
	background: var(--c-primary-dark);
	color: #fff;
	text-decoration: none;
}

/* =====================================================================
   Entry animation — .c2026-animate
   Only hidden when JS is confirmed active (html.c2026-js class).
   Without JS, content is visible immediately.
   ===================================================================== */

.c2026-animate {
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.c2026-js .c2026-animate {
	opacity: 0;
	transform: translateY(12px);
}

.c2026-js .c2026-animate.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
	.c2026-animate,
	.c2026-js .c2026-animate,
	.c2026-js .c2026-animate.is-visible {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* =====================================================================
   Responsive — collapse sidebar on smaller screens
   ===================================================================== */

@media (max-width: 960px) {
	.c2026-shell {
		flex-direction: column;
	}

	.c2026-sidebar {
		width: 100%;
		height: auto;
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 16px;
		padding: 16px 20px;
	}

	.c2026-avatar-wrap {
		flex-direction: row;
		text-align: left;
		gap: 12px;
	}

	.c2026-nav-section {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 4px;
	}

	.c2026-bio,
	.c2026-subscribe {
		display: none;
	}

	.c2026-grid {
		grid-template-columns: 1fr;
	}

	.c2026-content {
		padding: 20px;
	}

	.c2026-topbar {
		padding: 0 20px;
	}

	.c2026-article {
		padding: 24px 20px;
	}

	.c2026-article .c2026-post-thumbnail {
		margin: -24px -20px 24px;
	}
}

@media (max-width: 540px) {
	.c2026-topbar-sub { display: none; }
	.c2026-search-input { width: 120px; }
	.c2026-featured-body { padding: 18px 16px; }
	.c2026-featured-title { font-size: 20px; }
}
