/*
Theme Name: GeneratePress Child
Description: Reusable, publish-ready child theme with trust/credibility features, SEO schema, reading-experience enhancements, performance/accessibility helpers, and custom article-building block patterns. Every feature is configurable from Appearance -> Customize. Works on any GeneratePress-powered site.
Template: generatepress
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-child
*/

/* ==========================================================================
   0. Accessibility basics
   ========================================================================== */
.gpc-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: 12px 20px;
	background: #000;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border-radius: 0 0 6px 0;
}

.gpc-skip-link:focus {
	left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.gpc-toc-toggle:focus-visible {
	outline: 3px solid #1a73e8;
	outline-offset: 2px;
}

@media ( prefers-reduced-motion: reduce ) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   1. Entry header / post meta (date + author + reading time + last updated)
   ========================================================================== */
.entry-header {
	margin-bottom: 1rem;
	text-align: left;
}

.entry-header h2 {
	font-size: clamp( 1.25rem, 2.5vw, 1.75rem );
	font-weight: 600;
	margin: 0;
	transition: color 0.3s ease;
}

.entry-header h2:hover {
	color: #e67e22;
}

.post-meta-info {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: center;
}

.post-date,
.post-author {
	font-size: 14px;
	color: #000;
	font-weight: bolder;
}

.gpc-reading-time,
.gpc-last-updated {
	display: inline-block;
	font-size: 13px;
	color: #555;
	background: #f1f1f1;
	padding: 3px 10px;
	border-radius: 20px;
}

/* ==========================================================================
   2. Breadcrumbs
   ========================================================================== */
.gpc-breadcrumbs {
	font-size: 0.85rem;
	color: #666;
	margin-bottom: 1rem;
	word-break: break-word;
}

.gpc-breadcrumbs a {
	color: var( --gpc-primary, #1a73e8 );
	text-decoration: none;
}

.gpc-breadcrumbs a:hover {
	text-decoration: underline;
}

.gpc-breadcrumb-sep {
	margin: 0 6px;
	color: #aaa;
}

/* ==========================================================================
   3. Disclosure banner
   ========================================================================== */
.gpc-disclosure-banner {
	background: #fff8e6;
	border: 1px solid #f0dca0;
	border-left: 4px solid #e6a817;
	padding: 12px 16px;
	font-size: 0.9rem;
	color: #6b5300;
	border-radius: 6px;
	margin-bottom: 1.5rem;
}

/* ==========================================================================
   4. Table of contents
   ========================================================================== */
.gpc-toc {
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.75rem;
}

.gpc-toc-toggle {
	display: none;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	padding: 0;
}

.gpc-toc-list {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
}

.gpc-toc-list li {
	margin-bottom: 0.5rem;
}

.gpc-toc-list .gpc-toc-sub {
	margin-left: 1.25rem;
	font-size: 0.92em;
}

.gpc-toc-list a {
	color: var( --gpc-primary, #1a73e8 );
	text-decoration: none;
}

.gpc-toc-list a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   5. Post card layout (thumbnail + excerpt)
   ========================================================================== */
.post-content-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	padding: 1.5rem;
	border: 1px solid #eaeaea;
	border-radius: 12px;
	background-color: #fff;
	box-shadow: 0 2px 5px rgba( 0, 0, 0, 0.1 );
	margin-bottom: 1.5rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-content-wrapper:hover {
	box-shadow: 0 6px 12px rgba( 0, 0, 0, 0.1 );
	transform: translateY( -3px );
}

.post-content-wrapper .post-thumbnail {
	flex: 0 0 30%;
	margin-bottom: 0;
}

.post-content-wrapper .post-content {
	flex: 1;
	min-width: 0;
}

.post-thumbnail img {
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 2px 4px rgba( 0, 0, 0, 0.08 );
}

.entry-summary {
	font-size: 1rem;
	line-height: 1.6;
	color: #7f8c8d;
	margin-bottom: 1rem;
	text-align: justify;
}

.inside-article {
	padding: 29px;
	border-radius: 15px;
}

/* ==========================================================================
   6. Read More button (single definition)
   ========================================================================== */
.read-more-button {
	display: inline-block;
	margin-top: 10px;
	padding: 0.75rem 1.5rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #fff;
	background-color: #e67e22;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 6px;
	box-shadow: 0 2px 5px rgba( 0, 0, 0, 0.1 );
	transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.read-more-button:hover {
	background-color: #d35400;
	box-shadow: 0 4px 10px rgba( 0, 0, 0, 0.2 );
	transform: translateY( -3px );
}

.read-more {
	display: inline-block;
	font-size: 1em;
	color: #0073e6;
	text-decoration: none;
	font-weight: bold;
	padding: 6px 12px;
	border: 2px solid #0073e6;
	border-radius: 4px;
	margin-top: 10px;
	transition: background-color 0.3s, color 0.3s;
}

.read-more:hover {
	background-color: #0073e6;
	color: #fff;
}

/* ==========================================================================
   7. Related posts / search "no results" grid (shared .latest-posts/.post-box)
   ========================================================================== */
.gpc-related-posts {
	margin-top: 2.5rem;
	border-top: 1px solid #eaeaea;
	padding-top: 2rem;
}

.gpc-related-posts h3 {
	margin-bottom: 1.25rem;
}

.latest-posts {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 240px, 1fr ) );
	gap: 20px;
	padding: 0;
}

.post-box {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.1 );
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	padding: 15px;
	display: flex;
	flex-direction: column;
}

.post-box:hover {
	transform: translateY( -5px );
	box-shadow: 0 8px 25px rgba( 0, 0, 0, 0.15 );
}

.post-box .post-thumbnail {
	margin-bottom: 15px;
	overflow: hidden;
	border-radius: 6px;
}

.post-box .post-content h4 {
	font-size: 1.3em;
	font-weight: bold;
	color: #333;
	margin-bottom: 10px;
}

.post-box .post-content p {
	font-size: 1em;
	color: #666;
	line-height: 1.5;
	margin-bottom: 10px;
}

/* ==========================================================================
   8. Author box
   ========================================================================== */
.author-box {
	margin-top: 30px;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 10px;
	background: #f9f9f9;
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.author-box-avatar img {
	border-radius: 50%;
}

.author-box h4 {
	margin: 0 0 8px;
	font-size: 18px;
}

.author-box-name {
	font-weight: 600;
	margin-bottom: 6px;
}

.author-credentials {
	font-weight: 400;
	color: #666;
}

.author-box-bio {
	color: #555;
	margin: 0;
}

/* ==========================================================================
   9. Custom article-building blocks
   ========================================================================== */
.pros-cons-box {
	background: #fafafa;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 1.5rem;
	margin: 1.75rem 0;
}

.pros-column h4 {
	color: #1e8e3e;
}

.cons-column h4 {
	color: #d93025;
}

.pros-list li::marker {
	color: #1e8e3e;
}

.cons-list li::marker {
	color: #d93025;
}

.verdict-box {
	background: #eef6ff;
	border-left: 4px solid var( --gpc-primary, #1a73e8 );
	border-radius: 8px;
	padding: 1.5rem 1.75rem;
	margin: 1.75rem 0;
}

.verdict-rating {
	font-size: 1.75rem;
	font-weight: 700;
	color: var( --gpc-primary, #1a73e8 );
	margin: 0.25rem 0 0.75rem;
}

.ingredient-table-wrapper {
	margin: 1.75rem 0;
	overflow-x: auto;
}

.ingredient-table-wrapper table {
	width: 100%;
	border-collapse: collapse;
}

.ingredient-table-wrapper th,
.ingredient-table-wrapper td {
	border: 1px solid #e0e0e0;
	padding: 10px 14px;
	text-align: left;
}

.ingredient-table-wrapper th {
	background: #f5f5f5;
	font-weight: 700;
}

/* ==========================================================================
   10. Global typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
	font-weight: bold;
	margin-top: 1.5em;
	margin-bottom: 0.5em;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.75em; }
h4 { font-size: 1.5em; }
h5 { font-size: 1.25em; }
h6 { font-size: 1em; }

p {
	font-family: 'Georgia', 'Charter', Cambria, 'Times New Roman', Times, serif;
	font-size: 22px;
	line-height: 1.8;
	color: #333;
	margin-bottom: 1.5em;
	letter-spacing: 0.02em;
}

blockquote {
	font-family: 'Charter', Georgia, Cambria, 'Times New Roman', Times, serif;
	font-size: 1.2em;
	font-style: italic;
	line-height: 1.6;
	margin: 1.5em 0;
	padding-left: 1.2em;
	border-left: 4px solid #e0e0e0;
	color: #555;
}

ul, ol {
	font-size: 22px;
	line-height: 1.8;
	margin-bottom: 1.5em;
	padding-left: 2em;
}

li {
	margin-bottom: 0.8em;
}

body a {
	text-decoration: none;
	font-weight: 500;
}

body a:hover {
	text-decoration: underline;
}

.entry-content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 1.5em 0;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba( 0, 0, 0, 0.1 );
}

.entry-content img.alignleft {
	float: left;
	margin-right: 1.5em;
	max-width: 40%;
}

.entry-content img.alignright {
	float: right;
	margin-left: 1.5em;
	max-width: 40%;
}

.entry-content img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 80%;
}

/* ==========================================================================
   11. HTML Forms plugin styling
   ========================================================================== */
.wpf-html-form input,
.wpf-html-form textarea,
.wpf-html-form select {
	width: 100%;
	max-width: 100%;
	margin-bottom: 15px;
	border: 1px solid #ccc;
	padding: 10px 15px;
	box-sizing: border-box;
}

.wpf-html-form label {
	display: block;
	padding-bottom: 10px;
	font-weight: bold;
}

/* ==========================================================================
   12. Misc / navigation
   ========================================================================== */
.menu {
	padding-top: 10px;
}

.wp-block-heading {
	padding-top: 20px;
	margin-top: 0;
}

.wp-block-categories {
	padding-left: 0;
}

/* Box-sizing reset so padding never causes horizontal overflow on small screens. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

img,
video,
iframe,
table {
	max-width: 100%;
}

/* ==========================================================================
   13. Responsive - Tablet (<=1024px)
   ========================================================================== */
@media ( max-width: 1024px ) {
	p, ul, ol {
		font-size: 19px;
	}

	.post-content-wrapper .post-thumbnail {
		flex: 0 0 38%;
	}

	.latest-posts {
		grid-template-columns: repeat( auto-fit, minmax( 220px, 1fr ) );
	}
}

/* ==========================================================================
   14. Responsive - Small tablet / large phone (<=768px)
   ========================================================================== */
@media ( max-width: 768px ) {
	.latest-posts {
		grid-template-columns: 1fr;
		padding: 0;
	}

	.gpc-toc-toggle {
		display: block;
	}

	.gpc-toc.is-collapsed .gpc-toc-list {
		display: none;
	}

	.post-box .post-content h4 {
		font-size: 1.2em;
	}

	.post-box .post-content p {
		font-size: 0.95em;
	}

	.post-content-wrapper {
		flex-direction: column;
		gap: 1rem;
		padding: 1rem;
	}

	.post-content-wrapper .post-thumbnail {
		flex: 1 1 auto;
		width: 100%;
	}

	.entry-summary {
		font-size: 0.95rem;
		text-align: left;
	}

	.read-more-button {
		width: auto;
	}

	.author-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	p, ul, ol {
		font-size: 17px;
	}
}

/* ==========================================================================
   15. Responsive - Phone (<=480px)
   ========================================================================== */
@media ( max-width: 480px ) {
	.inside-article {
		padding: 16px;
	}

	.gpc-disclosure-banner,
	.gpc-toc,
	.pros-cons-box,
	.verdict-box {
		padding: 1rem;
	}

	.post-meta-info {
		gap: 8px;
	}

	.verdict-rating {
		font-size: 1.4rem;
	}

	h1 { font-size: 1.9em; }
	h2 { font-size: 1.6em; }
	h3 { font-size: 1.4em; }

	p, ul, ol {
		font-size: 16px;
	}
}
