/*
Theme Name: OutputLag Gaming
Theme URI: https://outputlag.com
Author: OutputLag Team
Author URI: https://outputlag.com
Description: Performance-optimized gaming news and reviews theme with custom review system, dark mode support, and Core Web Vitals optimization. Designed for gaming enthusiasts who value speed and technical excellence.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: outputlag
Tags: gaming, news, reviews, dark-mode, block-editor, custom-post-types, performance

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* CSS Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

/* CSS Custom Properties for Theme Colors */
:root {
    /* Primary Colors - RGB format for opacity control */
    --rgb-primary-dark: 10, 10, 10;
    --rgb-primary-accent: 0, 212, 255;
    --rgb-secondary-accent: 255, 0, 110;
    --rgb-tertiary-accent: 57, 255, 20;
    --rgb-white: 255, 255, 255;
    
    /* Primary Colors (backward compatibility) */
    --color-primary-black: rgb(var(--rgb-primary-dark));
    --color-primary-blue: rgb(var(--rgb-primary-accent));
    --color-primary-green: rgb(var(--rgb-tertiary-accent));
    --color-secondary-pink: rgb(var(--rgb-secondary-accent));
    
    /* Secondary Colors */
    --color-dark-grey: #1A1A1A;
    --color-medium-grey: #2D2D2D;
    --color-light-grey: #E0E0E0;
    --color-white: rgb(var(--rgb-white));
    
    /* Text Colors */
    --color-text-primary: #E0E0E0;
    --color-text-secondary: #A0A0A0;
    --color-text-inverse: #1A1A1A;
    
    /* Gradients for modern effects */
    --gradient-primary: linear-gradient(135deg, 
        rgb(var(--rgb-primary-accent)) 0%, 
        rgb(var(--rgb-secondary-accent)) 100%);
    --gradient-glow: radial-gradient(circle, 
        rgba(var(--rgb-primary-accent), 0.1) 0%, 
        transparent 70%);
    --gradient-dark: linear-gradient(180deg, 
        rgba(var(--rgb-primary-dark), 0) 0%, 
        rgba(var(--rgb-primary-dark), 0.9) 100%);
    --gradient-hero: linear-gradient(135deg,
        rgba(var(--rgb-primary-accent), 0.15) 0%,
        rgba(var(--rgb-secondary-accent), 0.15) 50%,
        rgba(var(--rgb-tertiary-accent), 0.15) 100%)
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Space Grotesk', var(--font-primary);
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    /* Font Sizes */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-base: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Transitions */
    --transition-base: 200ms ease-in-out;
    --transition-slow: 300ms ease-in-out;
    
    /* 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);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Glassmorphism */
    --glass-bg: rgba(var(--rgb-primary-dark), 0.6);
    --glass-bg-heavy: rgba(var(--rgb-primary-dark), 0.8);
    --glass-border: rgba(var(--rgb-white), 0.1);
    --glass-border-hover: rgba(var(--rgb-primary-accent), 0.5);
    --glass-blur: blur(10px);
    --glass-blur-heavy: blur(20px);
    
    /* Glow Effects */
    --glow-primary: 0 0 20px rgba(var(--rgb-primary-accent), 0.3);
    --glow-secondary: 0 0 20px rgba(var(--rgb-secondary-accent), 0.3);
    --glow-tertiary: 0 0 20px rgba(var(--rgb-tertiary-accent), 0.3);
}

/* Dark Mode (Default) */
body {
    background-color: var(--color-primary-black);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Light Mode Support */
body.light-mode {
    --rgb-primary-dark: 255, 255, 255;
    --rgb-primary-accent: 0, 153, 204;
    --rgb-secondary-accent: 204, 0, 88;
    --rgb-tertiary-accent: 0, 204, 0;
    
    --color-primary-black: rgb(var(--rgb-primary-dark));
    --color-primary-blue: rgb(var(--rgb-primary-accent));
    --color-primary-green: rgb(var(--rgb-tertiary-accent));
    --color-dark-grey: #F5F5F5;
    --color-medium-grey: #E0E0E0;
    --color-light-grey: #333333;
    --color-text-primary: #1A1A1A;
    --color-text-secondary: #666666;
    --color-text-inverse: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: light) {
    body:not(.dark-mode) {
        --rgb-primary-dark: 255, 255, 255;
        --rgb-primary-accent: 0, 153, 204;
        --rgb-secondary-accent: 204, 0, 88;
        --rgb-tertiary-accent: 0, 204, 0;
        
        --color-primary-black: rgb(var(--rgb-primary-dark));
        --color-primary-blue: rgb(var(--rgb-primary-accent));
        --color-primary-green: rgb(var(--rgb-tertiary-accent));
        --color-dark-grey: #F5F5F5;
        --color-medium-grey: #E0E0E0;
        --color-light-grey: #333333;
        --color-text-primary: #1A1A1A;
        --color-text-secondary: #666666;
        --color-text-inverse: #FFFFFF;
        --glass-bg: rgba(255, 255, 255, 0.6);
        --glass-border: rgba(0, 0, 0, 0.1);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--line-height-tight);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary-blue);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-primary-green);
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Glassmorphism Effect */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Responsive Breakpoints */
@media (max-width: 767px) {
    /* Mobile */
    .container {
        padding: 0 var(--spacing-md);
    }
    
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet */
}

@media (min-width: 1024px) and (max-width: 1439px) {
    /* Desktop */
}

@media (min-width: 1440px) {
    /* Wide */
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }
.mb-4 { margin-bottom: var(--spacing-xl); }

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin-right: var(--spacing-md);
}

.alignright {
    float: right;
    margin-left: var(--spacing-md);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    margin-left: calc(-1 * var(--spacing-xl));
    margin-right: calc(-1 * var(--spacing-xl));
    max-width: calc(100% + 2 * var(--spacing-xl));
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
}

/* WordPress Block Editor Support */
.wp-block {
    max-width: 100%;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    clip: auto !important;
    display: block;
    height: auto;
    left: 5px;
    top: 5px;
    width: auto;
    z-index: 100000;
}