/*
Theme Name: TimG WP Theme
Theme URI: https://goldeneye.dev
Author: Tim Golden (GoldenEye)
Author URI: https://goldeneye.dev
Description: A modern WordPress theme for GoldenEye Content Hub with mini-sites support via Custom Post Types. Built with Tailwind CSS.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
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: timg-wp-theme
Tags: blog, portfolio, custom-colors, custom-menu, featured-images, full-width-template, threaded-comments
*/

/*
 * Main styles are handled by Tailwind CSS.
 * This file contains the theme header and any critical CSS that must load immediately.
 *
 * Build: npm run build:css
 * Watch: npm run watch:css
 */

/* CSS Custom Properties - Design Tokens */
:root {
    /* Colors - GoldenEye Brand */
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-secondary: #64748b;
    --color-accent: #f59e0b;

    /* Backgrounds */
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #0f172a;

    /* Text */
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #f8fafc;

    /* Borders */
    --color-border: #e2e8f0;
    --color-border-dark: #334155;

    /* Status */
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --container-max: 1280px;
    --container-padding: 1.5rem;

    /* Effects */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

    --transition: 150ms ease-in-out;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0f172a;
        --color-bg-alt: #1e293b;
        --color-text: #f8fafc;
        --color-text-muted: #94a3b8;
        --color-border: #334155;
    }
}

/* Critical above-the-fold styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* 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;
}

/* Dark theme prose overrides for Topics */
.entry-content.prose-invert {
    --tw-prose-body: #cbd5e1;
    --tw-prose-headings: #f1f5f9;
    --tw-prose-links: #60a5fa;
    --tw-prose-bold: #f1f5f9;
    --tw-prose-counters: #94a3b8;
    --tw-prose-bullets: #94a3b8;
    --tw-prose-hr: #334155;
    --tw-prose-quotes: #cbd5e1;
    --tw-prose-quote-borders: #3b82f6;
    --tw-prose-code: #f1f5f9;
    --tw-prose-pre-code: #e2e8f0;
    --tw-prose-pre-bg: rgba(30, 41, 59, 0.8);
    color: #cbd5e1;
}

.entry-content.prose-invert p,
.entry-content.prose-invert li,
.entry-content.prose-invert td,
.entry-content.prose-invert th {
    color: #cbd5e1;
}

.entry-content.prose-invert h1,
.entry-content.prose-invert h2,
.entry-content.prose-invert h3,
.entry-content.prose-invert h4 {
    color: #f1f5f9;
}

.entry-content.prose-invert a {
    color: #60a5fa;
}

.entry-content.prose-invert strong {
    color: #f1f5f9;
}
