/* kennysworld.xyz — Aligned with video aesthetic: dark moody backgrounds with muted warm gold */

:root {
  /* Background: Near-black with subtle warm undertones */
  --bg: #0a0806;
  --bg-pure: #000000;
  
  /* Primary text: Bright luminous warm gold (matches video RGB ~202,193,93) */
  --fg: #dcd050;
  --fg-dim: #b8a840;
  
  /* Dim text: Darker warm tones */
  --dim: #3c2800;
  --dim-warm: #281400;
  
  /* Accent: Bright luminous warm gold matching video brightness */
  --accent: #e0d060;
  --accent-bright: #f0e080;
  --accent-glow: #d4c850;
  
  /* Grid/lines: Dark brown instead of gray */
  --grid: #1a1410;
  --border: #2a2018;
  
  /* Font stack unchanged */
  --font-mono: 'SF Mono', 'Monaco', 'Consolas', monospace;
  
  /* Glow effects: Brighter, more luminous matching video */
  --glow: 0 0 40px rgba(224, 208, 96, 0.5);
  --glow-strong: 0 0 70px rgba(240, 224, 128, 0.7);
  --glow-subtle: 0 0 20px rgba(224, 208, 96, 0.25);
  
  /* Scanlines darker */
  --scanline: rgba(20, 16, 10, 0.5);
}

/* Apply pure black background */
html {
  background: var(--bg-pure);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Darker vignette with warm undertones */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(40, 20, 0, 0.6) 100%);
  pointer-events: none;
  z-index: 999;
}

/* Status bar with warmer glow bars */
.status-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  margin: 2rem 0;
  font-size: 0.85rem;
  color: var(--fg-dim);
  position: relative;
}

.status-bar::before,
.status-bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: radial-gradient(
    ellipse 70% 100% at center,
    rgba(240, 224, 128, 1) 0%,
    rgba(224, 208, 96, 0.5) 40%,
    transparent 80%
  );
  animation: breathe 4s ease-in-out infinite;
  filter: blur(1px);
}

.status-bar::before { top: 0; }
.status-bar::after { bottom: 0; }

/* Chromatic aberration with brighter warm tones */
.status-bar .chromatic-red {
  top: 0;
  background: radial-gradient(
    ellipse 70% 100% at center,
    rgba(200, 120, 60, 0.5) 0%,
    transparent 60%
  );
  animation: breathe 4s ease-in-out infinite, chromatic-shift 7s ease-in-out infinite;
  mix-blend-mode: screen;
  filter: blur(3px);
}

.status-bar .chromatic-blue {
  top: 0;
  background: radial-gradient(
    ellipse 70% 100% at center,
    rgba(100, 160, 200, 0.4) 0%,
    transparent 60%
  );
  animation: breathe 4s ease-in-out infinite, chromatic-shift 7s ease-in-out infinite reverse;
  mix-blend-mode: screen;
  filter: blur(3px);
}

