/* CV Viewer Modal Styles */
.cv-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease-in;
}

.cv-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cv-modal-content {
  background-color: hsl(242, 47%, 8%);
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.4s ease-out;
  border: 1px solid hsl(242, 8%, 20%);
}

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

.cv-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid hsl(242, 8%, 15%);
  background: linear-gradient(
    135deg,
    hsl(242, 47%, 10%) 0%,
    hsl(242, 47%, 8%) 100%
  );
  border-radius: 12px 12px 0 0;
}

.cv-modal-title {
  color: hsl(242, 8%, 95%);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cv-modal-title i {
  color: hsl(340, 95%, 58%);
  font-size: 1.75rem;
}

.cv-modal-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.cv-download-btn {
  background: linear-gradient(135deg, hsl(340, 95%, 58%), hsl(340, 95%, 48%));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 68, 130, 0.3);
}

.cv-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 68, 130, 0.4);
  background: linear-gradient(135deg, hsl(340, 95%, 62%), hsl(340, 95%, 52%));
}

.cv-download-btn i {
  font-size: 1.1rem;
}

.cv-close-btn {
  background: transparent;
  border: 2px solid hsl(242, 8%, 30%);
  color: hsl(242, 8%, 85%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.cv-close-btn:hover {
  background: hsl(242, 8%, 20%);
  border-color: hsl(340, 95%, 58%);
  color: hsl(340, 95%, 58%);
  transform: rotate(90deg);
}

.cv-viewer-container {
  flex: 1;
  padding: 2rem;
  overflow: auto;
  background: hsl(242, 47%, 6%);
  border-radius: 0 0 12px 12px;
}

.cv-pdf-embed {
  width: 100%;
  height: 100%;
  min-height: 600px;
  border: 1px solid hsl(242, 8%, 20%);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cv-fallback {
  display: none;
  text-align: center;
  padding: 3rem;
  color: hsl(242, 8%, 70%);
}

.cv-fallback.active {
  display: block;
}

.cv-fallback i {
  font-size: 4rem;
  color: hsl(340, 95%, 58%);
  margin-bottom: 1.5rem;
  display: block;
}

.cv-fallback h3 {
  color: hsl(242, 8%, 90%);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.cv-fallback p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cv-fallback-btn {
  background: linear-gradient(135deg, hsl(340, 95%, 58%), hsl(340, 95%, 48%));
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 68, 130, 0.3);
}

.cv-fallback-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 68, 130, 0.4);
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .cv-modal-content {
    width: 95%;
    height: 95vh;
  }

  .cv-modal-header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .cv-modal-title {
    font-size: 1.25rem;
  }

  .cv-modal-actions {
    width: 100%;
    justify-content: space-between;
  }

  .cv-download-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }

  .cv-viewer-container {
    padding: 1rem;
  }

  .cv-pdf-embed {
    min-height: 400px;
  }
}

@media screen and (max-width: 480px) {
  .cv-modal-title {
    font-size: 1.1rem;
  }

  .cv-download-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .cv-close-btn {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
}
