/* Modern Technical Blog Design for AS215855 */

/* Dark Theme Color Palette */
:root {
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark: #2563eb;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-surface: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  
  /* Text Colors - Dark Theme */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  
  /* Surface Colors - Dark Theme */
  --surface-primary: #0f172a;
  --surface-secondary: #1e293b;
  --surface-elevated: #334155;
  --border-light: #374151;
  --border-medium: #4b5563;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  
  /* Spacing & Layout */
  --container-max: 1400px;
  --content-max: 800px;
  --sidebar-width: 320px;
  --header-height: 80px;
  
  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px var(--primary), 0 0 40px var(--primary);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}


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

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--gradient-surface);
  line-height: 1.7;
  overflow-x: hidden;
  transition: var(--transition-smooth);
}

/* Network Background Animation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, var(--primary) 0px, transparent 50%),
    radial-gradient(circle at 80% 80%, var(--secondary) 0px, transparent 50%),
    radial-gradient(circle at 40% 40%, var(--accent) 0px, transparent 50%);
  opacity: 0.03;
  z-index: -1;
  animation: networkFloat 20s ease-in-out infinite;
}

@keyframes networkFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(51, 65, 85, 0.85) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  height: var(--header-height);
  transition: var(--transition-smooth);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.logo {
  position: relative;
  z-index: 2;
}

.logo a {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
}

.logo a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: var(--transition-bounce);
  border-radius: 2px;
}

.logo a:hover::after {
  width: 100%;
}

/* Navigation */
.nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  position: relative;
  transition: var(--transition-smooth);
  padding: 8px 0;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-bounce);
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-link:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-link:hover::before {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::before {
  width: 100%;
}

/* Theme Toggle */
.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: var(--surface-elevated);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  font-size: 20px;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.theme-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
  z-index: -1;
}

.theme-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.theme-toggle:hover::before {
  left: 0;
}

.theme-toggle:hover .theme-toggle-icon {
  filter: brightness(0) invert(1);
}

/* Main Layout */
.main {
  margin: 40px 0 80px;
  min-height: calc(100vh - var(--header-height) - 120px);
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 48px;
  align-items: start;
}

/* Hero Section */
.page-header {
  margin-bottom: 48px;
  text-align: center;
  position: relative;
  padding: 60px 0;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 200px;
  height: 200px;
  background: var(--gradient-primary);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.1;
  transform: translateX(-50%);
  z-index: -1;
}

.page-header h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 16px;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.page-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Post Cards */
.post-list {
  display: grid;
  gap: 32px;
}

.post-card {
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

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

.post-card:hover::before {
  transform: scaleX(1);
}

.post-card-header {
  margin-bottom: 20px;
}

.post-card-title {
  margin-bottom: 12px;
}

.post-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  transition: var(--transition-smooth);
}

