/* DevKernel.studio - Custom Styles */

/* Grid Background */
.grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.grid-bg-dense {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Glow Effects */
.glow-blue {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.15), 0 0 60px rgba(59, 130, 246, 0.05);
}

.glow-cyan {
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.15), 0 0 60px rgba(34, 211, 238, 0.05);
}

.glow-emerald {
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.15), 0 0 60px rgba(52, 211, 153, 0.05);
}

.glow-violet {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.12), 0 0 60px rgba(139, 92, 246, 0.04);
}

/* Glassmorphism */
.glass {
  background: rgba(24, 24, 27, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(63, 63, 70, 0.5);
}

.glass-light {
  background: rgba(39, 39, 42, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(63, 63, 70, 0.4);
}

/* Focus Ring (Shadcn style) */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 2px #09090b, 0 0 0 4px rgba(161, 161, 170, 0.5);
}

.focus-ring:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #09090b, 0 0 0 4px rgba(161, 161, 170, 0.5);
}

/* Ping Animation */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping-slow {
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Pulse Glow */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(52, 211, 153, 0.4), 0 0 80px rgba(52, 211, 153, 0.1);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Typing cursor */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor-blink {
  animation: blink 1s step-end infinite;
}

/* Fade in up */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #fafafa 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-brand {
  background: linear-gradient(135deg, #ffffff 0%, #22d3ee 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* VS Code Dark+ Code Theme */
.code-keyword { color: #569cd6; }
.code-string { color: #ce9178; }
.code-comment { color: #6a9955; }
.code-function { color: #dcdcaa; }
.code-variable { color: #9cdcfe; }
.code-type { color: #4ec9b0; }
.code-number { color: #b5cea8; }
.code-operator { color: #d4d4d4; }
.code-punctuation { color: #d4d4d4; }
.code-import { color: #c586c0; }
.code-property { color: #9cdcfe; }
.code-const { color: #4fc1ff; }

/* Terminal */
.terminal-header {
  background: rgba(39, 39, 42, 0.8);
  border-bottom: 1px solid rgba(63, 63, 70, 0.5);
}

.terminal-body {
  background: rgba(9, 9, 11, 0.95);
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

.terminal-prompt { color: #34d399; }
.terminal-command { color: #e4e4e7; }
.terminal-success { color: #34d399; }
.terminal-info { color: #60a5fa; }
.terminal-url { color: #22d3ee; text-decoration: underline; }
.terminal-dim { color: #71717a; }

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

::-webkit-scrollbar-track {
  background: #09090b;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: rgba(34, 211, 238, 0.3);
  color: #fafafa;
}

/* Card hover effect */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  border-color: rgba(63, 63, 70, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Button base */
.btn-primary {
  background: #fafafa;
  color: #09090b;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #fafafa;
  border: 1px solid #3f3f46;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(39, 39, 42, 0.5);
  border-color: #52525b;
}

/* Nav blur */
.nav-blur {
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(39, 39, 42, 0.6);
}

/* Input styles (Shadcn-like) */
.input-field {
  background: #09090b;
  border: 1px solid #27272a;
  color: #fafafa;
  transition: all 0.2s ease;
}

.input-field:hover {
  border-color: #3f3f46;
}

.input-field:focus {
  outline: none;
  border-color: #52525b;
  box-shadow: 0 0 0 2px #09090b, 0 0 0 4px rgba(161, 161, 170, 0.3);
}

.input-field::placeholder {
  color: #52525b;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(63, 63, 70, 0.5);
  background: rgba(39, 39, 42, 0.5);
  color: #a1a1aa;
}

/* Divider with fade */
.divider-fade {
  height: 1px;
  background: linear-gradient(90deg, transparent, #27272a, transparent);
}

/* Sidebar active item */
.sidebar-active {
  background: rgba(39, 39, 42, 0.6);
  border-left: 2px solid #fafafa;
  color: #fafafa;
}

/* Mobile menu */
.mobile-menu {
  display: none;
}

.mobile-menu.active {
  display: flex;
}

/* Gradient border effect */
.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(139, 92, 246, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-show { display: block !important; }
}

@media (min-width: 769px) {
  .mobile-only { display: none !important; }
}
