/*
Theme Name: QuotesPedia
Theme URI: https://quotespedia.org/
Author: QuotesPedia
Author URI: https://quotespedia.org/
Description: Custom standalone theme for quotespedia.org. Self-contained — no parent theme, no page builder dependency, and no update channel, so nothing overwrites the page templates. Header and footer markup are baked into header.php and footer.php.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
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: quotespedia
Update URI: false
Tags: custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Base
   Deliberately minimal. Every page template carries its own styling; this
   file only provides the reset and the WordPress core classes that markup
   from the editor, comments, and captions depend on.
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: #2C3E50;
	background: #ECF0F1;
	-webkit-font-smoothing: antialiased;
}

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

img,
svg,
video { height: auto; }

a { color: #E74C3C; }

/* ==========================================================================
   Accessibility
   ========================================================================== */

.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;
}

.screen-reader-text:focus,
.skip-link:focus {
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 0 3px rgba(0, 0, 0, .4);
	clip: auto !important;
	clip-path: none;
	color: #2C3E50;
	display: block;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 14px 22px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
}

/* ==========================================================================
   WordPress core classes
   Required for editor content, captions, and galleries to render correctly.
   ========================================================================== */

.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1em;
}

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

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

.alignwide { max-width: 1200px; }
.alignfull { max-width: 100%; }

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

.wp-caption-text,
.wp-block-image figcaption {
	font-size: 13px;
	color: #5b6b7b;
	text-align: center;
	margin-top: 8px;
}

.sticky,
.bypostauthor { display: block; }

.gallery-caption { display: block; }

/* ==========================================================================
   Archive, search, 404 and default page templates
   Only these theme-supplied templates use the classes below. Your own page
   templates (About, Contact, All Quotes, Blog, Category, Author, Single)
   carry their own styling and are unaffected by anything in this file.
   ========================================================================== */

.qp-archive,
.qp-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 20px 80px;
}

.qp-archive-head {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 48px;
}

.qp-archive-head h1 {
	font-family: 'Poppins', sans-serif;
	font-size: 38px;
	font-weight: 800;
	color: #2C3E50;
	margin: 0 0 12px;
	line-height: 1.25;
}

.qp-archive-head p {
	font-size: 16px;
	color: #5b6b7b;
	margin: 0;
}

.qp-archive-search {
	display: flex;
	gap: 10px;
	max-width: 460px;
	margin: 24px auto 0;
}

.qp-archive-search input {
	flex: 1;
	border: 1.5px solid #dde3e8;
	border-radius: 8px;
	padding: 12px 14px;
	font-family: 'Lato', sans-serif;
	font-size: 14.5px;
	color: #2C3E50;
	background: #fff;
	outline: none;
	transition: border-color .25s ease, box-shadow .25s ease;
}

.qp-archive-search input:focus {
	border-color: #3498DB;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, .15);
}

.qp-archive-search button {
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	background: #2C3E50;
	border: none;
	border-radius: 8px;
	padding: 12px 24px;
	cursor: pointer;
	transition: background .3s ease;
}

.qp-archive-search button:hover { background: #E74C3C; }

/* --- Post cards --- */

.qp-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

@media (max-width: 960px) { .qp-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .qp-card-grid { grid-template-columns: 1fr; } }

.qp-card {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(44, 62, 80, .08);
	transition: transform .35s ease, box-shadow .35s ease;
	display: flex;
	flex-direction: column;
}

.qp-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 30px rgba(44, 62, 80, .16);
}

.qp-card-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	background: #dfe6e9;
	overflow: hidden;
	position: relative;
}

.qp-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}

.qp-card:hover .qp-card-thumb img { transform: scale(1.05); }

.qp-card-thumb-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Poppins', sans-serif;
	font-size: 90px;
	font-weight: 700;
	line-height: 1;
	color: rgba(231, 76, 60, .25);
	background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
}

