/* Claude Deck - Custom Styles */

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

/* Custom selection color */
::selection {
  background-color: rgba(74, 222, 128, 0.3);
  color: #f0f0f0;
}

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

::-webkit-scrollbar-track {
  background: #161616;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #505050;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
}

/* Skip to content link (accessibility) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 8px 16px;
  background: #4ade80;
  color: #0c0c0c;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Feature card hover glow effect */
.feature-card {
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  background: linear-gradient(135deg, #4ade80, #22d3ee);
  opacity: 0.5;
}

/* Screenshot frame hover glow effect */
.screenshot-frame {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.screenshot-frame:hover {
  box-shadow: 0 0 40px rgba(74, 222, 128, 0.1);
  transform: translateY(-2px);
}

/* Modal dialog styles */
dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

dialog[open] {
  animation: modal-fade-in 0.2s ease-out;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Terminal cursor blink animation (for hero if needed) */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

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

/* Subtle gradient animation for accent elements */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gradient-animated {
  background: linear-gradient(90deg, #4ade80, #22d3ee, #4ade80);
  background-size: 200% 100%;
  animation: gradient-shift 3s ease infinite;
}

/* Smooth fade in for page load */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Code block styling */
pre, code {
  font-family: 'JetBrains Mono', monospace;
}

/* Subtle dot grid background (optional) */
.dot-grid {
  background-image: radial-gradient(circle, #2a2a2a 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Card border glow on hover */
.glow-on-hover {
  transition: box-shadow 0.3s ease;
}

.glow-on-hover:hover {
  box-shadow: 0 0 30px rgba(74, 222, 128, 0.1);
}

/* Button press effect */
button, a[role="button"], .btn {
  transition: transform 0.1s ease;
}

button:active, a[role="button"]:active, .btn:active {
  transform: scale(0.98);
}

/* Smooth link underlines */
a {
  text-decoration: none;
}

.link-underline {
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.link-underline:hover::after {
  width: 100%;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .feature-card {
    border-width: 2px;
  }

  .text-text-muted {
    color: #a0a0a0;
  }
}

/* Print styles */
@media print {
  nav, footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .feature-card {
    break-inside: avoid;
    border: 1px solid #ccc;
  }
}
