/* Recipe Press - warm, vibrant food-blog styling */

:root {
	--rp-radius: 18px;
	--rp-radius-lg: 28px;
	--rp-transition: 0.25s ease;
	--rp-shadow: 0 10px 30px rgba(150, 70, 110, 0.10);
	--rp-shadow-lg: 0 20px 45px rgba(150, 70, 110, 0.18);
}

body { -webkit-font-smoothing: antialiased; }

/* Links */
a { text-underline-offset: 2px; }

/* Eyebrow / small labels */
.rp-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent);
	margin-bottom: 0.25rem;
}

/* Section headings get a playful accent underline */
main h2.wp-block-heading {
	position: relative;
}
main h2.wp-block-heading::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 0.5rem;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--wp--preset--color--accent), var(--wp--preset--color--accent-2));
}
.has-text-align-center h2.wp-block-heading::after,
h2.wp-block-heading.has-text-align-center::after { margin-left: auto; margin-right: auto; }

/* Site header */
.wp-block-site-title a { text-decoration: none; color: var(--wp--preset--color--foreground); }
.wp-block-site-title a:hover { color: var(--wp--preset--color--accent); }
.wp-block-navigation a { text-decoration: none; font-weight: 500; }
.wp-block-navigation a:hover { color: var(--wp--preset--color--accent); }

/* Header search */
header .wp-block-search { margin: 0; }
header .wp-block-search .wp-block-search__inside-wrapper { border: none; }
header .wp-block-search__button {
	background: var(--wp--preset--color--accent);
	color: #fff;
	border-radius: 999px;
	padding: 9px;
	border: none;
}
header .wp-block-search__button:hover { background: var(--wp--preset--color--berry); }

/* Header social icons */
.rp-header-social { gap: 6px; }
@media (max-width: 781px) { .rp-header-social { display: none; } }

/* Navigation submenu */
.wp-block-navigation .wp-block-navigation__submenu-container {
	border-radius: 14px;
	border-color: var(--wp--preset--color--border);
	box-shadow: var(--rp-shadow);
	padding: 8px;
	background: #fff;
}
.wp-block-navigation .wp-block-navigation__submenu-container a:hover {
	background: var(--wp--preset--color--accent-soft);
	border-radius: 8px;
}

/* Hero */
.rp-hero {
	background: var(--wp--preset--gradient--warm, linear-gradient(135deg, #ffe5d6, #ffe9b8));
	border-radius: var(--rp-radius-lg);
	box-shadow: var(--rp-shadow);
	position: relative;
	overflow: hidden;
}
.rp-hero h1 { color: var(--wp--preset--color--foreground); }
.rp-hero .wp-block-button__link { box-shadow: 0 8px 20px rgba(224, 96, 143, 0.35); }

/* Recipe grid (query loop) */
.rp-recipe-grid { gap: 28px; }
.rp-recipe-grid .wp-block-post {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--rp-radius);
	overflow: hidden;
	transition: transform var(--rp-transition), box-shadow var(--rp-transition);
	box-shadow: var(--rp-shadow);
	display: flex;
	flex-direction: column;
}
.rp-recipe-grid .wp-block-post:hover {
	transform: translateY(-6px);
	box-shadow: var(--rp-shadow-lg);
}
.rp-recipe-grid .wp-block-post-featured-image {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.rp-recipe-grid .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.rp-recipe-grid .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.06); }
.rp-recipe-grid .wp-block-post-terms {
	padding: 16px 18px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.rp-recipe-grid .wp-block-post-terms a {
	display: inline-block;
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--accent);
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	padding: 4px 10px;
	border-radius: 999px;
}
.rp-recipe-grid .wp-block-post-terms a:hover { background: var(--wp--preset--color--accent); color: #fff; }
.rp-recipe-grid .wp-block-post-title {
	font-size: 1.3rem;
	margin: 0;
	padding: 12px 18px 0;
}
.rp-recipe-grid .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--foreground); }
.rp-recipe-grid .wp-block-post-title a:hover { color: var(--wp--preset--color--accent); }
.rp-recipe-grid .wp-block-post-excerpt {
	padding: 8px 18px 20px;
	color: var(--wp--preset--color--muted);
	font-size: 0.95rem;
	margin: 0;
	margin-top: auto;
}
.rp-recipe-grid .wp-block-post-excerpt__excerpt { margin: 0; }

