/*
Theme Name: ByteYogi
Theme URI: https://byteyogi.com
Description: A dark minimal tech education theme for Indian developers
Version: 1.0.0
Author: Anurag Sinha
Author URI: https://byteyogi.com
Text Domain: byteyogi
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* === CSS Custom Properties (canonical source) === */
:root {
    /* Backgrounds */
    --bg-primary: #030712;
    --bg-secondary: #0a0f1e;
    --bg-surface: #111827;
    --bg-surface-hover: #1e293b;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Accents */
    --accent-blue: #38bdf8;
    --accent-indigo: #818cf8;
    --accent-purple: #c084fc;
    --accent-green: #34d399;
    --accent-yellow: #fbbf24;
    --accent-pink: #f472b6;
    --accent-teal: #2dd4bf;
    --accent-rose: #fb7185;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-code: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow-blue: 0 0 30px rgba(56, 189, 248, 0.15);
    --shadow-glow-indigo: 0 0 30px rgba(129, 140, 248, 0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Layout */
    --max-width: 1280px;
    --nav-height: 64px;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 500;
    --z-navbar: 1000;
    --z-overlay: 1500;
    --z-modal: 2000;
    --z-toast: 3000;
    --z-progress: 9000;

    /* Status Colors */
    --color-success: #34d399;
    --color-error: #f87171;
    --color-warning: #fbbf24;
    --color-info: #38bdf8;
}

/* === Light Mode Overrides === */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-surface: #f1f5f9;
    --bg-surface-hover: #e2e8f0;
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-glow-blue: 0 0 30px rgba(56, 189, 248, 0.1);
    --shadow-glow-indigo: 0 0 30px rgba(129, 140, 248, 0.1);
}

/* === Accessibility === */
.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;
}

.using-keyboard *:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.using-keyboard .skip-link:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: var(--z-toast, 3000);
    width: auto;
    height: auto;
    padding: 0.75rem 1.5rem;
    clip: auto;
    white-space: normal;
    background: var(--accent-blue);
    color: #000;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
}

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

/* === CSS Reset === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
}

img {
    max-width: 100%;
}
