=== WPWriter ===
Contributors: ylabs
Requires at least: 5.6
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

== Description ==

WPWriter is a professional Astra child theme optimized for AI-generated content sites. It features custom header and footer styling, blog card layouts with featured images, gallery support, and mobile-friendly navigation.

The theme includes four color palettes that can be switched by editing CSS custom properties in style.css.

== Installation ==

1. Install and activate the free Astra theme from Appearance > Themes > Add New.
2. Download the WPWriter theme zip.
3. In WordPress, go to Appearance > Themes > Add New > Upload Theme.
4. Upload the zip and click Activate.

== Frequently Asked Questions ==

= Does this theme require a parent theme? =

Yes. WPWriter is a child theme of Astra. You must install and activate Astra before using WPWriter.

= How do I switch color palettes? =

Open style.css in Appearance > Theme File Editor. Comment out the current :root block and uncomment the palette you want. Save the file.

== Changelog ==

= 3.5.6 =
* Fix: Mobile section-heading emoji no longer rendered huge inside `.entry-content`. The mobile-icon shrink rule matched `[src$=".svg"]`, which also matches WordPress core emoji served from `s.w.org/.../emoji/.../*.svg` — emoji were being forced to block layout with auto margins. Selectors now exclude `:not(.emoji)` so WordPress emoji render at their normal inline size.
* Fix: Mobile SVG/icon sizing in `.entry-content` reduced from `min(240px, 70vw)` to `min(44px, 11vw)` with `display: inline-block`. The official theme had been carrying the older oversized values; this brings it in line with the shared base CSS, so decorative inline icons no longer dominate small viewports.

= 3.5.5 =
* Fix: Header height no longer inflated by stacked padding across Astra Header Builder wrappers (.ast-builder-grid-row-container, .ast-builder-grid-row, .ast-builder-layout-element). Inner wrappers are zeroed; visible breathing room is now anchored on a single outer wrap (`.ast-main-header-wrap` / `.main-header-bar-wrap`) at 8px top/bottom. Site identity wrapper is forced to `flex-direction: row` so logo and title sit on one line. Sites that previously sized the header via Astra Customizer Header → Height will render tighter; override `.ast-main-header-wrap` padding in Customizer CSS to add headroom back.

= 3.5.4 =
* Fix: Header no longer reserves phantom descender space below the logo. The `<span class="site-logo-img">` and `<a class="custom-logo-link">` wrappers were inline elements inheriting the theme's ~1.6 line-height, creating an invisible strip below the image that inflated the header row. Wrappers now use `inline-flex` with `line-height: 1` so they hug the logo tightly.

= 3.5.3 =
* Fix: Blog/archive grid cards no longer collapse to content width. Removed a stale `display: grid` + `width: auto !important` + `justify-self: center` block from style.css that conflicted with the flex-based grid in style-base.css — cards shrank to ~80px on Hebrew sites with narrow titles. style-base.css is now the single source of truth for blog layout.

= 3.5.2 =
* Add: RTL submenu positioning — header dropdowns anchor to the right edge in Hebrew/Arabic; nested submenus fly out to the LEFT.
* Fix: Table cells in `.entry-content` now respect document direction on RTL sites (Astra hardcodes `text-align: left`).
* Add: Broader RTL alignment coverage — archive excerpt containers, entry titles, entry headers, blockquotes, and "read more" links flip automatically on RTL sites.
* Add: RTL "Read More" label rendered as Hebrew "קרא עוד «" via CSS pseudo-element (no PHP/template edits required).
* Fix: Default "Read More" label is now English ("Read More »") on LTR sites — previously the pseudo-element shipped Hebrew text universally, leaking into English/LTR installs.

= 3.5.1 =
* Fix: Header dropdown submenus no longer overlap header accent lines (margin-top changed from -12px to +4px; the existing 50px invisible hover bridge keeps the submenu anchored during cursor travel).
* Fix: Astra layout wrappers (.ast-separate-container, .ast-plain-container, .ast-page-builder-template) now inherit their background so a site's body-level color shows through correctly.
* Fix: RTL numbered lists — <ol> items now reserve 50px on the right for the counter badge so text no longer overlaps the number.

= 3.5.0 =
* Add: RTL/Hebrew support — list bullet markers, heading accents, and inline-styled callout borders now flip to the right side on sites with `dir="rtl"`. LTR sites unaffected.

