/* QuickDev Tools — Core Design System v2 */
/* Warm Terminal aesthetic · Outfit + DM Sans · Lime accent */

:root {
    --bg: #0B0D0F;
    --bg-card: #13161A;
    --bg-input: #1A1E24;
    --bg-hover: #1F242C;
    --border: #262D38;
    --border-focus: #C3F73A;
    --text: #E8E6E3;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;
    --accent: #C3F73A;
    --accent-hover: #D4FF4A;
    --green: #4ADE80;
    --green-bg: rgba(74,222,128,.1);
    --red: #F87171;
    --red-bg: rgba(248,113,113,.1);
    --yellow: #FBBF24;
    --yellow-bg: rgba(251,191,36,.1);
    --purple: #A78BFA;
    --cyan: #67E8F9;
    --orange: #FB923C;
    --radius: 12px;
    --radius-sm: 8px;
    --mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', Consolas, monospace;
    --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --display: 'Outfit', var(--sans);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(195,247,58,.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(167,139,250,.03) 0%, transparent 50%);
    background-attachment: fixed;
}

/* ── Entrance Animations ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* ── Navigation ── */
.site-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11,13,15,.8);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(38,45,56,.6);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 60px;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--text); font-family: var(--display);
    font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em;
}
.logo-mark {
    width: 32px; height: 32px; border-radius: 9px;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 800; color: #0B0D0F; font-family: var(--mono);
    box-shadow: 0 0 16px rgba(195,247,58,.25);
    transition: box-shadow .2s;
}
.nav-logo:hover .logo-mark { box-shadow: 0 0 24px rgba(195,247,58,.4); }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
    padding: 8px 16px; border-radius: var(--radius-sm);
    text-decoration: none; color: var(--text-muted); font-size: .9rem; font-weight: 500;
    transition: all .2s; font-family: var(--display);
}
.nav-links a:hover { color: var(--text); background: var(--bg-hover); }
.nav-links a.active { color: var(--accent); background: rgba(195,247,58,.08); }
.nav-hamburger { display: none; background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 6px; }

/* ── Hero ── */
.hero {
    text-align: center; padding: 72px 24px 56px;
    position: relative; animation: fadeIn .6s ease-out;
}
.hero h1 {
    font-family: var(--display);
    font-size: clamp(2rem, 5vw, 3rem); font-weight: 800;
    line-height: 1.15; margin-bottom: 16px; letter-spacing: -.03em;
    color: var(--text);
}
.hero h1 em { font-style: normal; color: var(--accent); text-shadow: 0 0 40px rgba(195,247,58,.2); }
.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto; line-height: 1.6; }

/* ── Tool Grid ── */
.tool-grid {
    max-width: 1200px; margin: 0 auto; padding: 0 24px 80px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px;
}
.tool-card {
    display: flex; gap: 18px; padding: 24px;
    background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius);
    text-decoration: none; color: var(--text);
    transition: border-color .2s, box-shadow .2s, transform .15s;
    animation: fadeUp .5s ease-out both;
}
.tool-card:hover {
    border-color: var(--tool-color, var(--accent));
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    transform: translateY(-2px); color: var(--text);
}
.tool-card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: .9rem; font-weight: 700;
    flex-shrink: 0;
}
.tool-card-body { flex: 1; min-width: 0; }
.tool-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tool-card-header h3 { font-family: var(--display); font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.tool-badge-new { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: rgba(195,247,58,.1); color: var(--accent); padding: 3px 8px; border-radius: 100px; flex-shrink: 0; }
.tool-badge-popular { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: rgba(195,247,58,.1); color: var(--accent); padding: 3px 8px; border-radius: 100px; flex-shrink: 0; }
.tool-card p { color: var(--text-muted); font-size: .85rem; line-height: 1.5; margin-bottom: 12px; }
.tool-card-meta { display: flex; justify-content: space-between; align-items: center; }
.tool-category { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); background: var(--bg-alt, rgba(255,255,255,.05)); padding: 4px 10px; border-radius: 4px; }
.tool-arrow { font-size: 1.1rem; color: var(--tool-color, var(--accent)); transition: transform .2s; }
.tool-card:hover .tool-arrow { transform: translateX(4px); }
.tool-card .tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: 12px; }

/* ── Tool Page Headers ── */
.tool-hero {
    padding: 24px 24px 16px;
    background: radial-gradient(ellipse at 50% 0%, rgba(195,247,58,.04) 0%, transparent 60%);
    animation: fadeIn .4s ease-out;
}
.tool-hero h1 { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; margin-bottom: 6px; letter-spacing: -.02em; }
.tool-hero p { color: var(--text-muted); font-size: .9rem; }
.tool-container { max-width: 1100px; margin: 0 auto; padding: 24px; }
.tool-container.wide { max-width: 1300px; }
.tool-container.narrow { max-width: 800px; }