@keyframes chromatic-shift {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

/* Status sections */
.status-section {
  display: flex;
  align-items: center;
  gap: 0.5ch;
  padding: 0 1ch;
  position: relative;
  flex: 1;
  justify-content: center;
}

.status-section:not(:last-child)::after {
  content: '|';
  position: absolute;
  right: -1ch;
  color: var(--dim);
  opacity: 0.5;
}

.section-icon {
  color: var(--accent-bright);
  text-shadow: 0 0 20px rgba(240, 224, 128, 0.6);
  margin-right: 0.5ch;
}

/* System plugin */
.status-section.system .status-indicator.online {
  color: #a0c878;
  text-shadow: 0 0 10px rgba(160, 200, 120, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

.status-section.system .status-text {
  font-weight: bold;
  letter-spacing: 0.1em;
}

.status-section.system .clock {
  font-family: var(--font-mono);
  color: var(--fg);
}

/* Navidrome plugin */
.status-section.navidrome {
  color: var(--accent-bright);
}

.status-section.navidrome .music-icon {
  color: var(--accent-bright);
  text-shadow: 0 0 20px rgba(240, 224, 128, 0.6);
  animation: pulse 3s ease-in-out infinite;
}

.status-section.navidrome .playback-indicator {
  animation: pulse 1s ease-in-out infinite;
  color: var(--accent-bright);
}

.status-section.navidrome .music-icon {
  color: var(--accent);
  text-shadow: var(--glow);
  animation: pulse 3s ease-in-out infinite;
}

.status-section.navidrome .artist {
  font-weight: bold;
  color: var(--fg);
}

.status-section.navidrome .track {
  opacity: 0.8;
  color: var(--fg-dim);
}

.status-section.navidrome .status-dim {
  opacity: 0.5;
  color: var(--fg-dim);
  font-style: italic;
}

.status-section.navidrome .playback-indicator {
  animation: pulse 1s ease-in-out infinite;
  color: var(--accent);
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(10deg); }
}

.status-section.navidrome:hover .section-icon {
  animation: wiggle 0.5s ease-in-out infinite;
  display: inline-block;
}

/* Hammer animation */
@keyframes hammer {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(15deg); }
}

.status-section.project:hover .section-icon {
  animation: hammer 0.4s ease-in-out infinite;
  display: inline-block;
}

.status-section.navidrome {
  min-width: 200px;
  padding: 0.25rem 0.5rem;
  margin: -0.25rem;
}

/* Scrolling marquee */
.status-section.navidrome .track-info {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.status-section.navidrome .track-info a {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}

.status-section.navidrome:hover .track-info a,
.status-section.navidrome:focus-within .track-info a {
  animation: marquee-scroll 8s linear infinite;
  text-overflow: unset;
  overflow: visible;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* GitHub plugin */
.status-section.github {
  color: var(--accent);
}

.status-section.github .gh-icon {
  animation: pulse 4s ease-in-out infinite;
}

.status-section.github .commits {
  font-weight: bold;
}

.status-section.github .repo {
  opacity: 0.7;
}

/* Location plugin */
.status-section.location .loc-icon {
  color: var(--accent);
  animation: pulse 5s ease-in-out infinite;
}

.status-section.location .weather {
  opacity: 0.8;
}

/* Project plugin with bright warm border and glow */
.status-section.project {
  border: 1px solid var(--accent);
  padding: 0.25rem 0.75rem;
  background: rgba(224, 208, 96, 0.08);
  box-shadow: 0 0 20px rgba(224, 208, 96, 0.15);
}

.status-section.project .project-link:hover {
  text-shadow: 0 0 25px rgba(240, 224, 128, 0.7);
  color: var(--accent-bright);
}

.status-section.project .proj-icon {
  animation: rotate 4s linear infinite;
}

.status-section.project .status {
  font-style: italic;
  opacity: 0.7;
}

.status-section.project .project-link {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.status-section.project .project-link:hover {
  text-shadow: 0 0 20px rgba(212, 200, 92, 0.5);
  color: var(--accent-bright);
}

.status-section.project .project-link:hover .project-name {
  border-bottom: 1px solid var(--accent);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes breathe {
  0%, 100% {
    opacity: 0.6;
    filter: blur(1px) brightness(0.9);
  }
  50% {
    opacity: 1;
    filter: blur(2px) brightness(1.5);
  }
}

/* Cross accent decoration with bright glow */
.cross-accent::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 2px;
  background: var(--accent-bright);
  filter: blur(4px);
  opacity: 0.8;
}

.cross-accent::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 120%;
  background: var(--accent-bright);
  filter: blur(4px);
  opacity: 0.8;
}

.cross-accent::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 2px;
  background: var(--accent);
  filter: blur(4px);
  opacity: 0.6;
}

.cross-accent::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 120%;
  background: var(--accent);
  filter: blur(4px);
  opacity: 0.6;
}

.terminal {
  max-width: 80ch;
  margin: 0 auto;
  padding: 4rem 2rem;
  position: relative;
  background: var(--bg);
}

/* Navigation */
nav {
  margin-bottom: 3rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--fg-dim);
  filter: blur(2px);
  opacity: 0.5;
}

.nav-prompt {
  display: flex;
  align-items: center;
  gap: 0.5ch;
}

.nav-brand {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--accent-bright);
  text-shadow: 0 0 30px rgba(240, 224, 128, 0.6);
  letter-spacing: 0.15em;
  font-family: var(--font-mono);
}

