/*
 * Claude Hub - Shader Aesthetic
 * Dark theme with glassmorphism and organic shader background
 */

/* ============================================
   Typography
   ============================================ */
body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  font-feature-settings: 'liga' 1, 'calt' 1;
}

/* ============================================
   Glassmorphism Components
   ============================================ */
.glass-card {
  background: rgba(24, 24, 27, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
  background: rgba(24, 24, 27, 0.75);
  border-color: rgba(251, 146, 60, 0.2);
  transform: translateY(-2px);
  box-shadow:
    0 20px 40px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(251, 146, 60, 0.1);
}

.glass-navbar {
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================================
   Navigation
   ============================================ */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(161, 161, 170, 0.9);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.1), rgba(251, 191, 36, 0.05));
  opacity: 0;
  transition: opacity 0.2s;
}

.nav-link:hover {
  color: rgb(244, 244, 245);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link-active {
  color: rgb(251, 146, 60);
}

.nav-link-active::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(251, 191, 36, 0.08));
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: rgba(161, 161, 170, 0.9);
  transition: all 0.2s;
}

.mobile-nav-link:hover {
  background: rgba(251, 146, 60, 0.1);
  color: rgb(244, 244, 245);
}

/* ============================================
   Content Cards
   ============================================ */
.content-card {
  display: block;
  position: relative;
  padding: 1.5rem;
  background: rgba(24, 24, 27, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(251, 146, 60, 0.3),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.content-card:hover {
  background: rgba(24, 24, 27, 0.7);
  border-color: rgba(251, 146, 60, 0.15);
  transform: translateY(-4px);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 60px -20px rgba(251, 146, 60, 0.15);
}

.content-card:hover::before {
  opacity: 1;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgb(244, 244, 245);
  letter-spacing: -0.02em;
}

.section-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(161, 161, 170, 0.8);
  transition: all 0.2s;
}

.section-link:hover {
  color: rgb(251, 146, 60);
  gap: 0.5rem;
}

/* ============================================
   Hero Gradient Text
   ============================================ */
.gradient-text {
  background: linear-gradient(135deg,
    rgb(251, 146, 60) 0%,
    rgb(251, 191, 36) 50%,
    rgb(253, 224, 71) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-glow {
  filter: drop-shadow(0 0 30px rgba(251, 146, 60, 0.3));
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgb(249, 115, 22), rgb(234, 88, 12));
  color: white;
  font-weight: 600;
  border-radius: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 15px -3px rgba(249, 115, 22, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 25px -5px rgba(249, 115, 22, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(39, 39, 42, 0.5);
  backdrop-filter: blur(8px);
  color: rgb(212, 212, 216);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: rgba(63, 63, 70, 0.5);
  border-color: rgba(251, 146, 60, 0.3);
  color: rgb(244, 244, 245);
  transform: translateY(-2px);
}

/* ============================================
   Input Fields
   ============================================ */
.input-glass {
  background: rgba(24, 24, 27, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  color: rgb(244, 244, 245);
  transition: all 0.2s;
}

.input-glass::placeholder {
  color: rgba(161, 161, 170, 0.6);
}

.input-glass:focus {
  outline: none;
  border-color: rgba(251, 146, 60, 0.5);
  box-shadow:
    0 0 0 3px rgba(251, 146, 60, 0.1),
    0 0 20px -5px rgba(251, 146, 60, 0.2);
}

/* ============================================
   Tag Pills
   ============================================ */
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: rgba(39, 39, 42, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(161, 161, 170, 0.9);
  transition: all 0.2s;
}

.tag-pill:hover {
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.3);
  color: rgb(251, 146, 60);
}

/* ============================================
   Prose/Markdown Content
   ============================================ */
.prose-content {
  color: rgba(161, 161, 170, 0.95);
  line-height: 1.8;
}

.prose-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: rgb(244, 244, 245);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.prose-content h2 {
  font-size: 1.625rem;
  font-weight: 600;
  color: rgb(244, 244, 245);
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: -0.02em;
}

.prose-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgb(228, 228, 231);
  margin-top: 2rem;
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
}

.prose-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgb(212, 212, 216);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose-content p {
  margin-bottom: 1.25rem;
}

.prose-content a {
  color: rgb(251, 146, 60);
  text-decoration: none;
  border-bottom: 1px solid rgba(251, 146, 60, 0.3);
  transition: all 0.2s;
}

.prose-content a:hover {
  color: rgb(253, 186, 116);
  border-bottom-color: rgb(253, 186, 116);
}

.prose-content ul, .prose-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose-content ul {
  list-style-type: disc;
}

.prose-content ol {
  list-style-type: decimal;
}

.prose-content li {
  margin-bottom: 0.5rem;
}

.prose-content li::marker {
  color: rgba(251, 146, 60, 0.6);
}

.prose-content code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(39, 39, 42, 0.6);
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875em;
  color: rgb(251, 146, 60);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.prose-content pre {
  background: rgba(17, 17, 19, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.prose-content pre code {
  background: transparent;
  padding: 0;
  border: none;
  color: rgb(212, 212, 216);
  font-size: 0.875rem;
  line-height: 1.7;
}

.prose-content blockquote {
  border-left: 3px solid rgb(251, 146, 60);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: rgba(161, 161, 170, 0.8);
  font-style: italic;
  background: rgba(251, 146, 60, 0.03);
  padding: 1rem 1.25rem;
  border-radius: 0 0.75rem 0.75rem 0;
}

.prose-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.prose-content th, .prose-content td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.875rem 1rem;
  text-align: left;
}

.prose-content th {
  background: rgba(24, 24, 27, 0.6);
  font-weight: 600;
  color: rgb(228, 228, 231);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prose-content tr:hover td {
  background: rgba(251, 146, 60, 0.02);
}

.prose-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  margin: 3rem 0;
}

/* ============================================
   Line Clamp Utilities
   ============================================ */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   Copy Button
   ============================================ */
.copy-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.5rem;
  background: rgba(39, 39, 42, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: rgba(161, 161, 170, 0.8);
  opacity: 0;
  transition: all 0.2s;
}

.code-block:hover .copy-button,
.prose-content pre:hover .copy-button {
  opacity: 1;
}

.copy-button:hover {
  background: rgba(63, 63, 70, 0.8);
  color: rgb(244, 244, 245);
  border-color: rgba(251, 146, 60, 0.3);
}

/* ============================================
   Featured Badge
   ============================================ */
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(251, 191, 36, 0.1));
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgb(251, 146, 60);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   Icon Container
   ============================================ */
.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: rgba(39, 39, 42, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  font-size: 1.5rem;
  transition: all 0.3s;
}

.content-card:hover .icon-container {
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.2);
  transform: scale(1.05);
}

/* ============================================
   Stats Counter
   ============================================ */
.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgb(244, 244, 245), rgba(161, 161, 170, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px -5px rgba(251, 146, 60, 0.3); }
  50% { box-shadow: 0 0 30px -5px rgba(251, 146, 60, 0.5); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

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

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(24, 24, 27, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(63, 63, 70, 0.8);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(82, 82, 91, 0.9);
  background-clip: content-box;
}

/* ============================================
   Selection
   ============================================ */
::selection {
  background: rgba(251, 146, 60, 0.3);
  color: rgb(244, 244, 245);
}

/* ============================================
   Install Card / Terminal
   ============================================ */
.install-card {
  padding: 1.5rem;
}

.terminal-card {
  background: rgba(9, 9, 11, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(24, 24, 27, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 0.375rem;
}

.terminal-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
}

.terminal-dot-red {
  background: #ff5f56;
}

.terminal-dot-yellow {
  background: #ffbd2e;
}

.terminal-dot-green {
  background: #27ca40;
}

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(161, 161, 170, 0.6);
  font-family: 'Space Grotesk', sans-serif;
}

.terminal-body {
  padding: 1rem 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.terminal-prompt {
  color: #27ca40;
  font-weight: 600;
  user-select: none;
}

.terminal-command {
  color: rgb(228, 228, 231);
  word-break: break-all;
}