/* ── Panels ── */
.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .8rem; font-weight: 600; color: var(--text-muted); font-family: var(--display); }
.panel-body { padding: 16px; }

/* ── Code Areas / Textareas ── */
textarea, .code-area {
    width: 100%; min-height: 300px; padding: 16px;
    background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-family: var(--mono); font-size: .85rem; line-height: 1.65;
    resize: vertical; outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea:focus, .code-area:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(195,247,58,.1); }
textarea::placeholder { color: var(--text-dim); }

/* ── Inputs & Selects ── */
input[type="text"], input[type="number"], input[type="url"], select {
    width: 100%; padding: 10px 14px;
    background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-family: var(--sans); font-size: .9rem;
    outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(195,247,58,.1); }
select { cursor: pointer; }
label { display: block; margin-bottom: 6px; font-family: var(--display); font-size: .78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600; cursor: pointer; border: none; transition: all .2s; font-family: var(--display); }
.btn-primary { background: var(--accent); color: #0B0D0F; box-shadow: 0 2px 8px rgba(195,247,58,.2); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 16px rgba(195,247,58,.3); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-hover); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-dim); background: var(--bg-input); }
.btn-sm { padding: 6px 14px; font-size: .8rem; }
.btn-icon { padding: 8px; width: 36px; height: 36px; justify-content: center; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Status / Badges ── */
.status-valid { color: var(--green); }
.status-invalid { color: var(--red); }
.status-bar { padding: 10px 16px; font-size: .85rem; font-weight: 600; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 8px; font-family: var(--display); }
.status-bar.valid { background: var(--green-bg); color: var(--green); }
.status-bar.invalid { background: var(--red-bg); color: var(--red); }
.status-bar.warning { background: var(--yellow-bg); color: var(--yellow); }

/* ── Split Layout ── */
.split-pane { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Tabs ── */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-input); border-radius: var(--radius-sm); }
.tab { padding: 7px 16px; border-radius: var(--radius-sm); border: none; background: transparent; color: var(--text-muted); font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .2s; font-family: var(--display); }
.tab.active { background: var(--accent); color: #0B0D0F; }

/* ── Colour Swatch ── */
.swatch { width: 100%; aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer; transition: transform .2s; }
.swatch:hover { transform: scale(1.05); }

/* ── FAQ / Content sections ── */
.content-section { max-width: 800px; margin: 0 auto; padding: 48px 24px 80px; }
.content-section h1 { font-family: var(--display); letter-spacing: -.02em; }
.content-section h2 { font-family: var(--display); font-size: 1.3rem; font-weight: 700; margin: 2em 0 .6em; padding-top: 1em; border-top: 1px solid var(--border); letter-spacing: -.01em; }
.content-section h2:first-of-type { border-top: none; padding-top: 0; }
.content-section h3 { font-family: var(--display); font-size: 1rem; font-weight: 600; margin: 1.5em 0 .4em; color: var(--text); }
.content-section p { color: var(--text-muted); margin-bottom: 1em; line-height: 1.7; }
.content-section code { background: var(--bg-input); padding: 2px 7px; border-radius: 4px; font-family: var(--mono); font-size: .85em; color: var(--accent); }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 48px 24px; background: rgba(11,13,15,.6); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 48px; flex-wrap: wrap; }
.footer-brand { max-width: 280px; }
.footer-brand p { font-size: .85rem; color: var(--text-dim); margin-top: 8px; line-height: 1.6; }
.footer-col h4 { font-family: var(--display); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: .875rem; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 1200px; margin: 24px auto 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: .78rem; color: var(--text-dim); text-align: center; }

/* ── Ad Units ── */
.ad-unit { margin: 24px 0; min-height: 90px; }
.ad-placeholder { display: block; text-align: center; padding: 8px; font-size: .7rem; color: var(--text-dim); letter-spacing: .04em; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: block; }
    .nav-links.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 8px; backdrop-filter: blur(20px); }
    .split-pane { grid-template-columns: 1fr; }
    .tool-grid { grid-template-columns: 1fr; }
    .tool-card { gap: 14px; }
    .hero { padding: 48px 24px 36px; }
    .footer-inner { flex-direction: column; gap: 24px; }
}

