/*
Theme Name: Vitatechy AI Search
Theme URI: https://vitatechy.com
Author: Vitatechy Team
Author URI: https://vitatechy.com
Description: Ultra-minimalist, lightweight single-page AI Search Engine WordPress theme inspired by Perplexity AI & ChatGPT.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vitatechy
Tags: ai-search, single-page, dark-mode, minimalist, tailwind, fast, ultra-lightweight
*/

/* Core Theme Styles & Variables */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  
  /* Light Mode Palette */
  --bg-primary: #f9fafb;
  --bg-surface: #ffffff;
  --bg-surface-border: #e5e7eb;
  --text-main: #111827;
  --text-muted: #6b7280;
  --card-bg: #ffffff;
  --input-bg: #f3f4f6;
  --pill-bg: #f3f4f6;
  --pill-hover: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.dark {
  /* Dark Mode Palette (ChatGPT & Perplexity Inspired) */
  --bg-primary: #0f172a;
  --bg-surface: #1e293b;
  --bg-surface-border: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --card-bg: #1e293b;
  --input-bg: #0f172a;
  --pill-bg: #334155;
  --pill-hover: #475569;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

/* General Resets & Layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  transition: background-color 0.25s ease, color 0.25s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 9999px;
  opacity: 0.3;
}

/* Glowing Pulsing Animation for AI Thinking */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

.animate-pulse-glow {
  animation: pulseGlow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Markdown typography polish */
.prose-vita {
  line-height: 1.7;
}
.prose-vita p {
  margin-bottom: 1rem;
}
.prose-vita ul, .prose-vita ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.prose-vita code {
  background: var(--input-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: monospace;
}
.prose-vita pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}
