/* CareerNexus Animations & Physics Effects */

/* Physics-based animations */
:root {
  --bounce-easing: cubic-bezier(0.51, 0.03, 0.64, 1.5);
  --physics-easing: cubic-bezier(0.28, 0.84, 0.42, 1);
  --float-duration: 3s;
  --slide-duration: 0.6s;
  
  /* Color variables for the stat cards */
  --purple-gradient: linear-gradient(135deg, #8B5CF6, #6366F1);
  --orange-gradient: linear-gradient(135deg, #F59E0B, #F97316);
  --green-gradient: linear-gradient(135deg, #10B981, #34D399);
  
  /* Status colors */
  --applied-color: #8B5CF6; /* Purple */
  --interview-color: #F97316; /* Orange */
  --offer-color: #10B981; /* Green */
  --rejected-color: #EF4444; /* Red */

  /* Purple accent color for consistent design */
  --purple-accent: #8B5CF6;
}

/* Sliding effect for page elements */
.slide-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--slide-duration) ease-out, 
              transform var(--slide-duration) var(--physics-easing);
}

.slide-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Fluid bounce for interactive elements */
.bounce-on-hover {
  transition: transform 0.3s var(--bounce-easing);
}

.bounce-on-hover:hover {
  transform: scale(1.05) translateY(-5px);
}

/* Letter animations for Career Nexus logo - DISABLED per user request */
.animated-letter {
  display: inline-block;
  transform-origin: bottom center;
  /* Animations disabled per user request */
  animation: none !important;
  position: relative;
}

/* Fluid animations */
.fluid-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
  mix-blend-mode: screen;
}

/* Physics engine effects for timeline */
.physics-item {
  transition: transform 0.4s var(--physics-easing), 
              opacity 0.4s ease-out,
              box-shadow 0.4s ease;
}

