/*
Theme Name: YOOPixel
Theme URI: https://yoopixel.com/
Author: YOOPixel Team
Author URI: https://yoopixel.com/
Description: YOOPixel Theme is a modern, high-performance WordPress theme designed for all types of websites. Features include advanced security, performance optimization, full responsiveness, accessibility ready, and SEO optimization.
Version: 1.0.0
Requires at least: 6.7
Tested up to: 6.7
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: yoopixel
Tags: custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, blog, e-commerce, portfolio
*/

/**
 * YOOPixel Theme - Main Stylesheet
 * 
 * This file contains the core styles and CSS variables for the YOOPixel theme.
 * All colors MUST use CSS variables defined below.
 * 
 * @package YOOPixel
 * @version 1.0.0
 */

/* ============================================
   CSS Variables - Color System (MANDATORY)
   ============================================ */

:root {
    /* Primary Colors */
    --yoopixel-primary: #EFB54D;
    --yoopixel-primary-dark: #D4A043;
    --yoopixel-primary-light: #F5C766;
    
    /* Text Colors */
    --yoopixel-text-primary: #444444;
    --yoopixel-text-secondary: #5A5A59;
    --yoopixel-text-light: #777777;
    --yoopixel-text-muted: #999999;
    
    /* Background Colors */
    --yoopixel-bg-primary: #ffffff;
    --yoopixel-bg-secondary: #f8f9fa;
    --yoopixel-bg-dark: #2c3e50;
    --yoopixel-bg-light: #ecf0f1;
    
    /* Link Colors */
    --yoopixel-link: #EFB54D;
    --yoopixel-link-hover: #D4A043;
    --yoopixel-link-visited: #B8941F;
    --yoopixel-link-active: #D4A043;
    
    /* Status Colors */
    --yoopixel-success: #27ae60;
    --yoopixel-warning: #f39c12;
    --yoopixel-error: #e74c3c;
    --yoopixel-info: #3498db;
    
    /* Border Colors */
    --yoopixel-border: #e0e0e0;
    --yoopixel-border-dark: #d0d0d0;
    --yoopixel-border-light: #f0f0f0;
    
    /* Shadow Colors */
    --yoopixel-shadow: rgba(0, 0, 0, 0.1);
    --yoopixel-shadow-dark: rgba(0, 0, 0, 0.2);
    --yoopixel-shadow-light: rgba(0, 0, 0, 0.05);
    
    /* Spacing */
    --yoopixel-spacing-xs: 0.25rem;
    --yoopixel-spacing-sm: 0.5rem;
    --yoopixel-spacing-md: 1rem;
    --yoopixel-spacing-lg: 1.5rem;
    --yoopixel-spacing-xl: 2rem;
    --yoopixel-spacing-2xl: 3rem;
    
    /* Typography */
    --yoopixel-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --yoopixel-font-size-base: 16px;
    --yoopixel-line-height-base: 1.6;
}

/* ============================================
   Base Styles
   ============================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--yoopixel-font-family);
    font-size: var(--yoopixel-font-size-base);
    line-height: var(--yoopixel-line-height-base);
    color: var(--yoopixel-text-secondary);
    background-color: var(--yoopixel-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--yoopixel-text-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--yoopixel-spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--yoopixel-spacing-md);
}

/* ============================================
   Links
   ============================================ */

a {
    color: var(--yoopixel-link);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--yoopixel-link-hover);
}

a:visited {
    color: var(--yoopixel-link-visited);
}

a:active {
    color: var(--yoopixel-link-active);
}

a:focus {
    outline: 2px solid var(--yoopixel-primary);
    outline-offset: 2px;
}

/* ============================================
   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 !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--yoopixel-bg-light);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--yoopixel-text-primary);
    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;
}

/* ============================================
   WordPress Core
   ============================================ */

.alignnone {
    margin: var(--yoopixel-spacing-md) 0;
}

.aligncenter {
    display: block;
    margin: var(--yoopixel-spacing-md) auto;
}

.alignleft {
    float: left;
    margin: var(--yoopixel-spacing-sm) var(--yoopixel-spacing-md) var(--yoopixel-spacing-sm) 0;
}

.alignright {
    float: right;
    margin: var(--yoopixel-spacing-sm) 0 var(--yoopixel-spacing-sm) var(--yoopixel-spacing-md);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    :root {
        --yoopixel-font-size-base: 14px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.875rem; }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a, a:visited {
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
    
    img {
        page-break-inside: avoid;
    }
    
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
    
    h2, h3 {
        page-break-after: avoid;
    }
}