.nav-logo {
  font-size: 0.28rem;
  line-height: 0.38rem;
  color: var(--accent-bright);
  text-shadow: 0 0 30px rgba(240, 224, 128, 0.6);
  margin: 0;
  padding: 0;
  white-space: pre;
  overflow: hidden;
  font-family: 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', Courier, monospace;
}

.prompt-user { 
  color: var(--accent-bright);
  text-shadow: 0 0 20px rgba(240, 224, 128, 0.5);
}
.prompt-at { color: var(--fg-dim); }
.prompt-host { color: var(--fg); }
.prompt-sep { color: var(--fg-dim); }
.prompt-path { color: var(--fg-dim); }
.prompt-dollar { color: var(--fg-dim); margin-right: 1ch; }

.nav-links {
  display: flex;
  gap: 3ch;
}

/* Links with bright warm glow */
a {
  color: var(--fg);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  text-shadow: 0 0 15px rgba(224, 208, 96, 0.2);
}

a:hover, a:focus {
  color: var(--accent-bright);
  text-shadow: 0 0 35px rgba(240, 224, 128, 0.7);
}

.cmd:hover {
  color: var(--accent-bright);
  text-shadow: 0 0 25px rgba(240, 224, 128, 0.5);
}

a:hover, a:focus {
  color: var(--accent-bright);
  text-shadow: var(--glow-strong);
}

.cmd {
  color: var(--fg);
  cursor: pointer;
}

.cmd:hover {
  color: var(--accent);
  text-shadow: var(--glow);
}

/* ASCII header with bright luminous glow */
.ascii-header {
  font-size: 0.6rem;
  line-height: 1.2;
  color: var(--fg-dim);
  margin-bottom: 1rem;
  white-space: pre;
  user-select: none;
  text-shadow: 0 0 60px rgba(224, 208, 96, 0.5);
  filter: blur(0.3px);
}

/* Content sections */
section, article {
  margin-bottom: 2rem;
}

/* File listing with warm separators */
.file-list {
  list-style: none;
  padding-left: 0;
}

.file-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.file-list li::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--fg-dim);
  filter: blur(1px);
  opacity: 0.3;
}

/* Dates */
.date {
  color: var(--fg-dim);
  margin-right: 2ch;
  font-size: 0.9rem;
}

/* Tags with warm brackets */
.tag {
  color: var(--fg-dim);
  font-size: 0.85rem;
}

.tag::before {
  content: '[';
  color: var(--dim);
}

.tag::after {
  content: ']';
  color: var(--dim);
}

.tag + .tag {
  margin-left: 1ch;
}

/* Dim text */
.dim {
  color: var(--fg-dim);
}

/* Prose content with bright warm headers */
.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--accent);
  margin: 2.5rem 0 1rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 0 0 40px rgba(224, 208, 96, 0.5);
  position: relative;
}

.prose h1::after,
.prose h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--fg-dim);
  filter: blur(1px);
  opacity: 0.5;
}

.prose h1 { font-size: 1rem; }
.prose h2 { font-size: 0.95rem; }
.prose h3, .prose h4 { font-size: 0.9rem; }

.prose p {
  margin: 1rem 0;
  line-height: 1.7;
}

.prose ul, .prose ol {
  padding-left: 4ch;
  margin: 1rem 0;
  list-style: none;
}

.prose li {
  margin: 0.5rem 0;
  position: relative;
}

.prose li::before {
  content: '◦';
  position: absolute;
  left: -2ch;
  color: var(--fg-dim);
  filter: blur(0.5px);
}

.prose blockquote {
  border-left: 2px solid var(--fg-dim);
  padding-left: 2ch;
  color: var(--fg-dim);
  margin: 1.5rem 0;
  font-style: italic;
  filter: blur(0.3px);
}

.prose code {
  background: rgba(224, 208, 96, 0.08);
  padding: 0.15rem 0.5ch;
  border: 1px solid var(--border);
  color: var(--accent-bright);
}

.prose hr::after {
  content: '✦';
  position: absolute;
  left: 50%;
  top: -0.7rem;
  transform: translateX(-50%);
  background: var(--bg);
  padding: 0 2ch;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(224, 208, 96, 0.6);
}

.prose pre {
  background: rgba(10, 8, 6, 0.8);
  border: 1px solid var(--border);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.5;
  position: relative;
}

