/*
Theme Name: Dev Ash Pro
Theme URI: https://www.devash.pro
Author: Dev Ash
Author URI: https://www.devash.pro
Description: A minimal, dark-themed blog theme built for SEO and performance. Designed to match the Dev Ash portfolio site.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dev-ash-pro
*/

/* === Normalize === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
ol, ul { list-style: none; }
blockquote, figure, hr, p, pre { margin: 0; }
[hidden] { display: none; }
table { border-collapse: collapse; border-spacing: 0; }

/* === Design Tokens === */
:root {
    --bg: #050505;
    --surface: #0f1115;
    --primary: #137fec;
    --primary-a11y: #5ba3f5;
    --white: #fff;
    --black: #000;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --green: #22c55e;
    --purple-400: #c084fc;
    --emerald-400: #34d399;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
}

/* === Base === */
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--slate-100);
    overflow-x: hidden;
}
::selection { background: var(--primary); color: var(--white); }

/* === Scrollbar === */
html { scrollbar-width: thin; scrollbar-color: #222 var(--black); scrollbar-gutter: stable; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* === Layout === */
.section-wrap { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.content-wrap { max-width: 720px; margin: 0 auto; }

/* === Navigation === */
.site-nav {
    position: fixed; top: 0; width: 100%; z-index: 40;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    background: rgba(0,0,0,0.8);
}
.nav-inner {
    max-width: 80rem; margin: 0 auto; padding: 0 1.5rem;
    height: 4rem; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; }
.nav-logo .material-symbols-outlined { color: rgb(43,173,238); }
.nav-logo-text { color: var(--white); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.025em; }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-link { font-size: 0.875rem; font-weight: 500; color: var(--slate-400); transition: color 0.15s; }
.nav-link:hover, .nav-link.current { color: var(--white); }
.nav-cta {
    display: none; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; border-radius: 0.25rem;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem; font-weight: 500; transition: all 0.15s;
}
.nav-cta:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }
.nav-cta-arrow { font-size: 16px; }
.mobile-menu-btn { color: var(--white); z-index: 60; position: relative; }

/* === Mobile Menu === */
.mobile-overlay {
    position: fixed; inset: 0; z-index: 49;
    background: rgba(0,0,0,0.6);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }
.mobile-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
    width: 280px; max-width: 80vw;
    background: var(--surface);
    border-left: 1px solid rgba(255,255,255,0.08);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
    padding: 5rem 2rem 2rem;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-link {
    display: block; padding: 0.875rem 0;
    font-size: 1.125rem; font-weight: 500;
    color: var(--slate-400);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.15s;
}
.mobile-drawer-link:hover { color: var(--white); }
.mobile-drawer-cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-top: 1.5rem; padding: 0.75rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 0.25rem;
    font-size: 1rem; font-weight: 500;
    color: var(--white);
    transition: border-color 0.15s, background 0.15s;
}
.mobile-drawer-cta:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }

/* === Footer === */
.site-footer {
    padding: 2rem 0; background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.05); text-align: center;
}
.footer-inner {
    max-width: 80rem; margin: 0 auto; padding: 0 1.5rem;
    display: flex; flex-direction: column; justify-content: space-between;
    align-items: center; gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-brand-icon { color: rgba(255,255,255,0.5); font-size: 0.875rem; }
.footer-brand-text { color: rgba(255,255,255,0.5); font-size: 0.875rem; font-weight: 500; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-link { color: var(--slate-400); font-size: 0.875rem; transition: color 0.15s; }
.footer-link:hover { color: var(--white); }

/* === Screen Reader === */
.screen-reader-text {
    clip: rect(1px,1px,1px,1px); position: absolute;
    height: 1px; width: 1px; overflow: hidden;
    word-wrap: normal;
}
.screen-reader-text:focus {
    clip: auto; display: block;
    height: auto; width: auto;
    position: static; overflow: visible;
}

/* === Responsive (768px+) === */
@media (min-width: 768px) {
    .nav-links { display: flex; }
    .nav-cta { display: flex; }
    .mobile-menu-btn { display: none; }
    .footer-inner { flex-direction: row; }
    .site-footer { text-align: left; }
}