/* Category tiles (homepage) - colorful */
.rp-cat-grid { gap: 20px; }
.rp-cat-card {
	border: none;
	border-radius: var(--rp-radius);
	padding: 30px 16px;
	text-align: center;
	box-shadow: var(--rp-shadow);
	transition: transform var(--rp-transition), box-shadow var(--rp-transition);
}
.rp-cat-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--rp-shadow-lg); }
.rp-cat-grid > .wp-block-group:nth-child(4n+1) { background: #ffe1ec; }
.rp-cat-grid > .wp-block-group:nth-child(4n+2) { background: #fdeaf3; }
.rp-cat-grid > .wp-block-group:nth-child(4n+3) { background: #eafaf3; }
.rp-cat-grid > .wp-block-group:nth-child(4n+4) { background: #f3ebfb; }
.rp-cat-emoji { font-size: 2.6rem; margin: 0 0 8px; line-height: 1; }
.rp-cat-card h3 { margin: 0; }
.rp-cat-card h3 a { text-decoration: none; color: var(--wp--preset--color--foreground); }
.rp-cat-card:hover h3 a { color: var(--wp--preset--color--accent); }

/* Author intro (homepage) */
.rp-author {
	background: var(--wp--preset--gradient--warm, #ffe5d6);
	border-radius: var(--rp-radius-lg);
	box-shadow: var(--rp-shadow);
}
.rp-author .is-style-outline .wp-block-button__link {
	background: #fff;
	color: var(--wp--preset--color--accent);
	border: 2px solid var(--wp--preset--color--accent);
}
.rp-author .is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent);
	color: #fff;
}

/* Pill links */
.rp-pills .wp-block-button__link {
	background: #fff;
	color: var(--wp--preset--color--foreground);
	border: 1px solid var(--wp--preset--color--border);
}
.rp-pills .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent);
	color: #fff;
}

/* Single recipe intro */
.rp-recipe-hero-image img { border-radius: var(--rp-radius-lg); width: 100%; height: auto; box-shadow: var(--rp-shadow); }
.single-recipe .wp-block-post-terms a,
.single .wp-block-post-terms a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
	font-weight: 700;
}

/* Buttons everywhere a touch bolder */
.wp-block-button__link { box-shadow: 0 6px 16px rgba(224, 96, 143, 0.22); }

/* Footer */
.rp-footer { border-top: 3px solid var(--wp--preset--color--accent-soft); }
.rp-footer-top {
	display: grid;
	grid-template-columns: 1fr 1fr 1.7fr;
	gap: 40px;
	align-items: start;
}
.rp-footer-title {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 800;
	color: var(--wp--preset--color--foreground);
	margin: 0 0 0.3rem;
}
.rp-footer-list { list-style: none; margin: 0; padding: 0; }
.rp-footer-list li { margin: 0; padding: 4px 0; }
.rp-footer-list a {
	text-decoration: none;
	color: var(--wp--preset--color--muted);
	font-weight: 500;
	transition: color var(--rp-transition);
}
.rp-footer-list a:hover { color: var(--wp--preset--color--accent); }

