/*
Theme Name: Permatapedia
Theme URI: https://permatapedia.com/
Author: Permata Pedia
Author URI: https://permatapedia.com/
Description: Permatapedia is the official child theme for permatapedia.com, built on the BlogArise magazine framework. It keeps the clean, fast, responsive news-magazine layout of the parent theme while adding a classic full-content homepage blog layout and a centered, brand-consistent footer.
Version: 1.0.0
Requires PHP: 7.4
Requires at least: 6.0
Tested up to: 7.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Template: blogarise
Text Domain: permatapedia
Tags: blog, news, magazine, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   Permatapedia — brand tokens
   Inherits the BlogArise default magazine palette and tunes it to the
   Permata Pedia gold/navy identity.
   ========================================================================== */

:root {
	--pp-gold: #ffcc00;
	--pp-gold-deep: #e2a534;
	--pp-navy: #1c2b45;
	--pp-muted: #6b7280;
	--pp-line: #e2e8f0;
	--pp-radius: 6px;
}

/* --------------------------------------------------------------------------
   1. Footer — centered, clean, responsive copyright
   Footer widgets, menus and links from the parent theme are preserved.
   -------------------------------------------------------------------------- */

.bs-footer-copyright .copyright-overlay {
	padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bs-footer-copyright .pp-copyright {
	text-align: center;
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	letter-spacing: 0.2px;
}

.bs-footer-copyright .pp-copyright .copyright-text {
	display: inline-block;
}

/* Footer logo is hidden (see blogarise_footer_bottom_area override in
   functions.php). This is a CSS safety net in case a plugin re-injects it. */
.bs-footer-bottom-area .footer-logo .site-logo,
.bs-footer-bottom-area .footer-logo .custom-logo-link {
	display: none !important;
}

/* Footer menu sits below the copyright line, also centered */
.bs-footer-copyright .pp-footer-nav {
	margin-top: 10px;
}

.bs-footer-copyright .pp-footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bs-footer-copyright .pp-footer-nav ul li {
	margin: 0;
	padding: 0;
}

.bs-footer-copyright .pp-footer-nav ul li a {
	padding: 0;
	font-size: 14px;
	opacity: 0.85;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.bs-footer-copyright .pp-footer-nav ul li a:hover,
.bs-footer-copyright .pp-footer-nav ul li a:focus {
	opacity: 1;
	color: var(--pp-gold);
}

@media (max-width: 575.98px) {
	.bs-footer-copyright .pp-copyright {
		font-size: 14px;
	}

	.bs-footer-copyright .pp-footer-nav ul {
		gap: 4px 16px;
	}
}

/* --------------------------------------------------------------------------
   2. Classic homepage blog layout
   Featured image on top (uncropped, responsive) -> title -> meta -> content.
   Scoped to .permatapedia-classic-blog so single posts and archives are
   left exactly as the parent theme renders them.
   -------------------------------------------------------------------------- */

.permatapedia-classic-blog .permatapedia-classic-post {
	display: block;
	margin-bottom: 44px;
	padding-bottom: 36px;
	border-bottom: 1px solid var(--pp-line);
}

.permatapedia-classic-blog .permatapedia-classic-post:last-of-type {
	border-bottom: 0;
}

/* Featured image — full width, natural aspect ratio, never cropped or stretched */
.permatapedia-classic-blog .permatapedia-classic-thumb {
	margin: 0 0 20px;
	line-height: 0;
	border-radius: var(--pp-radius);
	overflow: hidden;
}

.permatapedia-classic-blog .permatapedia-classic-thumb a {
	display: block;
}

.permatapedia-classic-blog .permatapedia-classic-thumb img {
	width: 100%;
	height: auto;
	max-width: 100%;
	display: block;
	object-fit: none;
	transition: transform 0.35s ease;
}

.permatapedia-classic-blog .permatapedia-classic-thumb:hover img {
	transform: scale(1.02);
}

/* Header block */
.permatapedia-classic-blog .permatapedia-classic-header {
	margin-bottom: 16px;
}

.permatapedia-classic-blog .permatapedia-classic-header .bs-blog-category {
	margin-bottom: 10px;
}

.permatapedia-classic-blog .permatapedia-classic-header .title {
	margin: 0 0 10px;
	font-size: 30px;
	line-height: 1.3;
	font-weight: 700;
}

.permatapedia-classic-blog .permatapedia-classic-header .title a {
	color: var(--head-color, var(--pp-navy));
	transition: color 0.2s ease;
}

.permatapedia-classic-blog .permatapedia-classic-header .title a:hover,
.permatapedia-classic-blog .permatapedia-classic-header .title a:focus {
	color: var(--pp-gold-deep);
}

.permatapedia-classic-blog .permatapedia-classic-header .bs-blog-meta {
	font-size: 14px;
	color: var(--pp-muted);
	margin-bottom: 0;
}

/* Full post content */
.permatapedia-classic-blog .permatapedia-classic-content {
	font-size: 16px;
	line-height: 1.8;
	word-wrap: break-word;
}

.permatapedia-classic-blog .permatapedia-classic-content > *:last-child {
	margin-bottom: 0;
}

.permatapedia-classic-blog .permatapedia-classic-content img,
.permatapedia-classic-blog .permatapedia-classic-content iframe,
.permatapedia-classic-blog .permatapedia-classic-content video {
	max-width: 100%;
	height: auto;
}

.permatapedia-classic-blog .permatapedia-classic-content blockquote {
	border-left: 4px solid var(--pp-gold);
	padding: 4px 0 4px 18px;
	margin: 22px 0;
	font-style: italic;
	color: var(--pp-navy);
}

.permatapedia-classic-blog .single-nav-links {
	margin-top: 18px;
}

/* Responsive typography */
@media (max-width: 991.98px) {
	.permatapedia-classic-blog .permatapedia-classic-header .title {
		font-size: 26px;
	}
}

@media (max-width: 575.98px) {
	.permatapedia-classic-blog .permatapedia-classic-post {
		margin-bottom: 32px;
		padding-bottom: 26px;
	}

	.permatapedia-classic-blog .permatapedia-classic-header .title {
		font-size: 22px;
	}

	.permatapedia-classic-blog .permatapedia-classic-content {
		font-size: 15px;
	}
}

/* --------------------------------------------------------------------------
   3. Light magazine polish (header / nav / sidebar)
   Small refinements only — parent layout and structure are untouched.
   -------------------------------------------------------------------------- */

.site-title a {
	letter-spacing: -0.3px;
}

.bs-widget-title .title {
	letter-spacing: 0.2px;
}

.sidebar-right .bs-widget,
.sidebar-left .bs-widget {
	margin-bottom: 30px;
}

a {
	transition: color 0.2s ease;
}
