/*
Theme Name: Culatore
Theme URI: https://freecalculatorninja.com
Author: FreeCalculatorNinja
Author URI: https://freecalculatorninja.com
Description: A lightweight, performance-focused WordPress theme for calculator websites. Built with SEO, accessibility, and user experience as core priorities.
Version: 1.0.0
Requires at least: 6.0
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: culatore
Tags: calculator, blog, custom-post-types, accessibility-ready, performance

Culatore WordPress Theme, Copyright 2025 FreeCalculatorNinja
Culatore is distributed under the terms of the GNU GPL
*/

/* =========================================
   CSS VARIABLES - DESIGN SYSTEM
   ========================================= */

:root {
  /* Colors - Background */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  
  /* Colors - Text */
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #4a4a4a;
  --color-text-tertiary: #6b6b6b;
  --color-text-inverse: #ffffff;
  
  /* Colors - Border */
  --color-border-primary: #e0e0e0;
  --color-border-secondary: #f0f0f0;
  --color-border-focus: #0066cc;
  
  /* Colors - Accent */
  --color-accent-primary: #0066cc;
  --color-accent-primary-hover: #0052a3;
  --color-accent-secondary: #00aa66;
  --color-accent-danger: #cc0000;
  
  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  
  --font-size-base: 16px;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  
  --font-size-h1: 2.5rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.75rem;
  --font-size-h4: 1.5rem;
  --font-size-h5: 1.25rem;
  --font-size-h6: 1rem;
  
  --line-height-base: 1.6;
  --line-height-heading: 1.3;
  
  /* Spacing - 4px based system */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  
  /* Layout */
  --container-width: 1200px;
  --container-padding: var(--space-4);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Transitions */
  --transition-base: all 0.2s ease-in-out;
  --transition-fast: all 0.15s ease-in-out;
}

/* =========================================
   BASE STYLES
   ========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
}

/* =========================================
   TYPOGRAPHY
   ========================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  line-height: var(--line-height-heading);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }
h5 { font-size: var(--font-size-h5); }
h6 { font-size: var(--font-size-h6); }

p {
  margin-bottom: var(--space-4);
}

a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-accent-primary-hover);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 2px;
}

/* =========================================
   LAYOUT UTILITIES
   ========================================= */

.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--color-bg-secondary);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  clip: auto !important;
  color: var(--color-text-primary);
  display: block;
  font-size: var(--font-size-base);
  height: auto;
  left: 5px;
  line-height: normal;
  padding: var(--space-4);
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* =========================================
   RESPONSIVE TYPOGRAPHY
   ========================================= */

@media (max-width: 768px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
    --font-size-h5: 1.125rem;
    --font-size-h6: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-h1: 1.75rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
  }
}
