/* Shared Navigation Styles for RA Tools - Award-Winning UX */
.nav-header {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  padding: 1.5rem 1.75rem;
  margin: -32px -24px 2.5rem -24px;
  border-radius: 0 0 24px 24px;
  box-shadow: 
    0 12px 32px rgba(245, 158, 11, 0.25),
    0 6px 16px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.nav-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0.6;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.8; }
}

.nav-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
}

.breadcrumbs a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
}

.breadcrumbs a:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.breadcrumbs span {
  opacity: 0.7;
}

/* Home Logo/Brand Link - Award-Winning UX */
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(12px) saturate(180%);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.3);
  color: white !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.home-link::before {
  content: '🏠';
  font-size: 1.125rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.home-link:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.5);
}

.home-link:hover::before {
  transform: scale(1.2) rotate(-10deg);
}

.home-link:hover::after {
  left: 100%;
}

.home-link:active {
  transform: translateY(0) scale(1);
}

/* Art Companions Hub Link - Award-Winning UX */
.hub-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px) saturate(180%);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.28);
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.hub-link::before {
  content: '🎨';
  font-size: 1.125rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hub-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}

.hub-link:hover {
  background: rgba(255,255,255,0.32);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.5);
}

.hub-link:hover::before {
  transform: scale(1.2) rotate(10deg);
}

.hub-link:hover::after {
  left: 100%;
}

.hub-link:active {
  transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
  .home-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    margin-right: 0.25rem;
  }
  .home-link::before {
    font-size: 1rem;
  }
  .hub-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    margin-right: 0.25rem;
  }
  .hub-link::before {
    font-size: 1rem;
  }
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.125rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px) saturate(180%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border-color: rgba(255,255,255,0.4);
}

.nav-links a:hover::before {
  left: 100%;
}

.nav-links a:active {
  transform: translateY(0);
}

/* Hero Section Enhancement - Award-Winning Design */
.hero {
  position: relative;
  padding: 2rem 0 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out;
}

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

.hero h1 {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 4s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

@keyframes textShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Decorative elements for hero */
.hero::after {
  content: '';
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.6;
  animation: pulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* Footer Styles - Simple & Clean */
footer.muted {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: #6b7280 !important;
  text-align: center;
  line-height: 1.7;
}

footer.muted a {
  color: #6b7280 !important;
  text-decoration: none;
  border-bottom: 1px dashed rgba(107, 114, 128, 0.4);
  transition: all 0.2s ease;
  font-weight: 500;
}

footer.muted a:hover {
  color: var(--accent) !important;
  border-bottom-color: var(--accent);
}

@media (max-width: 768px) {
  .nav-header {
    padding: 1.25rem 1rem;
    margin: -32px -20px 2rem -20px;
  }
  .breadcrumbs {
    font-size: 0.8125rem;
  }
  .nav-links {
    gap: 0.5rem;
  }
  .nav-links a {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
  }
  .related-tools-grid {
    grid-template-columns: 1fr !important;
  }
  .tooltip-content {
    white-space: normal;
    max-width: 200px;
    font-size: 0.75rem;
  }
}

/* Tooltip styles */
.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  font-size: 0.75rem;
  cursor: help;
  margin-left: 0.25rem;
  vertical-align: middle;
}

.tooltip-content {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #1a202c;
  color: white;
  border-radius: 8px;
  font-size: 0.8125rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a202c;
}

.tooltip-wrapper:hover .tooltip-content {
  opacity: 1;
}

/* Related Tools Section */
.related-tools {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.related-tools h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #0f172a !important;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.related-tool-card {
  padding: 1.25rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: #0f172a !important;
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.related-tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-tool-card:hover {
  border-color: #f59e0b;
  transform: translateY(-4px);
  box-shadow: 
    0 8px 24px rgba(245, 158, 11, 0.2),
    0 4px 12px rgba(0,0,0,0.08);
}

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

.related-tool-card strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #0f172a !important;
}

.related-tool-card small {
  color: #6b7280 !important;
  font-size: 0.8125rem;
}

/* Back Button Styles - Award-Winning */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #fff 0%, #f9fafb 100%);
  color: #0f172a;
  text-decoration: none;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 8px rgba(0,0,0,0.06),
    0 1px 3px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.back-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.1), transparent);
  transition: left 0.5s ease;
}

.back-button:hover {
  background: linear-gradient(135deg, #f9fafb 0%, #fff 100%);
  border-color: #f59e0b;
  transform: translateX(-4px);
  box-shadow: 
    0 4px 16px rgba(245, 158, 11, 0.2),
    0 2px 8px rgba(0,0,0,0.08);
}

.back-button:hover::after {
  left: 100%;
}

.back-button:active {
  transform: translateX(-2px);
}

.back-button:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.5);
  outline-offset: 2px;
}

.back-button::before {
  content: '←';
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 700;
}

.back-button:hover::before {
  transform: translateX(-4px);
}

@media (max-width: 768px) {
  .back-button {
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
  }
}

