/*
Theme Name: Kids Feel Secure
Theme URI: https://kidsfeelsecure.com
Author: Dakota
Author URI: https://kidsfeelsecure.com
Description: A warm, friendly block theme for the Kids Feel Secure brand, built on the modern WordPress Full Site Editing (block theme) architecture. Designed for parenting and family-tech blogs, with a cream-and-orange palette, rounded cards, and a clean reading experience. All colors, fonts and layout are editable from the Site Editor.
Version: 1.1.2
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kids-feel-secure
Tags: blog, news, one-column, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks
*/

/* -------------------------------------------------------------------------
   Supplemental CSS — everything structural/visual lives in theme.json.
   This file only adds the few things theme.json can't express:
   sticky header, card hover, button micro-interactions.
---------------------------------------------------------------------------*/

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

/* Sticky, slightly translucent header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: rgba(252, 251, 247, 0.92) !important;
	-webkit-backdrop-filter: saturate(180%) blur(8px);
	backdrop-filter: saturate(180%) blur(8px);
}

/* Post cards in the blog grid */
.post-card {
	height: 100%;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 34px -14px rgba(58, 43, 31, 0.28);
}

.post-card .wp-block-post-featured-image,
.post-card .wp-block-post-featured-image a,
.post-card .wp-block-post-featured-image img {
	display: block;
	width: 100%;
}

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

/* Button micro-interactions */
.wp-element-button,
.wp-block-button__link {
	text-decoration: none;
	box-shadow: 0 6px 16px -7px rgba(226, 118, 28, 0.65);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 9px 20px -7px rgba(226, 118, 28, 0.75);
}

/* Navigation */
.wp-block-navigation .wp-block-navigation-item__content {
	font-weight: 600;
}

.wp-block-navigation .current-menu-item .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary);
}

/* Footer links inherit the light footer text color */
.site-footer a {
	color: inherit;
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

/* Eyebrow label */
.eyebrow {
	margin-bottom: 0;
}

/* Featured image rounding safety */
.wp-block-post-featured-image img {
	display: block;
}

/* Comfortable comment list */
.wp-block-comment-template {
	list-style: none;
	padding-left: 0;
}

/* Secondary breadcrumb bar */
.breadcrumb-bar .breadcrumb-trail {
	margin: 0;
}

.breadcrumb-bar .breadcrumb-trail a {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
	text-decoration: none;
}

.breadcrumb-bar .breadcrumb-trail a:hover {
	text-decoration: underline;
}

/* Header logo sizing */
.site-logo-link img {
	display: block;
	height: auto;
	max-width: 215px;
}

/* Mobile navigation overlay — always solid and readable */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--base-2);
}

.wp-block-navigation__responsive-container.is-menu-open,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast);
}

/* Mobile tidy-up */
@media (max-width: 600px) {
	.site-header .site-logo-link img {
		max-width: 116px;
	}

	.site-header .wp-block-buttons .wp-block-button__link {
		padding: 0.6rem 0.95rem;
		font-size: 0.95rem;
	}
}
