/*
Theme Name: Gagootz Theme
Theme URI: https://gagootz.com
Author: Gagootz
Author URI: https://gagootz.com
Description: A lightweight, hook-rich, filter-driven WordPress framework designed specifically for seamless companion plugin integration, custom builders, and block layouts.
Version: 1.1.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: gagootz-theme
Tags: custom-header, custom-menu, custom-logo, full-width-template, theme-options, threaded-comments, translation-ready, block-styles, template-editing
*/

/* --- CSS Variables & Design Tokens --- */
:root {
  --gz-primary: #2563eb;
  --gz-primary-hover: #1d4ed8;
  --gz-text: #1f2937;
  --gz-text-muted: #6b7280;
  --gz-heading: #111827;
  --gz-bg: #ffffff;
  --gz-surface: #f9fafb;
  --gz-border: #e5e7eb;
  --gz-container-max: 1200px;
  --gz-container-pad: 1.5rem;
}

/* --- Base Resets & Box Sizing --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--gz-text);
  background-color: var(--gz-bg);
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#page.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

#content.site-content {
  flex: 1 0 auto;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  color: var(--gz-heading);
  line-height: 1.25;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

a {
  color: var(--gz-primary);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover, a:focus {
  color: var(--gz-primary-hover);
  text-decoration: underline;
}

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

/* --- Container Classes (Controlled via gagootz_layout_mode) --- */
.site-container {
  width: 100%;
  max-width: var(--gz-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gz-container-pad);
  padding-right: var(--gz-container-pad);
}

.site-container-fluid {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-left: var(--gz-container-pad);
  padding-right: var(--gz-container-pad);
}

.site-container-canvas {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.site-main {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.site-main.builder-canvas {
  padding-top: 0;
  padding-bottom: 0;
}

/* --- Site Header & Navigation --- */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--gz-border);
  padding: 1.25rem 0;
  position: relative;
  z-index: 50;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-title a {
  color: var(--gz-heading);
  text-decoration: none;
}

.site-description {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gz-text-muted);
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.main-navigation a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gz-text);
  padding: 0.5rem 0;
  display: inline-block;
  transition: color 0.15s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--gz-primary);
  text-decoration: none;
}

/* --- Entries & Posts --- */
.entry {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.entry:last-child {
  border-bottom: none;
}

.entry-header {
  margin-bottom: 1.5rem;
}

.entry-title {
  margin: 0 0 0.5rem 0;
}

.entry-meta {
  font-size: 0.875rem;
  color: var(--gz-text-muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.entry-content {
  line-height: 1.75;
}

.entry-content blockquote {
  border-left: 4px solid var(--gz-primary);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: #4b5563;
  font-style: italic;
}

/* --- Gutenberg Alignments --- */
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.alignwide {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* --- Site Footer --- */
.site-footer {
  background-color: var(--gz-surface);
  border-top: 1px solid var(--gz-border);
  padding: 2.5rem 0;
  font-size: 0.875rem;
  color: var(--gz-text-muted);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.footer-navigation a {
  color: var(--gz-text-muted);
}

.footer-navigation a:hover {
  color: var(--gz-heading);
}

/* --- Pagination & Utility --- */
.pagination {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem;
}

.pagination .page-numbers {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  color: var(--gz-text);
}

.pagination .current {
  background-color: var(--gz-primary);
  border-color: var(--gz-primary);
  color: #ffffff;
}

/* Screen reader utility */
.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 !important;
  width: 1px;
  word-wrap: normal !important;
}