.post-card-title a:hover {
  color: var(--primary);
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.post-date {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-date::before {
  content: '📅';
  font-size: 12px;
}

.post-card-excerpt {
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  position: relative;
}

.read-more::after {
  content: '→';
  margin-left: 8px;
  transition: var(--transition-smooth);
}

.read-more:hover {
  transform: translateX(4px);
}

.read-more:hover::after {
  transform: translateX(4px);
}

.post-card-stats {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-card-stats::before {
  content: '⏱️';
  font-size: 12px;
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: linear-gradient(135deg, var(--surface-secondary), var(--surface-elevated));
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--border-light);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
  z-index: -1;
}

.tag:hover {
  transform: translateY(-2px) scale(1.05);
  color: var(--text-inverse);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.tag:hover::before {
  left: 0;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.sidebar-section {
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.sidebar-section:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.sidebar-section h3 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 12px;
}

.sidebar-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Sidebar Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.5;
}

.tag-cloud .tag {
  background: linear-gradient(135deg, var(--surface-secondary), var(--surface-elevated));
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border-light);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  display: inline-block;
}

.tag-cloud .tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
  z-index: -1;
}

.tag-cloud .tag:hover {
  transform: translateY(-1px) scale(1.02);
  color: var(--text-inverse);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tag-cloud .tag:hover::before {
  left: 0;
}

/* Sidebar Recent Posts */
.recent-posts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recent-posts li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.recent-posts li:last-child {
  border-bottom: none;
}

.recent-posts a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  transition: var(--transition-smooth);
  display: block;
  margin-bottom: 4px;
}

.recent-posts a:hover {
  color: var(--primary);
}

.recent-posts .post-date {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Search */
.search-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--surface-primary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 14px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(25, 81, 255, 0.1);
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* Network Info Section */
.network-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.network-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--surface-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.network-item:hover {
  background: var(--surface-primary);
  border-color: var(--primary);
}

.network-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.network-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.network-link {
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.network-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Search Results Styling */
.search-result {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.search-result:last-child {
  border-bottom: none;
}

.search-result:hover {
  background: var(--surface-secondary);
  margin: 0 -12px;
  padding: 16px 12px;
  border-radius: var(--radius-sm);
}

.search-result-title {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 4px;
  transition: var(--transition-smooth);
  font-size: 14px;
}

.search-result-title:hover {
  color: var(--primary);
}

.search-result-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-result-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.search-no-results {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

.search-result mark {
  background: var(--primary);
  color: white;
  padding: 1px 3px;
  border-radius: 2px;
  font-weight: 600;
}

/* Hugo Syntax Highlighting Override */
.highlight {
  background: var(--surface-secondary) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 6px !important;
  margin: 1.5rem 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

.highlight > div {
  background: var(--surface-secondary) !important;
  border-radius: 6px !important;
}

.highlight table {
  background: transparent !important;
  margin: 0 !important;
  border: none !important;
}

.highlight pre {
  background: var(--surface-secondary) !important;
  padding: 1rem !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  color: var(--text-primary) !important;
  font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', monospace !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.highlight code {
  background: transparent !important;
  color: var(--text-primary) !important;
  font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', monospace !important;
}

/* Line numbers styling */
.highlight td:first-child pre {
  background: var(--surface-primary) !important;
  color: var(--text-muted) !important;
  padding-right: 0.5rem !important;
  border-right: 1px solid var(--border-light) !important;
  user-select: none !important;
}

/* Minimal Code Blocks (fallback) */
.post-content pre {
  background: var(--surface-secondary);
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', monospace;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

.post-content pre code {
  color: var(--text-primary);
  background: none;
  padding: 0;
}

.post-content code {
  background: var(--surface-secondary);
  color: var(--text-primary);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

/* Copy Code Button - Override all default button styles */
button.copy-code-button,
pre button.copy-code-button,
.copy-code-button {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  background: #1e293b !important; /* Direct color instead of var */
  border: 1px solid #374151 !important;
  color: #94a3b8 !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  font-family: 'Inter', sans-serif !important;
  z-index: 10 !important;
  opacity: 0.6 !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
}

button.copy-code-button:hover,
pre button.copy-code-button:hover,
.copy-code-button:hover {
  opacity: 0.9 !important;
  background: #334155 !important;
  color: #cbd5e1 !important;
  border-color: #4b5563 !important;
  transform: translateY(-1px) !important;
}

pre:hover .copy-code-button {
  opacity: 0.8 !important;
}

/* Hide duplicate copy buttons if any exist */
pre .copy-code-button:nth-of-type(n+2) {
  display: none !important;
}

/* Blog Post Content Styling */
.post-content {
  line-height: 1.7;
  color: var(--text-primary);
}

/* Featured/Header Images */
.post-content img:first-of-type {
  max-width: 60%;
  height: auto;
  display: block;
  margin: 0 auto 2rem auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.post-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
  position: relative;
}

.post-content a:hover {
  color: var(--primary-light);
  border-bottom-color: var(--primary);
  transform: translateY(-1px);
}

.post-content a:visited {
  color: var(--secondary);
}

.post-content a:visited:hover {
  color: var(--primary);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--text-primary);
  font-weight: 700;
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

.post-content h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.post-content h3 {
  font-size: 1.4rem;
}

.post-content p {
  margin: 1rem 0;
}

.post-content ul,
.post-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin: 0.5rem 0;
  color: var(--text-secondary);
}

.post-content blockquote {
  border-left: 4px solid var(--primary);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--surface-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.post-content strong {
  font-weight: 700;
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
  }
  
  .nav {
    gap: 24px;
  }
  
  .page-header {
    padding: 40px 0;
  }
  
  .post-card {
    padding: 24px;
  }
  
  .sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav {
    flex-direction: column;
    gap: 12px;
  }
  
  .post-card-footer {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 2s infinite;
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  top: var(--header-height);
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 1000;
  transition: width 0.3s ease;
}

/* Selection */
::selection {
  background: var(--primary);
  color: white;
}

/* Required Ghost CSS Classes */
.kg-width-wide {
  width: 120%;
  max-width: 120%;
  margin-left: -10%;
  margin-right: -10%;
}

.kg-width-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Ghost Image Cards */
.kg-image {
  max-width: 100%;
  height: auto;
}

.kg-image-card {
  margin: 2rem 0;
}

.kg-image-card .kg-image {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* Ghost Gallery Cards */
.kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.kg-gallery-row {
  display: flex;
  gap: 1rem;
}

.kg-gallery-image {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ghost Card Styling */
.kg-card {
  margin: 2rem 0;
}

.kg-embed-card {
  margin: 2rem 0;
  text-align: center;
}

.kg-bookmark-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  transition: var(--transition-smooth);
}

.kg-bookmark-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Footer */
.footer {
  margin-top: 80px;
  background: var(--gradient-surface);
  border-top: 1px solid var(--border-light);
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.footer-info {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-stats {
  display: flex;
  gap: 24px;
}

.footer-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.footer-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-mono);
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  background: var(--surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-sm);
}

.footer-link:hover {
  color: var(--primary);
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 32px;
  }
  
  .footer-info {
    flex-direction: column;
    gap: 24px;
  }
  
  .footer-stats {
    justify-content: center;
  }
  
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}