/*
 Theme Name:   Show Me Ideas
 Theme URI:
 Description:  Child theme for Twenty Twenty-Four
 Author:       Daniel Zevedei
 Author URI:
 Template:     twentytwentyfour
 Version:      1.0.3
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  showmeideas
*/

/* ── Category Cards ── */
.smi-category-card {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	overflow: hidden;
}
.smi-category-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.smi-category-card img {
	transition: transform 0.35s ease;
}
.smi-category-card:hover img {
	transform: scale(1.06);
}
.smi-category-card h3 {
	margin: 0;
}
.smi-category-card h3 a {
	text-decoration: none;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0,0,0,0.3);
	transition: color 0.2s ease;
}
.smi-category-card:hover h3 a {
	color: var(--wp--preset--color--accent);
}

/* ── Post Cards ── */
.smi-post-card {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	overflow: hidden;
}
.smi-post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.smi-post-card .wp-block-post-featured-image img {
	transition: transform 0.3s ease;
}
.smi-post-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}
.smi-post-card .wp-block-post-featured-image {
	overflow: hidden;
}
.smi-post-card .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	transition: color 0.2s ease;
}
.smi-post-card:hover .wp-block-post-title a {
	color: var(--wp--preset--color--secondary);
}

/* ── Hero Cover ── */
.smi-hero .wp-block-cover__inner-container {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ── Header Search ── */
.smi-header-search .wp-block-search__input {
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 50px;
	padding: 8px 16px;
	font-size: 0.85rem;
	background: var(--wp--preset--color--base);
	transition: border-color 0.2s ease;
}
.smi-header-search .wp-block-search__input:focus {
	border-color: var(--wp--preset--color--secondary);
	outline: none;
}
.smi-header-search .wp-block-search__button {
	border-radius: 50px;
	background: var(--wp--preset--color--secondary);
	color: #fff;
	border: none;
	padding: 8px 12px;
}

/* ── Classic Nav Menus ── */
.smi-nav__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: var(--wp--preset--spacing--30);
	align-items: center;
}
.smi-nav__list li a {
	text-decoration: none;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.7rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--contrast);
	transition: color 0.2s ease;
}
.smi-nav__list li a:hover {
	color: var(--wp--preset--color--secondary);
}
/* Footer nav variant */
.smi-footer-nav__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1.5rem;
}
.smi-footer-nav__list li a {
	text-decoration: none;
	font-size: 0.9rem;
	line-height: 2;
	color: rgba(255,255,255,0.7);
	transition: color 0.2s ease;
}
.smi-footer-nav__list li a:hover {
	color: var(--wp--preset--color--accent);
}

/* ── Hero Button ── */
.smi-hero-btn .wp-block-button__link {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.smi-hero-btn .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(232,115,74,0.4);
}

