/*
Theme Name: PickWitty Tools Pro
Theme URI: https://pickwitty.com/tools-pro
Author: PickWitty
Author URI: https://pickwitty.com
Description: High-performance, international standard WordPress Theme & SaaS Framework for Software Utilities and Online Tools. Featuring Custom Post Types for Tools, Semantic SEO (Schema.org SoftwareApplication), multi-slot AdSense manager, in-grid native card ads, and automatic page setup.
Version: 1.1.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pickwitty-tools-pro
Tags: tools, software-utility, saas, micro-apps, adsense, semantic-seo, custom-post-type, light-theme
*/

/* Core CSS Variables */
:root {
  --pw-primary: #4f46e5;
  --pw-primary-hover: #4338ca;
  --pw-primary-light: #eef2ff;
  --pw-bg: #f8fafc;
  --pw-card-bg: #ffffff;
  --pw-border: #e2e8f0;
  --pw-border-dark: #cbd5e1;
  --pw-text-main: #0f172a;
  --pw-text-muted: #64748b;
  --pw-radius: 0.75rem;
  --pw-radius-lg: 1rem;
}

/* Strict SVG Sizing Safeguards: Prevents inline SVGs from overflowing */
svg {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}
svg.w-3, svg.h-3 { width: 0.75rem !important; height: 0.75rem !important; }
svg.w-3\.5, svg.h-3\.5 { width: 0.875rem !important; height: 0.875rem !important; }
svg.w-4, svg.h-4 { width: 1rem !important; height: 1rem !important; }
svg.w-5, svg.h-5 { width: 1.25rem !important; height: 1.25rem !important; min-width: 1.25rem; }
svg.w-6, svg.h-6 { width: 1.5rem !important; height: 1.5rem !important; min-width: 1.5rem; }

/* Base Reset & Typography */
*, ::before, ::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--pw-bg);
  color: var(--pw-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout Utilities */
.pw-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header & Nav */
.pw-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pw-border);
}

/* Tool Card Styles */
.pw-tool-card {
  background: #ffffff;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.pw-tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--pw-border-dark);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

/* In-Grid Native Ad Card */
.pw-ad-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--pw-border);
  border-radius: var(--pw-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pw-ad-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.pw-ad-card .pw-ad-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 10;
}

/* Prose Typography for Tool Guides */
.prose-tool h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.prose-tool h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.prose-tool p {
  margin-bottom: 1rem;
  color: #334155;
  line-height: 1.7;
}
.prose-tool ul, .prose-tool ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: #334155;
}
.prose-tool li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}
.prose-tool pre {
  background: #0f172a;
  color: #34d399;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}
