/*
Theme Name: TuboFlow Gaming
Theme URI: https://tuboflow.com
Author: TuboFlow Team
Author URI: https://tuboflow.com
Description: A dark futuristic gaming theme with neon accents for selling digital gaming products and publishing gaming news. Built for WooCommerce with SEO optimization, conversion focus, speed, and mobile responsiveness.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: tuboflow
Tags: gaming, e-commerce, woocommerce, dark-mode, one-column, custom-menu, featured-images, theme-options

TuboFlow Gaming — The Future of Digital Gaming Commerce
*/

/* ===================================================
   DESIGN SYSTEM IMPORTS
   =================================================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ===================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   =================================================== */
:root {
    /* Colors — Primary Palette */
    --color-primary: #00F0FF;
    --color-primary-rgb: 0, 240, 255;
    --color-secondary: #8B5CF6;
    --color-secondary-rgb: 139, 92, 246;
    --color-accent: #FF3B82;
    --color-accent-rgb: 255, 59, 130;
    --color-success: #00FF88;
    --color-success-rgb: 0, 255, 136;
    --color-warning: #FFB800;
    --color-warning-rgb: 255, 184, 0;
    --color-error: #FF4444;

    /* Colors — Backgrounds */
    --bg-base: #0A0A0F;
    --bg-surface: #12121A;
    --bg-elevated: #1A1A2E;
    --bg-overlay: rgba(18, 18, 26, 0.85);

    /* Colors — Text */
    --text-primary: #F0F0F5;
    --text-secondary: #8888AA;
    --text-muted: #555570;
    --text-inverse: #0A0A0F;

    /* Colors — Borders */
    --border-default: #2A2A3E;
    --border-hover: #3A3A5E;
    --border-glow: rgba(0, 240, 255, 0.3);

    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Font Sizes (fluid) */
    --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
    --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
    --text-lg: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
    --text-xl: clamp(1.15rem, 1rem + 0.5vw, 1.25rem);
    --text-2xl: clamp(1.3rem, 1.1rem + 0.75vw, 1.5rem);
    --text-3xl: clamp(1.6rem, 1.3rem + 1vw, 1.875rem);
    --text-4xl: clamp(2rem, 1.5rem + 1.5vw, 2.25rem);
    --text-5xl: clamp(2.5rem, 1.8rem + 2vw, 3rem);
    --text-6xl: clamp(3rem, 2rem + 3vw, 3.75rem);

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

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow-cyan: 0 0 20px rgba(0, 240, 255, 0.3);
    --shadow-glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
    --shadow-glow-pink: 0 0 20px rgba(255, 59, 130, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --container-max: 1280px;
    --container-wide: 1440px;
    --header-height: 72px;

    /* Z-index scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-toast: 600;
}

/* ===================================================
   RESET & BASE
   =================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

::selection {
    background: rgba(0, 240, 255, 0.3);
    color: var(--text-primary);
}

/* ===================================================
   TYPOGRAPHY
   =================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: var(--text-6xl); letter-spacing: 2px; }
h2 { font-size: var(--text-4xl); letter-spacing: 1px; }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    text-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.5),
                 0 0 30px rgba(var(--color-primary-rgb), 0.3);
}

/* ===================================================
   LAYOUT UTILITIES
   =================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-wide {
    max-width: var(--container-wide);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex {
    display: flex;
    align-items: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 var(--space-md); }
    .section { padding: var(--space-2xl) 0; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    :root { --header-height: 60px; }
}

/* ===================================================
   SCREEN READER ONLY
   =================================================== */
.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;
}
