/* OpenClaw Skills Hub - Clean Modern UI */
:root {
  --bg: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a24;
  --surface: #232330;
  --surface-hover: #2a2a3a;
  --border: #2d2d3d;
  --text: #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted: #555570;
  --accent: #6c5ce7;
  --accent-hover: #5856d6;
  --accent-light: #a29bfe;
  --success: #00b894;
  --glow: rgba(108, 92, 231, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: white; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: rgba(10, 10, 15, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
}

.logo-icon { font-size: 1.5rem; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: white; }

.search-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  width: 180px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.search-box:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-hover);
}

/* Hero */
.hero {
  padding: 90px 0;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(108, 92, 231, 0.08) 0%, transparent 70%);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* Stats */
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 36px;
  min-width: 140px;
  transition: all 0.2s;
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.last-updated {
  margin-top: 30px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Section */
section { padding: 60px 0; }

section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: white;
}

/* Cards Grid */
.categories-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.category-card,
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.category-card:hover,
.skill-card:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.category-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}

.category-card h3,
.skill-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: white;
}

.category-card p,
.skill-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.category-count {
  display: inline-block;
  background: var(--glow);
  color: var(--accent-light);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
}

.skill-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

.tag {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
}

/* Updates */
.updates-list {
  max-width: 700px;
  margin: 0 auto;
}

.update-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  transition: all 0.2s;
}

.update-item:hover {
  border-color: var(--accent);
}

.update-date {
  color: var(--text-muted);
  font-size: 0.8rem;
  min-width: 80px;
}

.update-content h4 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.update-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer a { color: var(--text-secondary); }
.footer a:hover { color: var(--accent-light); }

/* Skills Page */
.skills-page { padding: 50px 0; }

.skills-page h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 8px;
}

.skills-page > .container > p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.search-input,
.filter-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.9rem;
}

.search-input {
  min-width: 200px;
  width: 300px;
}

