/*
Theme Name: WPMindSet Light Theme
Theme URI: https://wpmindset.com/wpmindset-light-theme
Author: WPMindSet Private Limited
Author URI: https://wpmindset.com/
Description: A lightweight, fast, and fully Elementor-compatible WordPress theme built for performance and clean design. No bloat, no conflicts — just a solid foundation for your website.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: wpmindset-light-theme
Tags: blog, custom-colors, custom-logo, custom-menu, editor-style, elementor, featured-images, footer-widgets, full-width-template, rtl-language-support, theme-options, threaded-comments, translation-ready, two-columns
*/

/* ==========================================================================
   WPMindSet Light Theme - Base Styles
   Minimal CSS to avoid conflicts with Elementor
   ========================================================================== */

*, *::before, *::after {
	box-sizing: border-box;
}

html {
	font-size: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--wpmls-body-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--wpmls-body-color, #333333);
	background-color: var(--wpmls-bg-color, #ffffff);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--wpmls-heading-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
	font-weight: 700;
	line-height: 1.3;
	margin-top: 0;
	margin-bottom: 0.75em;
	color: var(--wpmls-heading-color, #111111);
}

p {
	margin-top: 0;
	margin-bottom: 1rem;
}

a {
	color: var(--wpmls-primary-color, #0073aa);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Layout */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* Header */
.site-header {
	background-color: var(--wpmls-header-bg, #ffffff);
	border-bottom: 1px solid rgba(0,0,0,0.08);
	padding: 16px 0;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.site-branding .site-title {
	margin: 0;
	font-size: 1.5rem;
}

.site-branding .site-title a {
	color: inherit;
	text-decoration: none;
}

.site-branding .site-description {
	margin: 0;
	font-size: 0.875rem;
	color: #666;
}

/* Navigation */
.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.main-navigation ul li a {
	display: block;
	padding: 8px 14px;
	color: var(--wpmls-nav-color, #333333);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	border-radius: 4px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
	background-color: var(--wpmls-primary-color, #0073aa);
	color: #ffffff;
}

.main-navigation ul ul {
	display: none;
	position: absolute;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 4px;
	min-width: 180px;
	z-index: 999;
	flex-direction: column;
	box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	display: flex;
}

.main-navigation ul li {
	position: relative;
}

/* Hamburger Menu */
.menu-toggle {
	display: none;
	background: none;
	border: 1px solid rgba(0,0,0,0.15);
	border-radius: 4px;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 1.2rem;
	color: #333;
}

@media (max-width: 768px) {
	.menu-toggle {
		display: block;
	}

	.main-navigation ul {
		display: none;
		flex-direction: column;
		width: 100%;
		margin-top: 10px;
	}

	.main-navigation.toggled ul {
		display: flex;
	}

	.main-navigation ul ul {
		position: static;
		box-shadow: none;
		border: none;
		padding-left: 16px;
		display: flex;
	}
}

/* Content Area */
.site-content {
	padding: 40px 0;
}

/* Posts */
.entry-header {
	margin-bottom: 1.5rem;
}

.entry-title {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.entry-meta {
	font-size: 0.85rem;
	color: #777;
	margin-bottom: 1rem;
}

.entry-meta a {
	color: #777;
}

.entry-content {
	line-height: 1.8;
}

.entry-content > * + * {
	margin-top: 1rem;
}

/* Post Thumbnail */
.post-thumbnail {
	margin-bottom: 1.5rem;
	border-radius: 8px;
	overflow: hidden;
}

.post-thumbnail img {
	width: 100%;
	height: auto;
}

/* Pagination */
.posts-navigation,
.post-navigation,
.page-links {
	margin: 40px 0;
}

.nav-links {
	display: flex;
	gap: 16px;
	justify-content: space-between;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border: 1px solid rgba(0,0,0,0.15);
	border-radius: 4px;
	color: #333;
	text-decoration: none;
	font-size: 0.875rem;
}

.page-numbers.current,
.page-numbers:hover {
	background-color: var(--wpmls-primary-color, #0073aa);
	border-color: var(--wpmls-primary-color, #0073aa);
	color: #fff;
}

/* Sidebar */
.widget {
	margin-bottom: 2rem;
}

.widget-title {
	font-size: 1.1rem;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--wpmls-primary-color, #0073aa);
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget ul li {
	padding: 6px 0;
	border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Footer */
.site-footer {
	background-color: var(--wpmls-footer-bg, #1a1a1a);
	color: var(--wpmls-footer-color, #cccccc);
	padding: 40px 0 20px;
	margin-top: auto;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
	margin-bottom: 32px;
}

.footer-widgets .widget-title {
	color: #ffffff;
	border-color: var(--wpmls-primary-color, #0073aa);
}

.footer-widgets a {
	color: #aaaaaa;
}

.footer-widgets a:hover {
	color: #ffffff;
}

.site-info {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid rgba(255,255,255,0.08);
	font-size: 0.875rem;
	color: #888;
}

.site-info a {
	color: #aaa;
}

/* Elementor full-width support */
.elementor-template-full-width .site-main,
body.elementor-page .site-content {
	padding: 0;
}

/* Buttons */
.wp-block-button__link,
button,
input[type="submit"],
input[type="button"],
.button {
	display: inline-block;
	background-color: var(--wpmls-primary-color, #0073aa);
	color: #ffffff;
	padding: 10px 24px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1rem;
	font-family: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

button:hover,
input[type="submit"]:hover,
.button:hover {
	opacity: 0.88;
	color: #ffffff;
	text-decoration: none;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid rgba(0,0,0,0.18);
	border-radius: 4px;
	font-family: inherit;
	font-size: 1rem;
	color: #333;
	background: #fff;
	transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--wpmls-primary-color, #0073aa);
}

/* Comments */
.comment-list {
	list-style: none;
	padding: 0;
}

.comment-body {
	padding: 16px;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 6px;
	margin-bottom: 16px;
}

.comment-author .fn {
	font-weight: 600;
}

.comment-metadata {
	font-size: 0.8rem;
	color: #999;
	margin-bottom: 8px;
}

/* Accessibility */
.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.skip-link:focus {
	position: fixed;
	top: 0;
	left: 0;
	width: auto;
	height: auto;
	padding: 10px 20px;
	background: #000;
	color: #fff;
	z-index: 99999;
	font-size: 1rem;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Utilities */
.alignleft {
	float: left;
	margin-right: 1.5rem;
	margin-bottom: 1rem;
}

.alignright {
	float: right;
	margin-left: 1.5rem;
	margin-bottom: 1rem;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1rem;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 0.85rem;
	color: #777;
	text-align: center;
	margin-top: 4px;
}

/* No posts */
.no-results .page-header {
	margin-bottom: 1rem;
}