.prose pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid var(--fg-dim);
  filter: blur(3px);
  opacity: 0.3;
  pointer-events: none;
}

.prose pre code {
  background: none;
  padding: 0;
  border: none;
  color: var(--fg);
}

.prose a {
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.prose a:hover {
  color: var(--accent-bright);
  border-bottom-color: var(--accent-bright);
  text-shadow: 0 0 25px rgba(240, 224, 128, 0.6);
}

.tree-link:hover {
  color: var(--accent-bright);
  text-shadow: 0 0 25px rgba(240, 224, 128, 0.5);
}

.prose img {
  max-width: 100%;
  height: auto;
  filter: sepia(40%) contrast(110%) saturate(80%);
  border: 1px solid var(--border);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
  position: relative;
  filter: blur(0.5px);
}

.prose hr::after {
  content: '✦';
  position: absolute;
  left: 50%;
  top: -0.7rem;
  transform: translateX(-50%);
  background: var(--bg);
  padding: 0 2ch;
  color: var(--fg-dim);
  text-shadow: var(--glow);
}

h1 {
  font-size: 1rem;
  font-weight: normal;
  color: var(--fg);
  margin-bottom: 1rem;
}

/* Post navigation */
.post-nav {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Interactive terminal */
.term-startup {
  margin-bottom: 2rem;
}

.term-line {
  padding: 0;
  margin: 0;
  word-wrap: break-word;
  line-height: 1.6;
}

.term-line.pre {
  white-space: pre-wrap;
  margin: 0.5rem 0;
}

.term-line.term-cmd {
  margin-top: 0.5rem;
}

.prompt-echo {
  color: var(--fg-dim);
  user-select: none;
  white-space: pre;
}

.term-system {
  color: var(--fg-dim);
  font-size: 1rem;
}

/* Input line with warm glow */
.term-input-line {
  display: flex;
  align-items: baseline;
  padding: 0.75rem 1rem;
  margin-top: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  position: relative;
}

.term-input-line::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 1px solid var(--fg-dim);
  filter: blur(3px);
  opacity: 0.4;
  pointer-events: none;
}

.term-input {
  background: transparent;
  border: none;
  color: var(--fg);
  font-family: inherit;
  font-size: inherit;
  outline: none;
  flex: 1;
  caret-color: var(--accent-bright);
  padding: 0 0.5rem;
  margin: 0;
  line-height: inherit;
  -webkit-appearance: none;
  text-shadow: 0 0 15px rgba(224, 208, 96, 0.25);
}

.term-input:focus {
  text-shadow: 0 0 25px rgba(240, 224, 128, 0.5);
}

.term-input::placeholder {
  color: var(--fg-dim);
  filter: blur(0.5px);
}

/* Help command */
.cmd-help {
  color: var(--accent-bright);
  text-shadow: 0 0 20px rgba(240, 224, 128, 0.6);
}

.accent {
  color: var(--accent-bright);
  text-shadow: 0 0 20px rgba(240, 224, 128, 0.5);
}

/* Tree links */
.tree-link {
  cursor: pointer;
  position: relative;
}

.tree-link:hover {
  color: var(--accent);
  text-shadow: var(--glow);
}

.accent {
  color: var(--accent);
  text-shadow: var(--glow);
}

/* Visually hidden */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Footer with warm top border */
footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: right;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--fg-dim);
  filter: blur(2px);
  opacity: 0.5;
}

.footer-prompt {
  color: var(--fg-dim);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.load-time {
  color: var(--accent-bright);
  font-size: 0.85rem;
  text-shadow: 0 0 15px rgba(224, 208, 96, 0.4);
}

/* Selection - bright warm gold */
::selection {
  background: var(--accent-bright);
  color: var(--bg);
  text-shadow: none;
}

/* Scrollbar - warm tones */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border: 1px solid var(--fg-dim);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--fg-dim);
}

/* Film grain overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 1000;
}

/* Responsive */
@media (max-width: 600px) {
  .terminal {
    padding: 3rem 1rem;
  }

  .ascii-header {
    font-size: 0.4rem;
  }

  .nav-logo {
    font-size: 0.22rem;
    line-height: 0.32rem;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  nav {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .nav-links {
    gap: 2ch;
  }

  .status-bar {
    flex-direction: column;
    gap: 0.5rem;
  }
}
