/*
Theme Name: PearBlog Theme v2 PRO
Theme URI: https://pearblog.com
Author: PearBlog
Author URI: https://pearblog.com
Description: Enterprise Frontend Operating System (FOS) for AI SEO SaaS. Maximum UX, SEO, and monetization with multisite white-label support. Features: Dark mode, TOC, auto ad injection, performance optimization, smart CTA placement, video hero, grid/list views, and AI-powered blocks.
Version: 2.0.0
Requires at least: 5.9
Tested up to: 6.4
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: pearblog-theme
Tags: blog, seo, responsive, mobile-first, monetization, multisite, dark-mode, performance, enterprise, ai, saas

PearBlog Theme v2 PRO, Copyright 2026 PearBlog
PearBlog Theme is distributed under the terms of the GNU GPL.

Frontend Operating System (FOS) - Not just a theme.
*/

:root {
  /* Primary Brand Colors - Override per multisite */
  --pb-primary: #2563eb;
  --pb-primary-hover: #1d4ed8;
  --pb-secondary: #7c3aed;
  --pb-secondary-hover: #6d28d9;

  /* Background Colors */
  --pb-bg: #ffffff;
  --pb-bg-alt: #f9fafb;
  --pb-bg-dark: #111827;

  /* Text Colors */
  --pb-text: #1f2937;
  --pb-text-light: #6b7280;
  --pb-text-white: #ffffff;

  /* Accent Colors */
  --pb-accent: #f59e0b;
  --pb-success: #10b981;
  --pb-error: #ef4444;

  /* Typography */
  --pb-font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --pb-font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --pb-space-xs: 0.25rem;
  --pb-space-sm: 0.5rem;
  --pb-space-md: 1rem;
  --pb-space-lg: 1.5rem;
  --pb-space-xl: 2rem;
  --pb-space-2xl: 3rem;
  --pb-space-3xl: 4rem;

  /* Border Radius */
  --pb-radius-sm: 0.25rem;
  --pb-radius-md: 0.5rem;
  --pb-radius-lg: 0.75rem;
  --pb-radius-xl: 1rem;

  /* Shadows */
  --pb-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --pb-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --pb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Container */
  --pb-container-max: 1200px;
  --pb-container-padding: 1rem;
}

/* Mobile First - Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--pb-font-base);
  color: var(--pb-text);
  background-color: var(--pb-bg);
  line-height: 1.6;
  font-size: 16px;
}

/* Typography - Mobile First */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--pb-font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--pb-space-lg);
  color: var(--pb-text);
}

h1 {
  font-size: 2rem;
  margin-bottom: var(--pb-space-xl);
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: var(--pb-space-md);
}

a {
  color: var(--pb-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--pb-primary-hover);
}

/* Container */
.pb-container {
  max-width: var(--pb-container-max);
  margin: 0 auto;
  padding: 0 var(--pb-container-padding);
  width: 100%;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
  :root {
    --pb-container-padding: 1.5rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  body {
    font-size: 18px;
  }
}

@media (min-width: 1024px) {
  :root {
    --pb-container-padding: 2rem;
  }

  h1 {
    font-size: 3.5rem;
  }
}

/* Performance - Lazy Loading */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Utilities */
.pb-hidden {
  display: none;
}

.pb-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.pb-text-center {
  text-align: center;
}

.pb-mt-0 { margin-top: 0; }
.pb-mb-0 { margin-bottom: 0; }