/* ── Utility ── */
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mb-md { margin-bottom: 16px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-mono { font-family: var(--mono); }
.hidden { display: none; }
.w-full { width: 100%; }

/* ── Blog ── */
.blog-hero { text-align: center; padding: 56px 24px 36px; animation: fadeIn .5s ease-out; }
.blog-hero h1 { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 8px; letter-spacing: -.03em; }
.blog-hero p { color: var(--text-muted); font-size: 1rem; }
.blog-grid { max-width: 800px; margin: 0 auto; padding: 0 24px 64px; display: grid; gap: 16px; }
.blog-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; text-decoration: none; color: var(--text);
    transition: all .25s cubic-bezier(.4,0,.2,1); position: relative; overflow: hidden;
}
.blog-card::after { content: '\2192'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--accent); opacity: 0; font-size: 1.2rem; font-weight: 700; transition: all .25s; }
.blog-card:hover { border-color: rgba(195,247,58,.3); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.3); padding-right: 48px; }
.blog-card:hover::after { opacity: 1; }
.blog-card h2 { font-family: var(--display); font-size: 1.08rem; font-weight: 700; margin: 8px 0 6px; line-height: 1.4; letter-spacing: -.01em; }
.blog-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }
.blog-card time { font-size: .75rem; color: var(--text-dim); margin-top: 10px; display: block; }
.blog-tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-family: var(--display); }

/* ── Blog Article ── */
.blog-article { max-width: 720px; margin: 0 auto; padding: 0 24px 64px; animation: fadeUp .5s ease-out; }
.blog-article-hero { text-align: center; padding: 48px 24px 28px; animation: fadeIn .4s ease-out; }
.blog-article-hero h1 { font-family: var(--display); font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; line-height: 1.25; margin-bottom: 12px; letter-spacing: -.02em; }
.blog-article-hero .meta { font-size: .82rem; color: var(--text-muted); }
.blog-article h2 { font-family: var(--display); font-size: 1.25rem; font-weight: 700; margin: 2em 0 .6em; padding-top: 1em; border-top: 1px solid var(--border); letter-spacing: -.01em; }
.blog-article h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.blog-article h3 { font-family: var(--display); font-size: 1.05rem; font-weight: 600; margin: 1.5em 0 .5em; }
.blog-article p { color: var(--text-muted); margin-bottom: 1em; line-height: 1.8; }
.blog-article strong { color: var(--text); font-weight: 600; }
.blog-article code { background: var(--bg-input); padding: 2px 8px; border-radius: 5px; font-size: .85em; color: var(--accent); font-family: var(--mono); }
.blog-article pre { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; overflow-x: auto; margin: 1.2em 0; font-size: .85rem; line-height: 1.6; }
.blog-article pre code { background: none; padding: 0; color: var(--text-muted); }
.blog-article ul, .blog-article ol { margin: 0 0 1em 1.5em; color: var(--text-muted); line-height: 1.8; }
.blog-article li { margin-bottom: .4em; }
.blog-article a { color: var(--accent); text-decoration: none; transition: opacity .15s; }
.blog-article a:hover { opacity: .8; }
.blog-article table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .88rem; }
.blog-article th { font-family: var(--display); text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--border); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.blog-article td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.blog-cta {
    background: linear-gradient(135deg, rgba(195,247,58,.15) 0%, rgba(167,139,250,.1) 100%);
    border: 1px solid rgba(195,247,58,.25); color: var(--text); padding: 28px;
    border-radius: var(--radius); text-align: center; margin: 2.5em 0;
}
.blog-cta h3 { font-family: var(--display); font-size: 1.15rem; margin-bottom: 8px; }
.blog-cta p { color: var(--text-muted); }
.blog-cta a {
    display: inline-block; margin-top: 12px; padding: 10px 28px;
    background: var(--accent); color: #0B0D0F; border-radius: var(--radius-sm);
    text-decoration: none; font-family: var(--display); font-weight: 700; font-size: .9rem;
    transition: all .2s; box-shadow: 0 2px 12px rgba(195,247,58,.2);
}
.blog-cta a:hover { background: var(--accent-hover); box-shadow: 0 4px 20px rgba(195,247,58,.35); transform: translateY(-1px); }

/* ── Enhanced Animations (Feb 2026 refresh) ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 20px rgba(195,247,58,.05); } 50% { box-shadow: 0 0 30px rgba(195,247,58,.12); } }
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-d1 { animation-delay: .08s; }
.fade-up-d2 { animation-delay: .16s; }

/* ── Improved card hover ── */
/* Tool card hover handled in main styles */

/* ── Blog card hover ── */
.blog-card { transition: all .25s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.25); border-color: var(--accent); }

/* ── Nav subtle glow ── */
.site-nav { box-shadow: 0 1px 0 rgba(195,247,58,.06); }

/* ── Footer contact ── */
.footer-bottom a { transition: color .15s; }
.footer-bottom a:hover { color: var(--accent); }

/* Focus Visible - Keyboard Accessibility */
*:focus-visible {
  outline: 2px solid var(--accent, #58a6ff);
  outline-offset: 2px;
  border-radius: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent, #58a6ff);
  outline-offset: 2px;
}

.skip-link:focus {
  outline: 2px solid var(--accent, #58a6ff);
  outline-offset: 2px;
}

/* Screen reader only - visually hidden but accessible */
.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;
}
