/*
Theme Name: GeneratePress Modern
Theme URI: https://generatepress.com
Description: A modern child theme for GeneratePress with grid layouts, sleek UI cards, and improved typography. Fully responsive.
Author: Assistant
Author URI: 
Template: generatepress
Version: 1.0.0
*/

/* ==========================================================================
   CSS Variables for Easy Maintenance
   ========================================================================== */
:root {
	--gp-modern-bg: #f8f9fa; /* Light fresh background */
	--gp-modern-card-bg: #ffffff;
    
	/* Colors */
	--gp-modern-text: #333333;
	--gp-modern-text-light: #666666;
	--gp-modern-accent: #0f172a; /* Slate 900 */
	--gp-modern-accent-hover: #334155; /* Slate 700 */
    
	/* Shadows */
	--gp-modern-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--gp-modern-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--gp-modern-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
	/* Radius */
	--gp-modern-radius: 12px;
	--gp-modern-radius-img: 12px 12px 0 0;
	
	/* Typography */
	--gp-modern-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Base Body Styles */
body {
	background-color: var(--gp-modern-bg);
	font-family: var(--gp-modern-font);
	color: var(--gp-modern-text);
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--gp-modern-accent);
}

/* ==========================================================================
   Grid Layout for Archives (Homepage & Categories)
   ========================================================================== */
.archive .site-main,
.blog .site-main,
.search-results .site-main {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2rem;
	padding: 1rem 0; /* Adding a bit of padding */
}

/* Targeting individual articles in Grid */
.archive .site-main .generate-columns-container,
.blog .site-main .generate-columns-container,
.archive .site-main article, 
.blog .site-main article,
.search-results .site-main article {
	margin-bottom: 0; 
	width: 100%;
}

/* Remove default float if GeneratePress columns are active */
.generate-columns {
	padding: 0 !important;
	float: none !important;
	width: 100% !important;
}

/* ==========================================================================
   Post Card Styling
   ========================================================================== */
.generate-columns-container .post,
.archive article,
.blog article {
	background: var(--gp-modern-card-bg);
	border-radius: var(--gp-modern-radius);
	box-shadow: var(--gp-modern-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden; /* So image respects radius */
}

/* Hover effect on Cards */
.generate-columns-container .post:hover,
.archive article:hover,
.blog article:hover {
	transform: translateY(-5px);
	box-shadow: var(--gp-modern-shadow-lg);
}

/* Card Content Area */
.generate-columns-container .inside-article,
.archive article .inside-article,
.blog article .inside-article {
	padding: 1.5rem !important;
	display: flex;
	flex-direction: column;
	flex-grow: 1; /* Stretch to fill remaining space */
}

/* Post Title */
.entry-title {
	font-size: 1.25rem;
	line-height: 1.4;
	margin-bottom: 0.75rem;
}

.entry-title a {
	color: var(--gp-modern-accent);
	text-decoration: none;
	transition: color 0.2s ease;
}

.entry-title a:hover {
	color: var(--gp-modern-accent-hover);
}

/* Post Meta (Date, Author) */
.entry-meta {
	font-size: 0.875rem;
	color: var(--gp-modern-text-light);
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 500;
}

.entry-meta a {
	color: inherit;
}

/* Post Excerpt */
.entry-summary {
	flex-grow: 1; /* Pushes footer meta down */
	margin-bottom: 1rem;
}

.entry-summary p {
	margin-bottom: 0;
}

/* Featured Image Formatting */
.post-image {
	margin: 0 !important;
}

.post-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: var(--gp-modern-radius-img);
	display: block;
	transition: transform 0.5s ease;
}

/* Zoom effect on Image hover */
.generate-columns-container .post:hover .post-image img,
.archive article:hover .post-image img,
.blog article:hover .post-image img {
	transform: scale(1.03);
}

.post-image {
	overflow: hidden; /* Contains the zoom */
	border-radius: var(--gp-modern-radius-img);
}

/* ==========================================================================
   Single Post Typography & Layout (Best Practice Readability)
   ========================================================================== */
.single .site-main article {
	background: var(--gp-modern-card-bg);
	border-radius: var(--gp-modern-radius);
	box-shadow: var(--gp-modern-shadow-sm);
	padding: 3rem 2rem;
	max-width: 800px; /* Optimal reading width */
	margin: 0 auto;
}

.single .entry-content {
	font-size: 1.125rem; /* 18px for better reading */
	line-height: 1.8;
}

.single .entry-content h2,
.single .entry-content h3 {
	margin-top: 2.5rem;
	margin-bottom: 1rem;
}

/* Blockquotes */
blockquote {
	border-left: 4px solid var(--gp-modern-accent);
	padding-left: 1.5rem;
	margin-left: 0;
	font-style: italic;
	color: var(--gp-modern-text-light);
	background: #f1f5f9; /* Slate 100 */
	padding: 1.5rem;
	border-radius: 4px 8px 8px 4px;
}

/* ==========================================================================
   Tags & Categories Styling (Pills)
   ========================================================================== */
.cat-links, .tags-links {
	display: block;
	margin-top: 1rem;
	font-size: 0.85rem;
}

.cat-links a, .tags-links a {
	display: inline-block;
	background: #e2e8f0; /* Slate 200 */
	color: var(--gp-modern-accent);
	padding: 0.2rem 0.8rem;
	border-radius: 999px; /* Pill shape */
	text-decoration: none;
	margin-right: 0.5rem;
	margin-bottom: 0.5rem;
	transition: background 0.2s;
}

.cat-links a:hover, .tags-links a:hover {
	background: #cbd5e1; /* Slate 300 */
}

/* ==========================================================================
   Responsive Media Queries (Mobile First approach handled globally, adjusting for large screens here, or vice versa)
   ========================================================================== */

/* Tablet and smaller */
@media (max-width: 768px) {
	.archive .site-main,
	.blog .site-main,
	.search-results .site-main {
		grid-template-columns: 1fr; /* Single column on mobile */
		gap: 1.5rem;
	}
	
	.single .site-main article {
		padding: 1.5rem 1rem; /* Less padding on mobile */
		border-radius: 0; /* Optionally remove radius on mobile so it blends with edges, or keep it */
		box-shadow: none; /* Often on mobile pure white background without shadow is cleaner */
	}
	
	.single .entry-content {
		font-size: 1.05rem; /* Slightly smaller text on mobile */
	}
}
