/*
Theme Name:   WikiPress Child
Theme URI:    https://example.com/wikipress-child
Description:  Child theme for WikiPress. Use this to safely customize styles, templates, and functions without editing the parent theme, so your changes survive WikiPress updates. Activate this theme instead of WikiPress and add your customizations here.
Author:       Phytosanitary
Author URI:   https://example.com
Template:     wikipress
Version:      1.1.0
Requires at least: 5.8
Tested up to: 6.5
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:  wikipress-child
Tags:         blog, news, education, two-columns, left-sidebar, right-sidebar, custom-colors, custom-logo, custom-menu, translation-ready

WikiPress Child Theme, (C) 2026.
Distributed under the terms of the GNU GPL v2 or later.
This is a child theme of WikiPress (Template: wikipress).
*/

/* ============================================================
   WikiPress Child Theme - Custom Styles
   ------------------------------------------------------------
   Add your CSS overrides below. This file loads AFTER the
   parent theme's stylesheet (assets/css/main.css), so anything
   you write here wins over the parent without needing !important.

   The parent exposes reusable CSS custom properties on :root.
   The cleanest way to re-brand is to override those variables.
   Common ones (see parent assets/css/main.css for the full set):

     --wikipress-primary        Link / accent color        (#0645ad)
     --wikipress-primary-hover  Link hover color           (#043a7a)
     --wikipress-text           Body text color            (#202122)
     --wikipress-heading        Heading color              (#000000)
     --wikipress-bg             Page background            (#ffffff)
     --wikipress-bg-off         Off-white background       (#f8f9fa)
     --wikipress-border         Border color               (#a2a9b1)
     --wikipress-font-content   Article font stack         (Georgia serif)
     --wikipress-font-ui        UI font stack              (system sans)
     --wikipress-font-size      Base font size             (16px)
     --wikipress-content-max    Article max width          (780px)
   ============================================================ */

/* ---- Example: re-brand the accent color -------------------
   Uncomment and change the values to match your palette.

:root {
	--wikipress-primary: #2e7d32;
	--wikipress-primary-hover: #1b5e20;
}
------------------------------------------------------------ */

/* ---- Example: tweak article typography --------------------

:root {
	--wikipress-font-content: "Merriweather", Georgia, serif;
	--wikipress-font-size: 17px;
}
------------------------------------------------------------ */

/* ============================================================
   Front-end polish (child overrides — load after parent main.css)
   ============================================================ */

/* ---- Header: brand mark + identity ---- */
.site-title {
	font-size: 1.5rem;
	letter-spacing: -0.015em;
}
.site-title a {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}
.site-title a::before {
	content: "";
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2316803a'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M11%2020A7%207%200%200%201%209.8%206.1C15.5%205%2017%204.48%2019%202c1%202%202%204.18%202%208%200%205.5-4.78%2010-10%2010z'/%3E%3Cpath%20d='M2%2021c0-3%201.85-5.36%205.08-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.site-description {
	margin-top: 3px;
	letter-spacing: 0.01em;
}
/* Give the wrapping nav a touch more breathing room at mid widths. */
.primary-menu a {
	padding: 8px 12px;
}

/* ---- 404: friendly, full-width not-found page ---- */
.wpc-404 {
	padding: 48px 30px 64px;
}
.wpc-404-inner {
	max-width: 680px;
	margin: 0 auto;
	text-align: center;
	font-family: var(--wikipress-font-ui);
}
.wpc-404-code {
	margin: 0;
	font-size: 7rem;
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.03em;
	background: linear-gradient(135deg, var(--wikipress-primary) 0%, #16803a 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.wpc-404-title {
	border: none;
	margin: 6px 0 0;
	padding: 0;
	font-size: 1.85rem;
}
.wpc-404-text {
	color: var(--wikipress-text-light);
	max-width: 520px;
	margin: 12px auto 0;
}
.wpc-404-search {
	max-width: 460px;
	margin: 26px auto 0;
}
.wpc-404-search .search-form {
	justify-content: center;
}
.wpc-404-subtitle {
	border: none;
	margin: 42px 0 16px;
	padding: 0;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--wikipress-text-light);
}
.wpc-404-topics {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
}
.wpc-404-topic {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	background: var(--wikipress-bg);
	border: 1px solid var(--wikipress-border-light);
	border-radius: 8px;
	color: var(--wikipress-text);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.wpc-404-topic:hover {
	border-color: rgba(6, 69, 173, 0.3);
	color: var(--wikipress-primary);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
	text-decoration: none;
}
.wpc-404-topic-count {
	flex-shrink: 0;
	background: var(--wikipress-bg-off);
	color: var(--wikipress-text-light);
	border-radius: 6px;
	padding: 1px 9px;
	font-size: 0.78rem;
	font-weight: 700;
}
.wpc-404-actions {
	margin-top: 34px;
	display: flex;
	gap: 16px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}
.wpc-404-home-btn {
	background: var(--wikipress-primary);
	color: #fff;
	padding: 11px 22px;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.wpc-404-home-btn:hover {
	background: var(--wikipress-primary-hover);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}
.wpc-404-tools-link {
	font-weight: 600;
}

@media (max-width: 600px) {
	.wpc-404-code { font-size: 5rem; }
	.wpc-404 { padding: 32px 16px 48px; }
}

/* ---- Add your custom rules below this line ---------------- */