/* ── Newsletter Button ── */
.smi-newsletter-btn .wp-block-button__link {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.smi-newsletter-btn .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ── Footer Links ── */
footer .wp-block-list a {
	text-decoration: none;
	color: rgba(255,255,255,0.7);
	transition: color 0.2s ease;
}
footer .wp-block-list a:hover {
	color: var(--wp--preset--color--accent);
}

/* ── Post Content Images ── */
.wp-block-post-content figure,
.wp-block-post-content .wp-block-image {
	max-width: 100% !important;
	overflow: hidden;
}
.wp-block-post-content img,
.wp-block-post-content .wp-block-image img {
	max-width: 100% !important;
	width: 100%;
	height: auto !important;
	border-radius: 12px;
}
.wp-block-post-content .wp-block-image figcaption {
	font-size: 0.8rem;
	color: var(--wp--preset--color--contrast-2);
	text-align: center;
	margin-top: 8px;
}

/* ── Sidebar ── */
.smi-sidebar-inner {
	position: sticky;
	top: 2rem;
}

/* Latest posts sidebar widget */
.smi-sidebar-latest {
	list-style: none;
	padding: 0;
	margin: 0;
}
.smi-sidebar-latest li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(0,0,0,0.06);
}
.smi-sidebar-latest li:last-child {
	border-bottom: none;
}
.smi-sidebar-latest .wp-block-latest-posts__featured-image {
	flex-shrink: 0;
	margin: 0 !important;
	float: none !important;
}
.smi-sidebar-latest .wp-block-latest-posts__featured-image.alignleft {
	float: none !important;
	margin: 0 !important;
}
.smi-sidebar-latest .wp-block-latest-posts__featured-image a {
	display: block;
	width: 56px !important;
	height: 56px !important;
	overflow: hidden;
	border-radius: 10px;
}
.smi-sidebar-latest .wp-block-latest-posts__featured-image img {
	width: 56px !important;
	height: 56px !important;
	max-width: 56px !important;
	object-fit: cover;
	border-radius: 10px;
	display: block;
	transition: transform 0.2s ease;
}
.smi-sidebar-latest li:hover .wp-block-latest-posts__featured-image img {
	transform: scale(1.06);
}
.smi-sidebar-latest a,
.smi-sidebar-latest a:where(:not(.wp-element-button)),
.smi-sidebar-latest li a {
	text-decoration: none !important;
}
.smi-sidebar-latest li .wp-block-latest-posts__post-title {
	text-decoration: none !important;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	font-size: 0.85rem;
	line-height: 1.4;
	transition: color 0.2s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.smi-sidebar-latest li:hover .wp-block-latest-posts__post-title {
	color: var(--wp--preset--color--secondary);
}
.smi-sidebar-latest .wp-block-latest-posts__post-date {
	font-size: 0.7rem;
	color: var(--wp--preset--color--contrast-2);
	margin-top: 2px;
}

/* ── Sticky Header ── */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 999;
}
header.wp-block-template-part .has-white-background-color {
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.admin-bar header.wp-block-template-part {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar header.wp-block-template-part {
		top: 46px;
	}
}

/* ── Header wrapper — needed for mobile dropdown positioning ── */
.has-white-background-color > .wp-block-group {
	position: relative;
}

/* ── Hamburger Button ── */
.smi-hamburger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	flex-direction: column;
	gap: 5px;
	z-index: 1001;
}
.smi-hamburger span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--wp--preset--color--contrast);
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}
.smi-hamburger.is-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.smi-hamburger.is-active span:nth-child(2) {
	opacity: 0;
}
.smi-hamburger.is-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ── Author Box ── */
.smi-author-box {
	margin-top: 48px;
	padding: 24px 28px;
	background: linear-gradient(135deg, #f8f6f4 0%, #fdfcfb 100%);
	border-left: 3px solid var(--wp--preset--color--secondary, #e8734a);
	border-radius: 2px 12px 12px 2px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.04);
	overflow: hidden;
}
.smi-author-box img.smi-author-avatar {
	float: left;
	width: 56px !important;
	height: 56px !important;
	max-width: 56px !important;
	border-radius: 50% !important;
	object-fit: cover;
	margin: 2px 18px 12px 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.smi-author-label {
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--secondary, #e8734a);
	display: block;
	margin-bottom: 1px;
}
.smi-author-name {
	font-family: var(--wp--preset--font-family--heading, 'DM Serif Display', serif);
	font-size: 1.1rem;
	font-weight: 400;
	color: var(--wp--preset--color--contrast, #1d1d1d);
	line-height: 1.3;
	display: block;
}
.smi-author-bio {
	font-size: 0.82rem;
	line-height: 1.65;
	color: #6b6b6b;
	margin: 8px 0 0;
	clear: none;
}
@media (max-width: 480px) {
	.smi-author-box {
		padding: 20px;
	}
	.smi-author-box img.smi-author-avatar {
		width: 44px !important;
		height: 44px !important;
		max-width: 44px !important;
		margin-right: 14px;
	}
	.smi-author-bio {
		clear: left;
	}
}

/* ── Responsive Adjustments ── */
@media (max-width: 781px) {
	.smi-categories-grid .wp-block-column {
		flex-basis: calc(50% - var(--wp--preset--spacing--20)) !important;
	}

	/* Show hamburger, hide nav */
	.smi-hamburger {
		display: flex;
	}
	.smi-nav-wrap {
		display: none !important;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column !important;
		padding: 20px var(--wp--preset--spacing--30);
		box-shadow: 0 8px 24px rgba(0,0,0,0.1);
		z-index: 1000;
		gap: 16px !important;
	}
	.smi-nav-wrap.is-open {
		display: flex !important;
	}
	.smi-nav__list {
		flex-direction: column;
		gap: 0;
		width: 100%;
	}
	.smi-nav__list li {
		width: 100%;
	}
	.smi-nav__list li a {
		display: block;
		padding: 12px 0;
		font-size: 0.85rem;
		border-bottom: 1px solid rgba(0,0,0,0.06);
	}
	.smi-nav__list li:last-child a {
		border-bottom: none;
	}
	.smi-header-search {
		width: 100%;
	}
	.smi-header-search .wp-block-search__inside-wrapper {
		width: 100%;
	}
	.smi-header-search .wp-block-search__input {
		width: 100% !important;
	}
}
@media (max-width: 480px) {
	.smi-categories-grid .wp-block-column {
		flex-basis: 100% !important;
	}
}