
/* Floating Resume Widget */
.floating-resume-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 999;
  font-family: 'Poppins', sans-serif;
}

.floating-resume-minimized {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
  position: relative;
}

.floating-resume-minimized:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.download-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

.floating-resume-expanded {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 320px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.3s ease;
  overflow: hidden;
}

.floating-resume-widget.expanded .floating-resume-minimized {
  display: none;
}

.floating-resume-widget.expanded .floating-resume-expanded {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.floating-resume-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.floating-resume-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.floating-resume-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.floating-resume-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.floating-resume-content {
  padding: 20px;
  text-align: center;
}

.floating-resume-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
}

.floating-resume-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.floating-resume-role {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.floating-resume-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  padding: 15px 0;
  background: #f8f9fa;
  border-radius: 10px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #667eea;
}

.stat-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
}

.floating-resume-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-resume-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.floating-resume-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.floating-resume-btn-secondary {
  background: #f8f9fa;
  color: #667eea;
  border: 2px solid #667eea;
}

.floating-resume-btn-tertiary {
  background: #28a745;
  color: white;
}

.floating-resume-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Floating Resume Button */
.floating-resume {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 998; /* Below AI assistant but above other elements */
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.8);
  }
  100% {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  }
}

.floating-resume-widget.pulse .floating-resume-minimized {
  animation: float 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .floating-resume-widget {
    bottom: 60px;
    right: 15px;
  }
  
  .floating-resume-minimized {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
  
  .floating-resume-expanded {
    width: 280px;
    right: -10px;
  }
  
  .floating-resume-content {
    padding: 15px;
  }
  
  .floating-resume-buttons {
    gap: 8px;
  }
  
  .floating-resume-btn {
    padding: 10px 15px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .floating-resume-expanded {
    width: calc(100vw - 30px);
    right: -5px;
  }
}

.resume-download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.resume-download-button:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 30px rgba(255, 107, 107, 0.6);
  color: white;
  text-decoration: none;
}

.resume-download-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
}

.resume-download-button i {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateY(0);
  }
  40%, 43% {
    transform: translateY(-5px);
  }
  70% {
    transform: translateY(-3px);
  }
  90% {
    transform: translateY(-2px);
  }
}

/* Tooltip */
.floating-resume::before {
  content: "Download Resume";
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.floating-resume::after {
  content: "";
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid #333;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.floating-resume:hover::before,
.floating-resume:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .floating-resume {
    bottom: 80px;
    right: 15px;
  }
  
  .resume-download-button {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
  
  .floating-resume::before {
    display: none;
  }
  
  .floating-resume::after {
    display: none;
  }
}

/* Dark mode support */
body[light-mode="dark"] .floating-resume::before {
  background: #555;
}

body[light-mode="dark"] .floating-resume::after {
  border-left-color: #555;
}

/* Alternative button styles */
.resume-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.resume-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  color: white;
  text-decoration: none;
}

.resume-button i {
  font-size: 16px;
}
