/* =========================================
   PawClock - Stylesheet
   ========================================= */

:root {
  /* Color Palette - Light Mode */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-accent: #e0e7ff;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.15);
  
  --accent-amber: #f59e0b;
  --accent-amber-light: #fef3c7;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  
  --border-color: #e2e8f0;
  --border-focus: #6366f1;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 16px 24px -4px rgba(79, 70, 229, 0.12), 0 6px 12px -3px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-dark {
  --bg-primary: #0f172a;
  --bg-surface: #1e293b;
  --bg-subtle: #334155;
  --bg-accent: #312e81;
  
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #64748b;
  
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-light: #312e81;
  --primary-glow: rgba(99, 102, 241, 0.25);
  
  --border-color: #334155;
  --border-focus: #818cf8;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 16px 24px -4px rgba(99, 102, 241, 0.25);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.app-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem 1rem;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  font-size: 2.25rem;
  background: var(--primary-light);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.btn-icon {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-main);
}

.btn-icon:hover {
  background: var(--bg-subtle);
  transform: translateY(-2px);
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg-subtle);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.nav-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--text-main);
}

.nav-tab.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards General */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Control Panel */
.control-panel {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.panel-header h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.panel-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.calc-mode-selector {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.calc-mode-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.segmented-control {
  display: flex;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
}

.segment-btn {
  border: none;
  background: transparent;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: calc(var(--radius-md) - 3px);
  cursor: pointer;
  transition: var(--transition);
}

.segment-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Age Inputs */
.age-input-group {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 640px) {
  .age-input-group {
    grid-template-columns: 1fr;
  }
}

.numeric-input-wrapper {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  background: var(--bg-subtle);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: var(--transition);
}

.numeric-input-wrapper:focus-within {
  border-color: var(--border-focus);
  background: var(--bg-surface);
}

#human-age-input {
  width: 90px;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  background: transparent;
  border: none;
  outline: none;
}

/* Remove number spinners */
#human-age-input::-webkit-inner-spin-button,
#human-age-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#human-age-input {
  -moz-appearance: textfield;
}

.input-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#human-age-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  outline: none;
  cursor: pointer;
}

#human-age-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
  cursor: pointer;
  transition: transform 0.15s ease;
}

#human-age-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

#human-age-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  box-shadow: 0 0 0 4px var(--primary-glow);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Sub-options for dog size */
.sub-options {
  background: var(--primary-light);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
}

.sub-options.hidden {
  display: none;
}

.sub-option-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.dog-size-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill-btn {
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.pill-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Filter Toolbar */
.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.category-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-chip {
  background: var(--bg-subtle);
  border: none;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover {
  background: var(--border-color);
}

.filter-chip.active {
  background: var(--text-main);
  color: var(--bg-surface);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-subtle);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--border-focus);
  background: var(--bg-surface);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-main);
  width: 140px;
}

/* Spotlight Banner */
.spotlight-banner {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.spotlight-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.spotlight-avatar {
  font-size: 3rem;
  background: rgba(255, 255, 255, 0.2);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

.spotlight-text {
  flex: 1;
}

.spotlight-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.35rem;
}

.spotlight-text h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.spotlight-text p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 0.6rem 1.1rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .spotlight-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Animals Grid */
.animals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.animal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.animal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.card-animal-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.animal-emoji {
  font-size: 2rem;
  line-height: 1;
}

.animal-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.category-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-muted);
}

/* Calculated age display */
.card-age-display {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.computed-age {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.age-suffix {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Stage badge */
.stage-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
}

.card-gen-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--primary);
}

.card-gen-pill strong {
  color: var(--primary);
}

.stage-young {
  background: #dcfce7;
  color: #166534;
}

.stage-prime {
  background: #e0e7ff;
  color: #3730a3;
}

.stage-senior {
  background: #fef3c7;
  color: #92400e;
}

.stage-geriatric {
  background: #ffe4e6;
  color: #9f1239;
}

.stage-legendary {
  background: #f3e8ff;
  color: #6b21a8;
}

body.theme-dark .stage-young {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}
body.theme-dark .stage-prime {
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}
body.theme-dark .stage-senior {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}
body.theme-dark .stage-geriatric {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
}
body.theme-dark .stage-legendary {
  background: rgba(168, 85, 247, 0.25);
  color: #d8b4fe;
}

/* Lifespan meter */
.lifespan-meter-wrapper {
  margin-bottom: 0.85rem;
}

.meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.meter-track {
  height: 6px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.meter-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 65%, #f43f5e 100%);
  transition: width 0.3s ease;
}

/* Fun fact */
.card-fact {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}

/* TAB 2: Pair Converter Card */
.pair-converter-card {
  max-width: 780px;
  margin: 0 auto;
}

.pair-converter-card h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.converter-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-subtle);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

@media (max-width: 680px) {
  .converter-box {
    flex-direction: column;
    align-items: stretch;
  }
}

.converter-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.side-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.custom-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.custom-select:focus {
  border-color: var(--border-focus);
}

.converter-input-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.converter-input-box label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.converter-input-box input {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  border: none;
  background: transparent;
  outline: none;
  color: var(--primary);
  width: 80px;
}

.unit-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-swap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.btn-swap:hover {
  background: var(--primary);
  color: #ffffff;
  transform: rotate(180deg);
}

.converter-result-display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-surface);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  min-height: 60px;
}

.result-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.result-unit {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pair-result-card {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border-left: 4px solid var(--primary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* TAB 3: Science & Myth */
.science-card {
  max-width: 900px;
  margin: 0 auto;
}

.science-card h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.lead-p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.myth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 480px) {
  .myth-grid {
    grid-template-columns: 1fr;
  }
}

.card-nested {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.myth-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-nested h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.card-nested p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.formula-box {
  background: var(--bg-surface);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin: 0.5rem 0;
}

.formula-box code {
  font-family: monospace;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.formula-note {
  font-size: 0.8rem !important;
  color: var(--text-dim) !important;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-main);
  color: var(--bg-surface);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.app-footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

/* Header Git Link */
.btn-header-git {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-header-git:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Footer NIP-34 Repository Card */
.repo-card {
  text-align: left;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.repo-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.repo-card-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.repo-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.btn-repo-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-repo-link:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.repo-instructions {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.repo-box-group {
  margin-top: 0.6rem;
}

.repo-box-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.repo-box-label code {
  font-family: monospace;
  color: var(--primary);
}

.repo-copy-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.repo-input {
  flex: 1;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.repo-input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.btn-copy-action {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-copy-action:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 640px) {
  .repo-card-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .repo-copy-row {
    flex-direction: column;
    align-items: stretch;
  }
}
