/* Base Variables & Reset */
:root {
  --font-family-sans: 'Inter', sans-serif;
  --font-family-display: 'Outfit', sans-serif;
  
  --bg-color: #050814; /* Modern midnight tech-black */
  --panel-bg: rgba(13, 18, 36, 0.7); /* Translucent glass pane */
  --panel-border: rgba(255, 255, 255, 0.05);
  --panel-border-glow: rgba(56, 189, 248, 0.3); /* Cyan/Sky Blue glow */
  
  --color-primary: #38bdf8;     /* Modern Electric Sky Blue */
  --color-primary-hover: #0ea5e9;
  --color-accent: #2563eb;      /* Tech Cobalt Blue */
  --color-accent-hover: #3b82f6;
  --color-success: #10b981;     /* Emerald green */
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dark: #475569;
  
  --transition-speed: 0.25s;
  --border-radius-lg: 20px;
  --border-radius-md: 14px;
  --border-radius-sm: 10px;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  letter-spacing: -0.01em;
}

/* Background Ambient Glow Orbs with Floating Animation */
.background-glows {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.2;
  animation: floatGlow 15s ease-in-out infinite alternate;
}

.glow-1 {
  top: -10%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
}

.glow-2 {
  bottom: -5%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  animation-delay: -5s;
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(40px, 60px) scale(1.1);
  }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-family-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

p {
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  padding: 20px 0;
  border-bottom: 1px solid var(--panel-border);
  background-color: rgba(3, 7, 18, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-family-display);
  font-size: 1.4rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.logo-icon {
  color: var(--color-accent);
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.4));
}

.logo-accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 56px 0 32px;
}

.hero-section h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

.hero-section p {
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Premium Glassmorphism Panel */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

/* Search Container Pill Layout */
.search-container {
  padding: 10px;
  margin-bottom: 32px;
}

.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.input-wrapper {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 20px;
  color: var(--text-muted);
  pointer-events: none;
  width: 20px;
  height: 20px;
  transition: color var(--transition-speed);
}

.search-form input {
  width: 100%;
  padding: 16px 20px 16px 54px;
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  color: #ffffff;
  font-family: var(--font-family-sans);
  font-size: 1.05rem;
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.search-form input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 
    0 0 20px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.search-form input:focus + .search-icon {
  color: var(--color-primary-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 28px;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #4f46e5);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 6px 20px rgba(99, 102, 241, 0.4),
    0 0 12px rgba(6, 182, 212, 0.2);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Asymptotic Progress Bar */
.progress-container {
  padding: 24px 28px;
  margin-bottom: 32px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-status {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.progress-percentage {
  font-family: var(--font-family-display);
  font-weight: 800;
  color: var(--color-accent);
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 99px;
  transition: width 0.2s cubic-bezier(0.1, 0.8, 0.3, 1);
}

/* Empty State / Search Ready Placeholder */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px;
  color: var(--text-muted);
}

.empty-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  stroke-width: 1.25;
  color: rgba(99, 102, 241, 0.4);
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.1));
}

.empty-state h3 {
  color: var(--text-primary);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 1rem;
  max-width: 340px;
  line-height: 1.5;
}

/* Results Header and List styling */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  padding: 0 4px;
}

.results-header h2 {
  font-size: 1.4rem;
  color: #ffffff;
}

.results-header span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.result-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid transparent;
  
  /* Staggered Entry Animation */
  opacity: 0;
  transform: translateY(16px);
  animation: slideUpCard 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.result-card:nth-child(1) { animation-delay: 0.02s; }
.result-card:nth-child(2) { animation-delay: 0.05s; }
.result-card:nth-child(3) { animation-delay: 0.08s; }
.result-card:nth-child(4) { animation-delay: 0.11s; }
.result-card:nth-child(5) { animation-delay: 0.14s; }
.result-card:nth-child(6) { animation-delay: 0.17s; }
.result-card:nth-child(7) { animation-delay: 0.20s; }
.result-card:nth-child(8) { animation-delay: 0.23s; }

@keyframes slideUpCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card:hover {
  transform: translateY(-2px);
  border-left-color: var(--color-primary);
  border-color: rgba(56, 189, 248, 0.2);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  font-family: var(--font-family-display);
  font-size: 1.25rem;
  font-weight: 650;
  color: #ffffff;
}

.card-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.card-subtitle span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-subtitle span code {
  font-family: monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
  color: #ffffff;
}

.card-subtitle i {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.card-arrow {
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  transition: all var(--transition-speed);
}

.result-card:hover .card-arrow {
  transform: translateX(4px);
  color: var(--color-accent);
}

/* Beautiful Detailed Profile Card */
.detail-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.detail-card::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 24px;
  z-index: 1;
}

.detail-title h2 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.detail-title p {
  font-size: 0.95rem;
  color: var(--color-success);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.08);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  z-index: 1;
}

