/*
 * Auron AI — Custom Styles
 * ═══════════════════════════════════════════════════════════════
 * This file contains all custom styles for the Auron AI PHP app.
 * Tailwind CSS is loaded via CDN <script> in the HTML <head>.
 * Only non-Tailwind custom styles live here.
 * ═══════════════════════════════════════════════════════════════
 */

/* ═══ Google Fonts ═══ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ═══ CSS Custom Properties (Auron Color Palette) ═══ */
:root {
  --auron-dark: #0a0a0f;
  --auron-card: #111118;
  --auron-border: #1e1e2a;
  --auron-orange: #f59e0b;
  --auron-gold: #fbbf24;
  --auron-light: #fef3c7;
}

/* ═══ Base / Reset ═══ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--auron-dark);
  color: #e5e7eb;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══ Keyframe Animations ═══ */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes float-delay {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-recording {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
}

/* ═══ Animation Utility Classes ═══ */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-float-delay {
  animation: float-delay 3.5s ease-in-out infinite 0.5s;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

.animate-pulse-recording {
  animation: pulse-recording 1.5s ease-in-out infinite;
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out forwards;
}

/* ═══ Scrollbar Styles ═══ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--auron-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--auron-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a2a3a;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--auron-border) var(--auron-dark);
}

/* ═══ Selection Styles ═══ */
::selection {
  background: rgba(245, 158, 11, 0.3);
  color: #fff;
}

::-moz-selection {
  background: rgba(245, 158, 11, 0.3);
  color: #fff;
}

/* ═══ Navbar Glass Effect ═══ */
#navbar {
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 30, 42, 0.5);
}

/* ═══ ScrollReveal Styles ═══ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ Chat Widget — Typing Indicator ═══ */
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #9ca3af;
  animation: typing-bounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(1) {
  animation-delay: 0ms;
}

.typing-dot:nth-child(2) {
  animation-delay: 150ms;
}

.typing-dot:nth-child(3) {
  animation-delay: 300ms;
}

/* ═══ Chat Widget — Message Styles ═══ */
.chat-message-user {
  background-color: var(--auron-orange);
  color: var(--auron-dark);
  border-radius: 1rem 1rem 0.25rem 1rem;
}

.chat-message-assistant {
  background-color: var(--auron-card);
  border: 1px solid var(--auron-border);
  color: #e5e7eb;
  border-radius: 1rem 1rem 1rem 0.25rem;
}

/* ═══ Chat Widget — Scrollbar ═══ */
.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--auron-border);
  border-radius: 2px;
}

/* ═══ Gradient Utilities ═══ */
.gradient-text-orange {
  background: linear-gradient(135deg, var(--auron-orange), var(--auron-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border-orange {
  border-image: linear-gradient(135deg, var(--auron-orange), var(--auron-gold)) 1;
}

.glow-orange {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

/* ═══ Card Hover Effects ═══ */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(245, 158, 11, 0.3);
}

/* ═══ Mobile Menu Backdrop ═══ */
.mobile-menu-backdrop {
  background: rgba(17, 17, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ═══ Section Divider ═══ */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--auron-border),
    transparent
  );
}

/* ═══ Focus Styles (Accessibility) ═══ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--auron-orange);
  outline-offset: 2px;
}

/* ═══ Skip to Content (Accessibility) ═══ */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  background: var(--auron-orange);
  color: var(--auron-dark);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 0;
}

/* ═══ Prose / Markdown Rendering (Chat) ═══ */
.prose-chat p {
  margin-bottom: 0.5rem;
}

.prose-chat strong {
  font-weight: 600;
  color: #fff;
}

.prose-chat ul,
.prose-chat ol {
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.prose-chat li {
  margin-bottom: 0.25rem;
}

.prose-chat ul li {
  list-style-type: disc;
}

.prose-chat ol li {
  list-style-type: decimal;
}