.search-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.skills-grid-large {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Skill Detail */
.skill-detail { padding: 50px 0; }

.back-link {
  display: inline-block;
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.back-link:hover { color: var(--accent-light); }

.skill-header {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.skill-icon {
  font-size: 3rem;
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.skill-info h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.skill-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.skill-meta { display: flex; gap: 10px; flex-wrap: wrap; }

.category-tag {
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-tag {
  background: rgba(0, 184, 148, 0.15);
  color: var(--success);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.skill-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

.skill-main section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.skill-main h2 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: white;
}

.usage-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Sidebar Cards */
.info-card,
.related-card,
.link-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.info-card h3,
.related-card h3 {
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: white;
}

.info-card ul,
.related-card ul { list-style: none; }

.info-card li,
.related-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.info-card li:last-child,
.related-card li:last-child { border-bottom: none; }

.info-card li strong { color: var(--text); }

.related-card a {
  color: var(--accent-light);
  font-weight: 500;
}

.external-link {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
}

.external-link:hover {
  background: var(--accent-hover);
  color: white;
}

/* Categories Page */
.categories-page { padding: 50px 0; }

.categories-page h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 8px;
}

.categories-page > .container > p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.categories-list { display: flex; flex-direction: column; gap: 20px; }

.category-detail {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.category-header h2 {
  font-size: 1.1rem;
  margin: 0;
}

.category-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-skill-link {
  padding: 8px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all 0.2s;
}

.category-skill-link:hover {
  background: var(--accent);
  color: white;
}

/* Example Items */
.example-item {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--accent);
}

.example-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .nav { flex-wrap: wrap; gap: 16px; }
  .nav-links { gap: 20px; order: 3; width: 100%; justify-content: center; }
  .search-box { width: 100%; }
  .hero h1 { font-size: 2rem; }
  .stat-card { padding: 18px 28px; min-width: 100px; }
  .skill-header { flex-direction: column; }
  .skill-content { grid-template-columns: 1fr; }
  .search-input { width: 100%; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Enhanced Features */
[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-subtle: rgba(0, 0, 0, 0.08);
}

/* Search Styles */
.search-highlight {
  background: rgba(0, 245, 255, 0.3);
  color: var(--neon-primary);
  padding: 0 2px;
  border-radius: 2px;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.category-tab {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-tab:hover {
  border-color: var(--neon-primary);
  color: var(--neon-primary);
}

.category-tab.active {
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  border-color: transparent;
  color: white;
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  z-index: 1000;
}

.theme-toggle:hover {
  transform: scale(1.1);
  border-color: var(--neon-primary);
}

/* Updates Section */
.updates-section {
  padding: 80px 0;
  background: rgba(0, 0, 0, 0.2);
}

.updates-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.update-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.update-item:hover {
  border-color: var(--border-glow);
  transform: translateX(8px);
}

.update-date {
  flex-shrink: 0;
  width: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--neon-primary);
}

.update-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.update-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Keyboard Hint */
.kbd-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 0.6875rem;
  font-family: monospace;
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, 
    var(--bg-card) 0%, 
    rgba(255, 255, 255, 0.05) 50%, 
    var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Pulse Animation for Active Elements */
.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Tooltip */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 8px 12px;
  background: var(--text-primary);
  color: var(--bg-dark);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

/* ====== ADVANCED ANIMATIONS ====== */

/* Floating Shapes Background */
.floating-shapes {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float-shape 20s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--neon-primary);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--neon-secondary);
  top: 50%;
  right: -50px;
  animation-delay: -5s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--neon-tertiary);
  bottom: -50px;
  left: 30%;
  animation-delay: -10s;
}

@keyframes float-shape {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, 50px) scale(1.1);
  }
  50% {
    transform: translate(0, 100px) scale(0.9);
  }
  75% {
    transform: translate(-50px, 50px) scale(1.05);
  }
}

/* Magnetic Cards */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.magnetic:hover {
  transform: scale(1.02);
}

/* Glow Button */
.glow-btn {
  position: relative;
  overflow: hidden;
}

.glow-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(255, 255, 255, 0.5) 50%, 
    transparent 70%);
  animation: glow-slide 3s linear infinite;
}

@keyframes glow-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Text Scramble Effect */
.scramble {
  font-family: monospace;
  letter-spacing: 0.1em;
}

/* Glitch Effect */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: var(--bg-dark);
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--neon-secondary);
  animation: glitch-1 2s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: 2px 0 var(--neon-primary);
  animation: glitch-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
  0% { clip-path: inset(20% 0 80% 0); }
  20% { clip-path: inset(60% 0 10% 0); }
  40% { clip-path: inset(40% 0 50% 0); }
  60% { clip-path: inset(80% 0 5% 0); }
  80% { clip-path: inset(10% 0 70% 0); }
  100% { clip-path: inset(30% 0 50% 0); }
}

@keyframes glitch-2 {
  0% { clip-path: inset(10% 0 60% 0); }
  20% { clip-path: inset(30% 0 20% 0); }
  40% { clip-path: inset(70% 0 20% 0); }
  60% { clip-path: inset(20% 0 60% 0); }
  80% { clip-path: inset(60% 0 30% 0); }
  100% { clip-path: inset(5% 0 80% 0); }
}

/* Tilt Card Effect */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tilt-card:hover {
  transform: rotateX(5deg) rotateY(5deg);
}

/* Marquee Animation */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Ripple Effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
}

.ripple:active::after {
  animation: ripple-effect 0.6s ease-out;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Scan Line Effect */
.scan-line::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    transparent 0%,
    rgba(0, 245, 255, 0.1) 50%,
    transparent 100%
  );
  background-size: 100% 4px;
  animation: scan 3s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

/* Typing Effect */
.typing::after {
  content: '|';
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Card Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
}

