/*
Theme Name: AlexDev
Theme URI: https://alex.dev
Author: Alex Morgan
Author URI: https://alex.dev
Description: A cybersecurity researcher portfolio theme with a dark cyber aesthetic, neon accents, and animated effects. Built for WordPress with Elementor compatibility.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alexdev
Tags: custom-logo, custom-menu, custom-colors, custom-header, featured-images, footer-widgets, full-width-templates, block-styles, wide-blocks

AlexDev WordPress Theme, Copyright 2025 Alex Morgan
AlexDev is distributed under the terms of the GNU GPL v2.
*/

/* ==========================================================================
   BASE WORDPRESS RESETS & THEME STYLES
   ========================================================================== */

/* Inherit fonts */
body {
    font-family: 'Space Grotesk', sans-serif;
}

/* ==========================================================================
   COLOR VARIABLES (matches Tailwind config from template)
   ========================================================================== */
:root {
    /* Void palette */
    --void-50: #f0f0f5;
    --void-100: #e0e0ea;
    --void-200: #c0c0d5;
    --void-300: #9090b0;
    --void-400: #6868a0;
    --void-500: #4a4a7a;
    --void-600: #2a2a50;
    --void-700: #1a1a35;
    --void-800: #0f0f20;
    --void-900: #0a0a12;
    --void-950: #050508;

    /* Neon palette */
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff00e5;
    --neon-green: #00ff88;
    --neon-yellow: #f0ff00;
    --neon-purple: #a855f7;

    /* Semantic */
    --bg-body: var(--void-950);
    --text-body: var(--void-200);
    --text-heading: #ffffff;
    --text-muted: var(--void-400);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-body);
    color: var(--text-body);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.1;
}

code, pre, .font-code {
    font-family: 'Fira Code', monospace;
}

/* ==========================================================================
   WORDPRESS CORE OVERRIDES
   ========================================================================== */

/* Alignwide / alignfull support */
.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    margin: 0;
}

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

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

/* Caption */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* Blockquote */
blockquote {
    border-left: 4px solid var(--neon-cyan);
    padding-left: 1rem;
    margin-left: 0;
    font-style: italic;
    color: var(--text-muted);
}

/* ==========================================================================
   WORDPRESS MENU STYLES
   ========================================================================== */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--void-300);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--neon-cyan);
}

/* Dropdown submenus */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 15, 32, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.main-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu a {
    display: block;
    padding: 0.5rem 1rem;
}

.main-navigation .sub-menu a:hover {
    background: rgba(0, 240, 255, 0.05);
}

/* ==========================================================================
   CUSTOM WORDPRESS STYLES
   ========================================================================== */

/* Skip link */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neon-cyan);
    color: var(--void-900);
    padding: 0.5rem 1rem;
    z-index: 99999;
    border-radius: 0 0 0.5rem 0.5rem;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader text */
.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;
    width: 1px;
    word-wrap: normal;
}

.screen-reader-text:focus {
    background-color: var(--void-800);
    clip: auto;
    clip-path: none;
    color: var(--neon-cyan);
    display: block;
    font-size: 0.875rem;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Edit link */
.post-edit-link {
    color: var(--neon-cyan);
    font-size: 0.875rem;
}

/* ==========================================================================
   ELEMENTOR COMPATIBILITY
   ========================================================================== */

/* Ensure Elementor containers respect theme colors */
.elementor-section-wrap,
.elementor-container {
    color: var(--text-body);
}

.elementor-widget-text-editor {
    color: var(--text-body);
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    body {
        background: white;
        color: black;
    }

    .noise,
    .cyber-grid,
    .orb,
    #particles,
    .scan-line {
        display: none !important;
    }
}