/* Footer email signup box */
.rp-signup {
	background: var(--wp--preset--gradient--sunset, linear-gradient(135deg, #e0608f 0%, #f4a6c0 100%));
	border-radius: var(--rp-radius-lg);
	padding: 28px 30px;
	color: #fff;
	box-shadow: var(--rp-shadow-lg);
}
.rp-signup-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.78rem;
	font-weight: 800;
	margin: 0 0 0.2rem;
	opacity: 0.92;
}
.rp-signup-title {
	font-family: var(--wp--preset--font-family--display, inherit);
	font-size: 1.55rem;
	line-height: 1.15;
	margin: 0 0 0.35rem;
	color: #fff;
}
.rp-signup-sub { margin: 0 0 1rem; font-size: 0.95rem; opacity: 0.95; }
.rp-signup-form { display: flex; flex-wrap: wrap; gap: 10px; }
.rp-signup-input {
	flex: 1 1 140px;
	min-width: 0;
	border: none;
	border-radius: 999px;
	padding: 12px 18px;
	font-size: 0.95rem;
	color: var(--wp--preset--color--foreground);
	background: #fff;
}
.rp-signup-input::placeholder { color: #b9a7af; }
.rp-signup-input:focus { outline: 3px solid rgba(255,255,255,0.5); }
.rp-signup-btn {
	flex: 0 0 auto;
	border: none;
	border-radius: 999px;
	padding: 12px 26px;
	font-weight: 800;
	font-size: 0.95rem;
	cursor: pointer;
	color: var(--wp--preset--color--berry);
	background: #fff;
	transition: transform var(--rp-transition);
}
.rp-signup-btn:hover { transform: translateY(-2px); }

/* Footer bottom bar */
.rp-footer-bottom {
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: 1.5rem;
}
.rp-footer-bottom .wp-block-site-title a {
	font-family: var(--wp--preset--font-family--display, inherit);
	text-decoration: none;
	color: var(--wp--preset--color--foreground);
}
.rp-footer-bottom p { margin: 0; }

@media (max-width: 900px) {
	.rp-footer-top { grid-template-columns: 1fr 1fr; }
	.rp-signup { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.rp-footer-top { grid-template-columns: 1fr; }
	.rp-footer-bottom { justify-content: center; text-align: center; }
	.rp-footer-bottom .wp-block-group { align-items: center; }
	.rp-footer-bottom .has-text-align-right,
	.rp-footer-bottom .wp-block-site-title { text-align: center; }
}

/* Featured image links fill */
figure.wp-block-post-featured-image a { display: block; height: 100%; }

/* ===== About / Sobre mí page ===== */
.rp-about { align-items: center; }
.rp-about-photo { margin: 0; }
.rp-about-photo img {
	width: 100%;
	border-radius: var(--rp-radius-lg);
	box-shadow: var(--rp-shadow-lg);
	object-fit: cover;
	aspect-ratio: 4 / 5;
	display: block;
}
.rp-about-title {
	font-family: var(--wp--preset--font-family--display, inherit);
	color: var(--wp--preset--color--foreground);
}
.rp-about .wp-block-post-content p { color: var(--wp--preset--color--foreground); line-height: 1.75; }
.rp-about .wp-block-post-content :where(p) { margin-bottom: 1rem; }

/* Follow bar */
.rp-follow {
	background: var(--wp--preset--color--accent-soft);
	border-radius: var(--rp-radius-lg);
}
.rp-follow-title {
	font-family: var(--wp--preset--font-family--display, inherit);
	color: var(--wp--preset--color--berry);
}
.rp-follow-social { margin-top: 0.4rem; }

@media (max-width: 781px) {
	.rp-about { flex-wrap: wrap; }
	.rp-about-photo img { aspect-ratio: 4 / 3; }
}

/* ===== Featured row (Pinch of Yum style) ===== */
.rk-featured {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.rk-featured-card {
	position: relative;
	display: block;
	border-radius: var(--rp-radius);
	overflow: hidden;
	text-decoration: none;
	box-shadow: var(--rp-shadow);
	transition: transform var(--rp-transition), box-shadow var(--rp-transition);
}
.rk-featured-card:hover { transform: translateY(-5px); box-shadow: var(--rp-shadow-lg); }
.rk-featured-img {
	display: block;
	aspect-ratio: 3 / 4;
	background-size: cover;
	background-position: center;
	background-color: var(--wp--preset--color--accent-soft);
	transition: transform 0.4s ease;
}
.rk-featured-card:hover .rk-featured-img { transform: scale(1.05); }
.rk-featured-label {
	position: absolute;
	left: 14px;
	bottom: 52px;
	background: var(--wp--preset--color--accent-2);
	color: #2c2117;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.rk-featured-title {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 28px 14px 14px;
	color: #fff;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 1.02rem;
	line-height: 1.2;
	background: linear-gradient(to top, rgba(20,12,6,0.85), rgba(20,12,6,0));
}

/* ===== Category circles ===== */
.rk-circles {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 22px;
}
.rk-circle {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	width: 96px;
}
.rk-circle-img {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	background-color: var(--wp--preset--color--accent-soft);
	border: 3px solid #fff;
	box-shadow: var(--rp-shadow);
	transition: transform var(--rp-transition), border-color var(--rp-transition);
}
.rk-circle:hover .rk-circle-img { transform: scale(1.06); border-color: var(--wp--preset--color--accent); }
.rk-circle-name {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--wp--preset--color--foreground);
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.rk-circle:hover .rk-circle-name { color: var(--wp--preset--color--accent); }

/* ===== Latest + sidebar layout ===== */
.rp-latest-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.rp-post-list .wp-block-post {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 20px;
	padding: 0 0 24px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.rp-post-list .wp-block-post-featured-image { margin: 0; border-radius: var(--rp-radius); overflow: hidden; aspect-ratio: 4/3; }
.rp-post-list .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.rp-post-list .wp-block-post-date { color: var(--wp--preset--color--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.rp-post-list .wp-block-post-title { font-size: 1.4rem; margin: 6px 0; }
.rp-post-list .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--foreground); }
.rp-post-list .wp-block-post-title a:hover { color: var(--wp--preset--color--accent); }
.rp-post-list .wp-block-post-excerpt { color: var(--wp--preset--color--muted); margin: 0; }
.rp-post-list .wp-block-read-more, .rp-post-list .wp-block-post-excerpt__more-link {
	display: inline-block; margin-top: 8px; color: var(--wp--preset--color--accent);
	font-weight: 700; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.06em; text-decoration: none;
}

/* Collections sidebar */
.rp-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 24px; }
.rk-collections {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--rp-radius);
	padding: 22px;
	box-shadow: var(--rp-shadow);
}
.rk-collections-title { margin: 0 0 12px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; }
.rk-collections-list { list-style: none; margin: 0; padding: 0; }
.rk-collections-list li { border-bottom: 1px dashed var(--wp--preset--color--border); }
.rk-collections-list li:last-child { border-bottom: none; }
.rk-collections-list a {
	display: flex; align-items: center; justify-content: space-between;
	padding: 11px 0; text-decoration: none; color: var(--wp--preset--color--foreground);
	font-weight: 600;
}
.rk-collections-list a:hover .rk-coll-name { color: var(--wp--preset--color--accent); }
.rk-coll-count {
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--accent);
	font-size: 0.78rem; font-weight: 800;
	padding: 2px 10px; border-radius: 999px;
}

/* Responsive */
@media (max-width: 900px) {
	.rk-featured { grid-template-columns: repeat(2, 1fr); }
	.rp-latest-layout { grid-template-columns: 1fr; }
	.rp-sidebar { position: static; }
}
@media (max-width: 600px) {
	.rp-post-list .wp-block-post { grid-template-columns: 110px 1fr; gap: 14px; }
	.rk-circle { width: 80px; }
	.rk-circle-img { width: 72px; height: 72px; }
}

/* Pagination */
.wp-block-query-pagination a, .wp-block-query-pagination .wp-block-query-pagination-numbers {
	font-weight: 600;
}
.wp-block-query-pagination .current { color: var(--wp--preset--color--accent); }