.reveal.active {
  animation: reveal-in 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Spotlight Effect */
.spotlight {
  position: relative;
}

.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px circle at var(--x, 50%) var(--y, 50%),
    rgba(255, 255, 255, 0.1),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.spotlight:hover::before {
  opacity: 1;
}

/* Sound Wave Animation */
.sound-wave {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
}

.sound-wave span {
  width: 4px;
  height: 20px;
  background: var(--neon-primary);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}

.sound-wave span:nth-child(2) { animation-delay: 0.1s; height: 15px; }
.sound-wave span:nth-child(3) { animation-delay: 0.2s; height: 25px; }
.sound-wave span:nth-child(4) { animation-delay: 0.3s; height: 18px; }
.sound-wave span:nth-child(5) { animation-delay: 0.4s; height: 22px; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

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

.border-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary), var(--neon-tertiary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border-radius: inherit;
}

/* Hover Border Gradient */
.hover-gradient {
  transition: all 0.3s ease;
}

.hover-gradient:hover {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(255, 0, 255, 0.1));
  border-color: transparent;
}

/* Cyber Grid Background */
.cyber-grid {
  background-image: 
    linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Neon Border Animation */
.neon-border {
  position: relative;
}

.neon-border::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, transparent 40%, var(--neon-primary) 50%, transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: neon-flow 3s linear infinite;
  opacity: 0.5;
}

@keyframes neon-flow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* ====== ENHANCED UI COMPONENTS ====== */

/* Notification Toast */
.notification {
  animation: slideUp 0.3s ease, fadeOut 0.3s ease 1.7s forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.3);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
}

/* Skill Meta Info */
.skill-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.skill-stats {
  display: flex;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.skill-stats .rating {
  color: #ffd700;
}

/* Category Tabs Enhanced */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
}

.category-tab {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.category-tab:hover {
  border-color: var(--neon-primary);
  color: var(--neon-primary);
}

.category-tab.active {
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  border: none;
  color: white;
}

/* Share Menu */
.share-menu button:hover {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(255, 0, 255, 0.2)) !important;
}

/* Footer Enhanced */
.site-footer {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
  margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.footer-tagline {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.footer-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-primary);
  margin-bottom: 16px;
}

.link-list {
  list-style: none;
}

.link-list li {
  margin-bottom: 10px;
}

.link-list a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.link-list a:hover {
  color: var(--neon-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 48px;
}

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

.made-with {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Section Divider */
.section-divider {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 60px 0;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.section-divider span {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, 
    var(--bg-card) 0%, 
    rgba(255, 255, 255, 0.05) 50%, 
    var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s infinite;
}

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 16px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  border-radius: 4px;
}

.skeleton-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.badge-primary {
  background: rgba(0, 245, 255, 0.1);
  color: var(--neon-primary);
  border: 1px solid rgba(0, 245, 255, 0.2);
}

.badge-secondary {
  background: rgba(255, 0, 255, 0.1);
  color: var(--neon-secondary);
  border: 1px solid rgba(255, 0, 255, 0.2);
}

.badge-success {
  background: rgba(0, 184, 148, 0.1);
  color: #00b894;
  border: 1px solid rgba(0, 184, 148, 0.2);
}

/* Progress Ring */
.progress-ring {
  position: relative;
  width: 120px;
  height: 120px;
}

.progress-ring svg {
  transform: rotate(-90deg);
}

.progress-ring circle {
  fill: none;
  stroke-width: 8;
}

.progress-ring .bg {
  stroke: var(--border-subtle);
}

.progress-ring .progress {
  stroke: var(--neon-primary);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.progress-ring .text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.empty-state-description {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  
  .footer-brand {
    grid-column: span 2;
    max-width: 100%;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .category-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 12px;
  }
  
  .category-tab {
    flex-shrink: 0;
  }
}

/* Print Styles */
@media print {
  .header,
  .theme-toggle,
  .share-menu {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .category-card,
  .skill-card {
    break-inside: avoid;
    border: 1px solid #ccc;
  }
}