= 3.4.3 =
* Fix: Mobile menu readability — dark gradient background with proper padding and separators
* Fix: Mobile header title truncation and hamburger position in RTL layouts
* Fix: Footer menu links splitting into per-character columns on narrow viewports
* Fix: Icon-shrink CSS selector scoped to `/icons/` path (was matching any URL containing "icon")
* Fix: Mobile overrides for AI-generated inline min-width and padding values
* Add: `overflow-x:clip` safety net for full-bleed sections with negative margins
* Register footer menu location so users can assign a menu under Appearance > Menus

= 3.2.6 =
* Compress screenshot.png from 802 KB to 148 KB

= 3.2.5 =
* Replace screenshot images with CC0-licensed photos from the WordPress Photo Directory

= 3.1.9 =
* Fix: Enqueue footer-credit.js so "Built with WPWriter" shows even without Astra copyright widget

= 3.1.8 =
* Fix: Neutralize Astra Layout 4 CSS Grid classes that override theme flex layout

= 3.1.7 =
* Force Astra Layout 1 to prevent grid class conflicts with theme flex CSS
* Force single-column grid to let theme CSS handle 3-col layout
* Force blog post meta (author, date, category, comments)
* Force excerpt display on blog/archive pages

= 3.1.6 =
* Force featured images on blog/archive pages via Astra blog-post-structure filter
* Smart title hiding — only hides Astra title when content already has an H1
* Added body class for content with H1 (wpwriter-content-h1)
* Ensured single-title and single-meta in single post structure
* Added submenu hover-intent fix with viewport overflow detection

= 3.1.5 =
* Added image license information to readme.txt for screenshot images

= 3.1.4 =
* Updated screenshot to show actual theme appearance (blog grid layout)

= 3.1.3 =
* Added header.php, footer.php, and index.php template files for WordPress.org compatibility
* Templates use Astra action hooks to maintain Header/Footer Builder support
* Added .screen-reader-text accessibility CSS
* Removed child-theme tag per WordPress.org scanner recommendation

= 3.1.0 =
* Switched blog grid from CSS Grid to flexbox for Astra compatibility
* Force featured images on blog and archive pages
* Compact archive/category title banner
* Direction-aware text alignment (RTL/LTR)
* White footer text on dark backgrounds
* Improved footer navigation layout

= 3.0.9 =
* Moved gallery CSS to style-base.css
* Footer copyright text styling fixes

= 3.0.0 =
* Initial release

== Copyright ==

WPWriter WordPress Theme, (C) 2026 YLabs.
WPWriter is distributed under the terms of the GNU GPL v2 or later.

This theme is a child theme of Astra, which is also distributed under the GNU GPL v2 or later.

== Image Licenses ==

The screenshot uses photos from the WordPress Photo Directory (https://wordpress.org/photos/).
All photos in the WordPress Photo Directory are released under the CC0 1.0 Universal (Public Domain) license,
which is compatible with the GNU GPL. No rights are reserved; photos may be used for any purpose
without permission, attribution, or payment. Source: https://wordpress.org/photos/license/

screenshot.png — composite screenshot showing the theme's blog grid layout with sample post images.
The following WordPress Photo Directory images appear in the screenshot:

1. Photo 41269c6b2e — Office interior
   Source: https://wordpress.org/photos/photo/41269c6b2e/
   Photographer: Md Rashed Hossain (WordPress.org user: wprashed)
   License: CC0 1.0 Universal (Public Domain)

2. Photo 562693d0bd — City skyline
   Source: https://wordpress.org/photos/photo/562693d0bd/
   Photographer: oonjira chantanupa (WordPress.org user: oonjirachantanupa)
   License: CC0 1.0 Universal (Public Domain)

3. Photo 68469069a4 — Night cityscape
   Source: https://wordpress.org/photos/photo/68469069a4/
   Photographer: Atsuo Watanabe (WordPress.org user: atsuo0475watanabe)
   License: CC0 1.0 Universal (Public Domain)

4. Photo 80669c7515 — Red flower
   Source: https://wordpress.org/photos/photo/80669c7515/
   Photographer: Manjil Aryal (WordPress.org user: manjil2008)
   License: CC0 1.0 Universal (Public Domain)

5. Photo 34869c42be — Green plants
   Source: https://wordpress.org/photos/photo/34869c42be/
   Photographer: esteban0912 (WordPress.org user: esteban0912)
   License: CC0 1.0 Universal (Public Domain)

6. Photo 7156974977 — Waterfront architecture
   Source: https://wordpress.org/photos/photo/7156974977/
   Photographer: Afshari (WordPress.org user: afshari)
   License: CC0 1.0 Universal (Public Domain)