.physics-item:hover {
  transform: translateY(-7px) scale(1.02);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

/* Style updates for application tracking cards */
.stat-card:nth-child(1) {
  background-color: rgba(139, 92, 246, 0.07); /* Purple background tint */
}

.stat-card:nth-child(1) h3 {
  background-image: var(--purple-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.stat-card:nth-child(1) p {
  color: rgba(139, 92, 246, 0.9);
}

.stat-card:nth-child(2) {
  background-color: rgba(249, 115, 22, 0.07); /* Orange background tint */
}

.stat-card:nth-child(2) h3 {
  background-image: var(--orange-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.stat-card:nth-child(2) p {
  color: rgba(249, 115, 22, 0.9);
}

.stat-card:nth-child(3), .stat-card.highlight {
  background-color: rgba(16, 185, 129, 0.07); /* Green background tint */
}

.stat-card:nth-child(3) h3, .stat-card.highlight h3 {
  background-image: var(--green-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.stat-card:nth-child(3) p, .stat-card.highlight p {
  color: rgba(16, 185, 129, 0.9);
}

/* Status color updates */
.status.applied {
  color: var(--applied-color);
  background-color: rgba(139, 92, 246, 0.1);
}

.status.applied::before {
  background-color: var(--applied-color);
}

.status.interview {
  color: var(--interview-color);
  background-color: rgba(249, 115, 22, 0.1);
}

.status.interview::before {
  background-color: var(--interview-color);
}

.status.offer {
  color: var(--offer-color);
  background-color: rgba(16, 185, 129, 0.1);
}

.status.offer::before {
  background-color: var(--offer-color);
}

/* Additional box shadows for status containers */
.status.applied {
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.15);
}

.status.interview {
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.15);
}

.status.offer {
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.15);
}

/* Enhanced timeline designs - Apple-inspired redesign with proper text centering */
.timeline-item {
  padding: 36px 40px;
  transition: all 0.4s ease;
  text-align: center;
  max-width: 850px;
  margin: 0 auto 32px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 
              0 8px 30px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
  border: none;
  transform: none;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0.9;
}

.timeline-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
}

.timeline-item-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  text-align: center;
}

/* 小标题图标样式 */
.timeline-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 15px rgba(139, 92, 246, 0.2);
}

.timeline-item-icon i {
  color: white;
  font-size: 18px;
}

.timeline-item-content h4 {
  font-size: 28px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 22px;
  text-align: center !important;
  width: 100%;
  letter-spacing: -0.5px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.timeline-item-content p {
  font-size: 18px;
  line-height: 1.6;
  color: #86868b;
  margin-bottom: 36px;
  text-align: center;
  max-width: 680px;
  font-weight: 400;
}

.timeline-item-content ul {
  background-color: rgba(245, 245, 247, 0.8);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 0 auto 32px;
  display: inline-block;
  text-align: left;
  list-style-type: none;
  width: 100%;
  max-width: 650px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.timeline-item-content ul li {
  margin-bottom: 18px;
  padding-left: 30px;
  position: relative;
  font-size: 17px;
  line-height: 1.6;
  color: #333336;
}

.timeline-item-content ul li:last-child {
  margin-bottom: 0;
}

.timeline-item-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

.timeline-item-content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #ffffff, #f5f5f7);
  color: var(--primary-color);
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  min-width: 180px;
}

.timeline-item-content a i {
  margin-left: 8px;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.timeline-item-content a:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
}

.timeline-item-content a:hover i {
  transform: translateX(6px);
}

/* Remove the old markers and icons */
.timeline-item h4 i {
  display: none;
}

.timeline-items::before {
  display: none;
}

.timeline-item-marker {
  display: none;
}

.timeline-marker {
  display: none;
}

/* Alternate timeline items for visual rhythm */
.timeline-item:nth-child(odd)::before {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.timeline-item:nth-child(even)::before {
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

/* Table header alignment */
.table-header .col {
  text-align: center;
  justify-content: center;
  font-weight: 600;
}

.table-row .col {
  text-align: center;
  justify-content: center;
}

/* Only the company column should be left-aligned */
.col.company {
  justify-content: flex-start;
  text-align: left;
}

/* Add button animation */
.add-application-btn {
  background-image: linear-gradient(135deg, #8B5CF6, #6366F1);
  transition: all 0.3s var(--physics-easing);
}

.add-application-btn:hover {
  background-image: linear-gradient(135deg, #7c4ef4, #5253f0);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Change job website navigation icons to purple - REMOVED as per request */
/* .link-card {
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.link-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.15);
}

.link-card h3 {
  color: var(--purple-accent);
} */

/* Change 校招干货 (Xiaohongshu) section from blue to purple */
.xiaohongshu-banner {
  background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
}

.xiaohongshu-logo svg,
.xiaohongshu-logo .xhs-icon-placeholder {
  color: var(--purple-accent);
}

.xiaohongshu-follow {
  color: var(--purple-accent);
}

.xiaohongshu-category.active {
  background-color: var(--purple-accent);
  border-color: var(--purple-accent);
}

.read-more {
  color: var(--purple-accent);
}

/* Enhanced scroll fade effects */
.fade-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s var(--physics-easing);
}

.fade-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced timeline navigation styling - Apple inspired */
.timeline-nav {
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  padding: 6px;
  margin-bottom: 48px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 10;
  overflow: hidden;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-nav-item {
  background: transparent;
  border: none;
  padding: 12px 24px;
  margin: 0 4px;
  border-radius: 24px;
  color: #1d1d1f;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  min-width: 100px;
}

.timeline-nav-item:hover {
  background: rgba(139, 92, 246, 0.08);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.timeline-nav-item.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
  font-weight: 600;
}

.timeline-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.timeline-nav-item:hover::before {
  opacity: 0.05;
}

.timeline-stage {
  display: none;
  animation: fadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-stage.active {
  display: block;
}

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

/* Timeline stage header styling - Apple inspired with centered content */
.timeline-stage-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
  background: rgba(255, 255, 255, 0.8);
  padding: 30px 36px;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-stage-header:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.1);
}

.stage-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  margin-bottom: 20px;
  flex-shrink: 0;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
  position: relative;
  transition: all 0.3s ease;
}

.stage-icon::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-stage-header:hover .stage-icon::after {
  opacity: 0.3;
}

.stage-icon i {
  color: white;
  font-size: 30px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-stage-header:hover .stage-icon i {
  transform: scale(1.1);
}

.stage-header-text {
  text-align: center;
  width: 100%;
}

.stage-header-text h3 {
  font-size: 30px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  text-align: center;
}

.stage-header-text p {
  font-size: 18px;
  color: #86868b;
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.5;
  text-align: center;
}

/* 修复导航栏子菜单样式问题 */
.nav-dropdown {
  background-color: #ffffff !important; /* 全白背景 */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  backdrop-filter: none !important; /* 移除模糊效果 */
  -webkit-backdrop-filter: none !important;
  overflow: hidden !important;
  transition: transform 0.3s ease, opacity 0.3s ease !important; /* 简化过渡效果 */
  transform-origin: top center !important;
  z-index: 1000 !important; /* 确保足够高的z-index */
}

.navbar .nav-item:hover .nav-dropdown {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

/* 修复导航栏黑色鬼影问题 */
.navbar {
  will-change: transform !important; /* 提示浏览器可能有变换 */
  backface-visibility: hidden !important; /* 防止闪烁 */
  transform: translateZ(0) !important; /* 强制GPU加速 */
}

.navbar * {
  backface-visibility: hidden !important;
}

.navbar .nav-item {
  position: relative !important;
}

/* 确保过渡效果平滑 */
.navbar a, .navbar .nav-link, .navbar .nav-dropdown {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
} 