@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Theme Colors */
  --bg-dark: #070913;
  --bg-panel: rgba(13, 17, 33, 0.7);
  --bg-card: rgba(22, 28, 49, 0.4);
  --bg-card-hover: rgba(30, 39, 69, 0.6);
  --bg-input: rgba(10, 14, 28, 0.8);
  
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(255, 255, 255, 0.12);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Layer Branding Colors */
  --color-ref: #38bdf8;
  --color-ref-rgb: 56, 189, 248;
  --color-skill: #f97316;
  --color-skill-rgb: 249, 115, 22;
  --color-art: #10b981;
  --color-art-rgb: 16, 185, 129;
  --color-test: #c084fc;
  --color-test-rgb: 192, 132, 252;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body, #root {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Glassmorphism Class */
.glass {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all var(--transition-normal);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Glowing Neon Borders */
.glow-ref:hover {
  box-shadow: 0 0 20px rgba(var(--color-ref-rgb), 0.15);
  border-color: rgba(var(--color-ref-rgb), 0.4);
}
.glow-skill:hover {
  box-shadow: 0 0 20px rgba(var(--color-skill-rgb), 0.15);
  border-color: rgba(var(--color-skill-rgb), 0.4);
}
.glow-art:hover {
  box-shadow: 0 0 20px rgba(var(--color-art-rgb), 0.15);
  border-color: rgba(var(--color-art-rgb), 0.4);
}
.glow-test:hover {
  box-shadow: 0 0 20px rgba(var(--color-test-rgb), 0.15);
  border-color: rgba(var(--color-test-rgb), 0.4);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}
.badge-ref {
  background: rgba(var(--color-ref-rgb), 0.1);
  color: var(--color-ref);
  border-color: rgba(var(--color-ref-rgb), 0.2);
}
.badge-skill {
  background: rgba(var(--color-skill-rgb), 0.1);
  color: var(--color-skill);
  border-color: rgba(var(--color-skill-rgb), 0.2);
}
.badge-art {
  background: rgba(var(--color-art-rgb), 0.1);
  color: var(--color-art);
  border-color: rgba(var(--color-art-rgb), 0.2);
}
.badge-test {
  background: rgba(var(--color-test-rgb), 0.1);
  color: var(--color-test);
  border-color: rgba(var(--color-test-rgb), 0.2);
}

/* Base Styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

button, input, select, textarea {
  font-family: var(--font-body);
}

/* Markdown Rendering Custom Styles */
.markdown-body {
  line-height: 1.6;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.markdown-body h1 { font-size: 1.8rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.markdown-body h2 { font-size: 1.4rem; }
.markdown-body h3 { font-size: 1.1rem; }

.markdown-body p {
  margin-bottom: 1rem;
}

.markdown-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: #f43f5e;
}

.markdown-body pre {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow-x: auto;
}

.markdown-body pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: #cbd5e1;
  font-size: 0.9em;
}

.markdown-body ul, .markdown-body ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.markdown-body li {
  margin-bottom: 0.25rem;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.markdown-body th, .markdown-body td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.markdown-body th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
}

.markdown-body blockquote {
  padding-left: 1rem;
  border-left: 4px solid var(--color-ref);
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
}

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

.animate-fade-in {
  animation: fadeIn var(--transition-normal) forwards;
  flex: 1;
  min-height: 0;
  height: 100%;
}
