/*
Theme Name: PINXS Lottery Analyser Minimal
Theme URI: https://lottery-analyser.com/
Author: Plugin Nexus / Mike Edmonston
Author URI: https://pluginnexus.com/
Description: A deliberately minimal, plugin-friendly theme for Lottery Analyser. It supplies one consistent responsive navigation and footer across the complete site while leaving Gutenberg and plugin page layouts unrestricted.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pinxs-lottery-analyser
Tags: custom-logo, custom-menu, one-column, wide-blocks, e-commerce
*/

:root {
  --pla-ink: #172033;
  --pla-muted: #647087;
  --pla-line: #dfe5ed;
  --pla-purple: #4d32c2;
  --pla-purple-dark: #24175d;
  --pla-teal: #087f73;
  --pla-header: #211557;
  --pla-footer: #171d2d;
  --pla-wide: 1180px;
  --pla-side: 20px;
}

html { margin: 0; scroll-behavior: smooth; }
body { margin: 0; background: #f4f6f9; color: var(--pla-ink); font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif; }
.pla-site { display: flex; min-height: 100vh; flex-direction: column; }
.pla-main { width: 100%; max-width: none; min-width: 0; flex: 1 0 auto; margin: 0; padding: 0; overflow: visible; }
.pla-page, .pla-plugin-canvas { display: block; width: 100%; max-width: none; margin: 0; padding: 0; overflow: visible; }
.pla-header, .pla-header *, .pla-header *::before, .pla-header *::after,
.pla-footer, .pla-footer *, .pla-footer *::before, .pla-footer *::after,
.pla-listing, .pla-listing *, .pla-post, .pla-post * { box-sizing: border-box; }

/* One consistent site header is printed on every public page. */
.pla-header { position: relative; z-index: 1000; flex: 0 0 auto; border-bottom: 1px solid #dce6f5; background: var(--pla-header); }
.pla-header__inner { display: flex; width: min(100%, calc(var(--pla-wide) + (var(--pla-side) * 2))); min-height: 76px; align-items: center; justify-content: space-between; gap: 22px; margin: 0 auto; padding: 0 var(--pla-side); }
.pla-brand { min-width: 0; }
.pla-logo-text, .pla-brand .custom-logo-link { display: inline-flex; align-items: center; color: #fff; font-size: 1.04rem; font-weight: 900; letter-spacing: -.025em; line-height: 1.1; text-decoration: none; }
.pla-brand .custom-logo { display: block; width: auto; max-width: 240px; max-height: 42px; }
.pla-nav { display: flex; align-items: center; }
.pla-menu { display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.pla-menu li { position: relative; margin: 0; padding: 0; }
.pla-menu a { display: inline-flex; align-items: center; padding: 29px 0 27px; border-bottom: 2px solid transparent; color: #ddd7f5; font-size: .86rem; font-weight: 700; line-height: 1; text-decoration: none; }
.pla-menu a:hover, .pla-menu a:focus-visible, .pla-menu .current-menu-item > a, .pla-menu .current_page_item > a { border-bottom-color: #7ee0d5; color: #fff; }
.pla-menu > li:last-child > a { min-height: 42px; margin-left: 2px; padding: 11px 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; background: #fff; color: var(--pla-purple-dark); box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.pla-menu > li:last-child > a:hover, .pla-menu > li:last-child > a:focus-visible { border-color: #fff; background: #f4f1ff; color: var(--pla-purple-dark); }
.pla-menu .sub-menu { position: absolute; top: calc(100% - 3px); right: 0; display: none; width: 230px; margin: 0; padding: 9px; border: 1px solid var(--pla-line); border-radius: 13px; background: #fff; box-shadow: 0 18px 42px rgba(23, 32, 51, .14); list-style: none; }
.pla-menu li:hover > .sub-menu, .pla-menu li:focus-within > .sub-menu { display: block; }
.pla-menu .sub-menu a { width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; }
.pla-menu .sub-menu a:hover, .pla-menu .sub-menu a:focus-visible { background: #f1edff; }
.pla-nav-toggle { display: none; min-height: 42px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: #fff; color: var(--pla-purple-dark); font: inherit; font-weight: 800; cursor: pointer; }

/* One consistent footer is printed on every public page. */
.pla-footer { flex: 0 0 auto; background: var(--pla-footer); color: #fff; }
.pla-footer__inner { display: flex; width: min(100%, calc(var(--pla-wide) + (var(--pla-side) * 2))); min-height: 105px; align-items: center; justify-content: space-between; gap: 26px; margin: 0 auto; padding: 28px var(--pla-side); }
.pla-footer__brand { min-width: 0; }
.pla-footer__brand strong { display: block; font-size: 1rem; }
.pla-footer__brand span { display: block; margin-top: 4px; color: rgba(255,255,255,.66); font-size: .75rem; }
.pla-footer-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 19px; margin: 0; padding: 0; list-style: none; }
.pla-footer-menu li { margin: 0; }
.pla-footer-menu a { color: rgba(255,255,255,.84); font-size: .78rem; font-weight: 700; text-decoration: none; }
.pla-footer-menu a:hover, .pla-footer-menu a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Only native WordPress blog fallbacks use these classes. Plugin markup is never targeted. */
.pla-post { width: min(calc(100% - (var(--pla-side) * 2)), 900px); margin: 0 auto; padding: 50px 0 70px; }
.pla-post__header h1 { margin: 0 0 8px; color: var(--pla-ink); font-size: clamp(2.25rem, 5vw, 4.2rem); line-height: 1.04; letter-spacing: -.05em; }
.pla-post__meta { color: var(--pla-muted); font-size: .84rem; }
.pla-post__content { font-size: 1.05rem; line-height: 1.75; }
.pla-post__content img { max-width: 100%; height: auto; }
.pla-listing { width: min(calc(100% - (var(--pla-side) * 2)), var(--pla-wide)); margin: 0 auto; padding: 48px 0 70px; }
.pla-listing > h1 { margin: 0 0 26px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.06; }
.pla-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pla-card { padding: 21px; border: 1px solid var(--pla-line); border-radius: 17px; background: #fff; }
.pla-card h2 { margin: 0 0 9px; font-size: 1.25rem; line-height: 1.17; }
.pla-card h2 a { color: var(--pla-ink); text-decoration: none; }
.pla-card p { color: var(--pla-muted); }
.pla-card__link { color: var(--pla-purple); font-weight: 800; }
.pla-pagination { margin-top: 30px; }
.pla-empty { width: min(calc(100% - (var(--pla-side) * 2)), 720px); margin: 0 auto; padding: 90px 0; text-align: center; }

/* WooCommerce gets space around its own layout, without component overrides. */
.pla-woocommerce { width: min(calc(100% - (var(--pla-side) * 2)), var(--pla-wide)); margin: 0 auto; padding: 36px 0 65px; }

@media (max-width: 900px) {
  .pla-nav { position: relative; }
  .pla-nav-toggle { display: inline-flex; }
  .pla-menu { position: absolute; top: 47px; right: 0; display: none; width: min(310px, calc(100vw - 28px)); max-height: calc(100vh - 90px); flex-direction: column; align-items: stretch; gap: 2px; padding: 11px; overflow-y: auto; border: 1px solid var(--pla-line); border-radius: 15px; background: #fff; box-shadow: 0 20px 48px rgba(23, 32, 51, .16); }
  .pla-nav[data-open="true"] > .pla-menu { display: flex; }
  .pla-menu a { width: 100%; padding: 12px; border: 0; border-radius: 8px; }
  .pla-menu a:hover, .pla-menu a:focus-visible { background: #f1edff; }
  .pla-menu > li:last-child > a { margin-left: 0; border: 0; background: var(--pla-purple); color: #fff; box-shadow: none; }
  .pla-menu > li:last-child > a:hover, .pla-menu > li:last-child > a:focus-visible { background: var(--pla-purple-dark); color: #fff; }
  .pla-menu .sub-menu { position: static; display: block; width: 100%; padding: 0 0 0 12px; border: 0; box-shadow: none; }
  .pla-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  :root { --pla-side: 14px; }
  .pla-header__inner { min-height: 58px; }
  .pla-brand .custom-logo { max-width: 190px; max-height: 36px; }
  .pla-footer__inner { align-items: flex-start; flex-direction: column; }
  .pla-footer-menu { justify-content: flex-start; }
  .pla-card-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