.qp-card-body {
	padding: 22px 24px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.qp-card-cat {
	align-self: flex-start;
	font-family: 'Poppins', sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: #E74C3C;
	background: rgba(231, 76, 60, .1);
	border-radius: 20px;
	padding: 5px 12px;
	text-decoration: none;
	margin-bottom: 14px;
	transition: background .25s ease, color .25s ease;
}

.qp-card-cat:hover { background: #E74C3C; color: #fff; }

.qp-card-title {
	font-family: 'Poppins', sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 10px;
}

.qp-card-title a {
	color: #2C3E50;
	text-decoration: none;
	transition: color .25s ease;
}

.qp-card-title a:hover { color: #E74C3C; }

.qp-card-excerpt {
	font-size: 14.5px;
	line-height: 1.7;
	color: #5b6b7b;
	margin: 0 0 18px;
	flex: 1;
}

.qp-card-meta {
	font-size: 12.5px;
	color: #8a97a3;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* --- Pagination --- */

.qp-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 48px;
}

.qp-pagination .page-numbers {
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #2C3E50;
	background: #fff;
	border-radius: 8px;
	padding: 10px 16px;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(44, 62, 80, .06);
	transition: background .25s ease, color .25s ease, transform .25s ease;
}

.qp-pagination a.page-numbers:hover {
	background: #E74C3C;
	color: #fff;
	transform: translateY(-2px);
}

.qp-pagination .page-numbers.current {
	background: #2C3E50;
	color: #fff;
}

.qp-pagination .page-numbers.dots {
	background: none;
	box-shadow: none;
	color: #8a97a3;
}

/* --- Empty state and 404 --- */

.qp-empty {
	text-align: center;
	background: #fff;
	border-radius: 16px;
	padding: 60px 30px;
	max-width: 640px;
	margin: 0 auto;
	box-shadow: 0 4px 14px rgba(44, 62, 80, .08);
}

.qp-empty-mark {
	font-family: 'Poppins', sans-serif;
	font-size: 80px;
	font-weight: 700;
	line-height: 1;
	color: rgba(231, 76, 60, .2);
	margin-bottom: 8px;
}

.qp-empty h1,
.qp-empty h2 {
	font-family: 'Poppins', sans-serif;
	font-size: 28px;
	font-weight: 800;
	color: #2C3E50;
	margin: 0 0 12px;
}

.qp-empty p {
	font-size: 15.5px;
	line-height: 1.7;
	color: #5b6b7b;
	margin: 0 auto 24px;
	max-width: 460px;
}

.qp-empty-btn {
	display: inline-block;
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: #2C3E50;
	border-radius: 8px;
	padding: 14px 30px;
	text-decoration: none;
	transition: background .3s ease, transform .3s ease;
}

.qp-empty-btn:hover {
	background: #E74C3C;
	transform: translateY(-2px);
}

.qp-404-code {
	font-family: 'Poppins', sans-serif;
	font-size: 72px;
	font-weight: 800;
	line-height: 1;
	color: #E74C3C;
	margin-bottom: 10px;
}

.qp-404-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 28px;
}

.qp-404-links a {
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #3498DB;
	text-decoration: none;
}

.qp-404-links a:hover { color: #E74C3C; }

/* --- Default page template --- */

.qp-page { max-width: 860px; }

.qp-page-inner {
	background: #fff;
	border-radius: 16px;
	padding: 48px;
	box-shadow: 0 4px 14px rgba(44, 62, 80, .08);
}

@media (max-width: 600px) { .qp-page-inner { padding: 30px 22px; } }

.qp-page-head h1 {
	font-family: 'Poppins', sans-serif;
	font-size: 34px;
	font-weight: 800;
	color: #2C3E50;
	margin: 0 0 24px;
	line-height: 1.25;
}

.qp-page-thumb {
	margin-bottom: 28px;
	border-radius: 12px;
	overflow: hidden;
}

.qp-page-content {
	font-size: 16.5px;
	line-height: 1.85;
	color: #3d4d5c;
}

.qp-page-content h2,
.qp-page-content h3,
.qp-page-content h4 {
	font-family: 'Poppins', sans-serif;
	color: #2C3E50;
	margin: 34px 0 14px;
	line-height: 1.35;
}

.qp-page-content h2 { font-size: 25px; font-weight: 700; }
.qp-page-content h3 { font-size: 20px; font-weight: 600; }
.qp-page-content h4 { font-size: 17px; font-weight: 600; }

.qp-page-content p { margin: 0 0 20px; }

.qp-page-content a { color: #3498DB; }
.qp-page-content a:hover { color: #E74C3C; }

.qp-page-content ul,
.qp-page-content ol { margin: 0 0 20px; padding-left: 24px; }

.qp-page-content li { margin-bottom: 8px; }

.qp-page-content blockquote {
	border-left: 3px solid #E74C3C;
	background: #ECF0F1;
	border-radius: 0 8px 8px 0;
	margin: 0 0 24px;
	padding: 18px 22px;
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
	font-size: 18px;
	color: #2C3E50;
}

.qp-page-content img { border-radius: 10px; }

.qp-page-content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
	font-size: 15px;
}

.qp-page-content th,
.qp-page-content td {
	border: 1px solid #dde3e8;
	padding: 10px 14px;
	text-align: left;
}

.qp-page-content th {
	background: #ECF0F1;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	color: #2C3E50;
}

.qp-link-pages {
	margin-top: 24px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 600;
}

/* ==========================================================================
   Comments
   Used by single.php and page.php via comments_template().
   ========================================================================== */

.qp-comments {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 20px 60px;
	font-family: 'Lato', sans-serif;
}

.qp-comments-title {
	font-family: 'Poppins', sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: #2C3E50;
	margin: 0 0 28px;
}

.qp-comments .comment-list {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
}

.qp-comments .comment-list ol.children {
	list-style: none;
	margin: 16px 0 0 32px;
	padding: 0;
}

.qp-comments .comment-body {
	background: #fff;
	border-radius: 12px;
	padding: 22px 24px;
	margin-bottom: 16px;
	box-shadow: 0 2px 10px rgba(44, 62, 80, .06);
}

.qp-comments .comment-author {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #2C3E50;
	margin-bottom: 4px;
}

.qp-comments .comment-author img {
	border-radius: 50%;
	flex-shrink: 0;
}

.qp-comments .comment-meta {
	font-size: 13px;
	color: #8a97a3;
	margin-bottom: 12px;
}

.qp-comments .comment-meta a {
	color: #8a97a3;
	text-decoration: none;
}

.qp-comments .reply a {
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #E74C3C;
	text-decoration: none;
}

.qp-comments .reply a:hover { text-decoration: underline; }

.qp-comments .comment-respond {
	background: #fff;
	border-radius: 14px;
	padding: 32px;
	box-shadow: 0 2px 10px rgba(44, 62, 80, .06);
}

.qp-comments .comment-reply-title {
	font-family: 'Poppins', sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: #2C3E50;
	margin: 0 0 8px;
}

.qp-comments .comment-form label {
	display: block;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #2C3E50;
	margin-bottom: 8px;
}

.qp-comments .comment-form input[type="text"],
.qp-comments .comment-form input[type="email"],
.qp-comments .comment-form input[type="url"],
.qp-comments .comment-form textarea {
	width: 100%;
	border: 1.5px solid #dde3e8;
	border-radius: 8px;
	padding: 12px 14px;
	font-family: 'Lato', sans-serif;
	font-size: 14.5px;
	color: #2C3E50;
	background: #ECF0F1;
	transition: border-color .25s ease, box-shadow .25s ease;
}

.qp-comments .comment-form input:focus,
.qp-comments .comment-form textarea:focus {
	outline: none;
	border-color: #3498DB;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, .15);
	background: #fff;
}

.qp-comments .comment-form textarea {
	resize: vertical;
	min-height: 130px;
}

.qp-comments .form-submit input[type="submit"] {
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: #2C3E50;
	border: none;
	padding: 14px 30px;
	border-radius: 8px;
	cursor: pointer;
	transition: background .3s ease;
}

.qp-comments .form-submit input[type="submit"]:hover { background: #E74C3C; }

.qp-comments .comment-notes,
.qp-comments .comment-form-cookies-consent label {
	font-family: 'Lato', sans-serif;
	font-weight: 400;
	font-size: 13.5px;
	color: #5b6b7b;
	display: inline;
}

.qp-comments .no-comments {
	color: #5b6b7b;
	font-style: italic;
}