@media (max-width: 650px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .detail-card {
    padding: 24px;
  }
}

.detail-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: all var(--transition-speed);
}

.detail-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Clipboard Interactive Styling */
.detail-item.copyable {
  cursor: pointer;
}

.detail-item.copyable:hover {
  background: rgba(56, 189, 248, 0.05);
  border-color: rgba(56, 189, 248, 0.2);
}

.copy-indicator {
  width: 14px;
  height: 14px;
  margin-left: 8px;
  opacity: 0.4;
  vertical-align: middle;
  transition: all var(--transition-speed);
}

.detail-item.copyable:hover .copy-indicator {
  opacity: 1;
  color: var(--color-primary);
  transform: scale(1.1);
}

.detail-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius-sm);
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.15);
  color: var(--color-primary);
  flex-shrink: 0;
}

.detail-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0; /* Ensures code blocks wrap correctly */
}

.detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.detail-value {
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 550;
  word-break: break-word;
}

.detail-value code {
  font-family: monospace;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #38bdf8; /* Vibrant light-blue for digits */
}

.socials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-accent-hover);
  text-decoration: none;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.08);
  padding: 6px 14px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(6, 182, 212, 0.15);
  transition: all var(--transition-speed);
}

.social-link:hover {
  background: rgba(6, 182, 212, 0.15);
  transform: translateY(-1px);
}

/* Helpers */
.hidden {
  display: none !important;
}

/* Toast Notifications */
.toast-notification {
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(20px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Footer */
footer {
  margin-top: auto;
  padding: 36px 0;
  text-align: center;
  border-top: 1px solid var(--panel-border);
}

.footer-container p {
  font-size: 0.9rem;
  color: var(--text-dark);
}

/* Mobile Responsiveness Overrides */
@media (max-width: 580px) {
  :root {
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
  }

  .container {
    padding: 0 16px;
  }

  .hero-section {
    padding: 40px 0 24px;
  }

  .hero-section h1 {
    font-size: 2.10rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  /* Stack input and button on mobile screens */
  .search-form {
    flex-direction: column;
    gap: 12px;
  }

  .input-wrapper {
    width: 100%;
  }

  .search-form input {
    padding: 14px 16px 14px 44px;
    font-size: 0.95rem;
  }

  .search-icon {
    left: 14px;
  }

  .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    justify-content: center;
  }

  /* Results adjustments */
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .results-header h2 {
    font-size: 1.2rem;
  }

  .result-card {
    padding: 16px 18px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-subtitle {
    font-size: 0.85rem;
    gap: 10px;
  }

  /* Details Card */
  .detail-card {
    padding: 20px;
    gap: 20px;
  }

  .detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .detail-title h2 {
    font-size: 1.6rem;
  }

  .detail-header i {
    align-self: flex-end;
    margin-top: -30px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .detail-item {
    padding: 10px;
    gap: 12px;
  }

  .detail-item-icon {
    width: 36px;
    height: 36px;
  }

  .detail-value {
    font-size: 0.95rem;
  }
}
