/*
Theme Name: HGR Core
Theme URI: https://homegadgetradar.com
Author: Home Gadget Radar
Author URI: https://homegadgetradar.com
Description: A clean, lightweight, light-mode theme built specifically for Home Gadget Radar. Designed for maximum control with Custom HTML and block content. No bloat, no external dependencies.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hgr-core
Tags: custom-logo, custom-menu, featured-images, full-width-template, light, one-column, translation-ready
*/

/* ============================================================
   HGR Core – Base Styles
   Clean light foundation. Most design lives in your page content.
   ============================================================ */

:root {
  --hgr-bg: #F8FAFC;
  --hgr-surface: #FFFFFF;
  --hgr-text: #0F172A;
  --hgr-muted: #64748B;
  --hgr-primary: #0EA5E9;
  --hgr-border: #E2E8F0;
  --hgr-radius: 12px;
  --hgr-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--hgr-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--hgr-text);
  background-color: var(--hgr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--hgr-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================================
   Layout
   ============================================================ */

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
  width: 100%;
}

/* Full-width content by default – no sidebars, no constrained containers */
.entry-content,
.page-content,
.hgr-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Remove default WordPress spacing that often fights custom designs */
.entry-header,
.page-header,
.entry-footer {
  display: none; /* We control titles inside our custom content */
}

/* ============================================================
   Optional minimal site header (can be hidden completely)
   ============================================================ */

.site-header {
  background: var(--hgr-surface);
  border-bottom: 1px solid var(--hgr-border);
  padding: 16px 0;
}

.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--hgr-text);
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-description {
  display: none; /* Usually not needed */
}

/* Primary menu */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}

.main-navigation a {
  color: var(--hgr-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.main-navigation a:hover {
  color: var(--hgr-primary);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--hgr-surface);
  border-top: 1px solid var(--hgr-border);
  padding: 40px 0 24px;
  margin-top: auto;
}

.site-footer .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  color: var(--hgr-muted);
  font-size: 0.9rem;
}

/* ============================================================
   Utility: Hide theme chrome when using full custom pages
   Add class "hgr-full" to body or page to strip header/footer
   ============================================================ */

body.hgr-full .site-header,
body.hgr-full .site-footer,
body.hgr-full .entry-header {
  display: none !important;
}

/* ============================================================
   Gutenberg / Block editor compatibility
   ============================================================ */

.wp-block-image img {
  border-radius: var(--hgr-radius);
}

.alignwide,
.alignfull {
  max-width: none;
  width: 100%;
}

/* Make Custom HTML blocks full-bleed friendly */
.wp-block-html {
  margin: 0;
}

/* ============================================================
   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 {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
